PenUltima Online

It is currently Sat Sep 06, 2008 7:46 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Inserting scrolls into spellbooks
PostPosted: Thu Jul 13, 2006 12:14 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1127
Location: Southern Central USA
I have rescripted the spell casting to use a slightly modified version of the spellStarter script in POL 96/97 Distro with my converted POL 95 to 96 Distro but I am having a problem with inserting scrolls into the spellbook. I have read the corechanges (well searched through for refs to scroll anyway) and found no special changes to make them insertable into a spellbook. They do get inserted or atleast appear to be but when I open the book the pages are blank. I can only drop one of each kind of scroll in the book. Which is normal and why I believe they are being inserted. When I use the .spellbook command that book appears empty as well.

Here is a typical entry in my itemdesc file for scrolls and the spellbook:

Code:
Spellbook 0x0EFA
{
    Name                Spellbook
    desc                spellbook
    Gump                0xFFFF
    MinX                40
    MaxX                60
    MinY                20
    MaxY                80
    Newbie              1
    SpellType      Magic
    BlocksCastingIfInHand 0
    RequiresAttention   0
    VendorSellsFor      22
    VendorBuysFor       11
    weight              1
    canRemoveScript     canRemove
}

Item 0x1f2d
{
    Name           reactivearmorscroll
    Desc           Reactive Armor scroll
    Script         scroll
    Spellid        7
    SpellType      Magic
    VendorBuysFor  6
    VendorSellsFor 12
    Tooltip        Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}



The canRemove script for the spellbook is the one from POL 97 Distro.

If anyone can shed some light on this for me I'd appreciate it.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 12:33 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 410
Location: San Diego, California
Try changing the class the scroll goes into from 'Item' to 'SpellScroll' ?

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 10:54 am 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1127
Location: Southern Central USA
Thanks Austin.

I seem to be encountering some strange errors. The odd thing is that on my "scripting/test" server the whole thing works but when I replace (delete and copy over) the public server with the test server I begin to get these errors.

I have fixed my scroll problem somehow without using your suggestion but I will go ahead and change the class anyway as that is the new standard.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 4:44 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 548
Austin,

My 096 scripts seem to insert scrolls just fine with the 64 scrolls defined as Item.
Any special reason for suggesting SpellScroll?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 12:34 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1127
Location: Southern Central USA
OldNGrey,

I also somehow fixed them without changing the class to SpellScroll. I did make the change anyway though in the event that is the way the cfg files are going. The strange thing is I don't know what I did to break it in the first place.

Maybe I'm just getting old.

*smiles wryly*

Perhaps I should ask the board admins to change my name to "OldNGreyer"/

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 3:20 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 548
Nope,
I officially adopted Grey from a former user of the IRC forums a number of years ago with he permission. You can't, so there.

From my meagre pickings of Austin's brain I would have thought changing to 'SpellScroll' would only have an effect on the isa(POLClass xxxxx ) stuff.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 12:59 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1127
Location: Southern Central USA
Hey no fair picking Austin's brain. From what he's told me he needs every bit of what he's got.

*grins*

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl