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.