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
Spellbook/CanRemove
Moderators: POL Developer, Distro Developer
Re: Spellbook/CanRemove
Have you also tried setting scrolls to item.movable = 0 ?
Re: Spellbook/CanRemove
yes... and with properties too...
maybe that core bug?
maybe that core bug?
Re: Spellbook/CanRemove
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.
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
ok:) thank you.
i'll wait for update..
i'll wait for update..
Re: Spellbook/CanRemove
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.
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
like...?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.
Re: Spellbook/CanRemove
And would those uses not be well enough served with onInsert?