zarqon
Well-known member
There are more and more of these, and they are not something I particularly care about. However, for any kind of item management script, there is presently no way to detect whether something is an avatar potion (for the purpose of ignoring it) outside of hardcoding a long (and growing) list.
Fortunately, a fairly straightforward solution is at hand! Presently, avatar potions have no results from item_type(). Solution: have them return "avatar potion".
This will enable scripters to do:
Fortunately, a fairly straightforward solution is at hand! Presently, avatar potions have no results from item_type(). Solution: have them return "avatar potion".
This will enable scripters to do:
PHP:
if (item_type(myitem) == "avatar potion")
completely_ignore(myitem);