SphereCommunity
Spellbook problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Spellbook problem (/Thread-Spellbook-problem)



Spellbook problem - Leonidas - 12-22-2017 01:45 PM

I don't know if it's from my updating my server to the newest version or what but now when I try to cast a spell with "GM OFF" it says I do not have a spellbook handy. I haven't done anything script wise that would cause this to happen. I have the correct reags, spellbook, and magery skill.


RE: Spellbook problem - invernizzi - 12-23-2017 10:59 PM

Check if u have other book (scripted) with the same ID as the spellbook, try to put it in bank.


RE: Spellbook problem - Leonidas - 12-25-2017 09:42 AM

I don't have any other spellbooks besides the default one "i_spellbook". I haven't changed anything with the spellbook.

This just started happening randomly, everything use to work fine now shit just keeps popping up left and right.


RE: Spellbook problem - darksun84 - 12-25-2017 08:27 PM

did you update sphere_spells.scp


RE: Spellbook problem - Leonidas - 12-26-2017 10:10 AM

No i didn't but nothing looks different from my current one and I'd really rather not go through spells again redoing everything lol.


RE: Spellbook problem - darksun84 - 12-26-2017 08:54 PM

Check if your spellbook script looks like that
Code:
[ITEMDEF 0efa]
DEFNAME=i_spellbook
NAME=Spellbook
TYPE=t_spellbook
TDATA3=0
TDATA4=64
VALUE=16
WEIGHT=3.0
RESOURCES=10 i_scroll_blank
SKILLMAKE=Inscription 50.0,i_pen_and_ink
CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Books
DESCRIPTION=Spellbook
ReqStr=20
TEVENTS=t_equipitem
ON=@Create
   ATTR=attr_magic|attr_newbie
   //MORE1=0ffffffff
   //MORE2=0ffffffff
Especially check if the TDATA3 / TDATA4 values are set


RE: Spellbook problem - Leonidas - 12-28-2017 01:41 PM

....apparently tdata3 and 4 were both removed somehow, added them and it's fixed. thanks alot!


RE: Spellbook problem - Coruja - 12-30-2017 01:09 PM

Code:
13-02-2017, Coruja
Changed: Spellbooks now store spell offset / max spells using TDATA3/TDATA4 instead MOREZ/MOREX. This will optimize worldsave files, because TDATA* can be used directly from itemdef script and doesn't need to be saved on worldfiles.
    -IMPORTANT: It's HIGHLY recommended update these scripts above, otherwise spellbooks will stop working.
[items/sphere_item_magic_magery.scp]: Updated i_spellbook
[items/sphere_item_magic_necromancer_aos.scp]: Updated i_spellbook_necromancy
[items/sphere_item_magic_chivalry.scp]: Updated i_spellbook_chivalry
[items/sphere_item_magic_ninjitsu_bushido.scp]: Updated i_spellbook_bushido, i_spellbook_ninjitsu
[items/sphere_item_magic_spellweaving.scp]: Updated i_spellbook_spellweaving
[items/sphere_item_magic_mysticism.scp]: Updated i_spellbook_mystic
[items/sphere_item_magic_skillmasteries.scp]: Updated i_spellbook_mastery