Page 1 of 1
Spellbook/CanRemove
Posted: Fri Feb 20, 2009 8:38 pm
by RusseL
when player casts with macros, injection or assist can remove scroll from spellbook

i can't fix it...help?
My CanRemove script:
program canRemove(mobile, container, item, move_type)
return 0;
endprogram
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 9:07 pm
by MuadDib
Have you also tried setting scrolls to item.movable = 0 ?
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 9:34 pm
by RusseL
yes... and with properties too...
maybe that core bug?
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 9:47 pm
by MuadDib
In a sense, yes I would agree. Or, the lack of a good check on it.
While I say that, it will not be fixed. This is because in 098, we are re-writing how the spellbooks store spells. Eventually (in 098), they will delete the scroll when inserted and update a newer spell bit storage for the spells on the book (a property of the spellbook). This will drastically reduce the amount of storage needed for spellbooks (item count). Along with some other perks such as less ram needed, faster load/save due to item count reduction, and, will be a bit faster in processing in memory when building book packets and checking for existing spell in books.
Now, saying that... don't freak people. Spellbook system in 098 will SCAN for existing scrolls, update the bits, delete the scrolls, and go on. This way, it will UPGRADE existing books to the new system on the fly.
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 10:02 pm
by RusseL
ok:) thank you.
i'll wait for update..
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 10:12 pm
by OldnGrey
For 098 - official spellbooks only?
There are probably uses for a general insertion into a container where the item isn't actually added but it increments some sort of property and is destroyed.
Re: Spellbook/CanRemove
Posted: Fri Feb 20, 2009 10:52 pm
by Nando
OldnGrey wrote:For 098 - official spellbooks only?
There are probably uses for a general insertion into a container where the item isn't actually added but it increments some sort of property and is destroyed.
like...?

Re: Spellbook/CanRemove
Posted: Wed Mar 04, 2009 8:04 pm
by Madman
And would those uses not be well enough served with onInsert?