SphereCommunity
Item remove - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Item remove (/Thread-Item-remove)



Item remove - Van Glan Bloom - 06-26-2015 04:51 AM

it is possible to eliminate an item that is inside a title? For example imagine that a single title are dozens of items, but want elimar just a genre item if it affects the rest or move them one by one.


RE: Item remove - XuN - 06-26-2015 06:08 AM

I don't understand what do you mean by 'title', maybe a tile?


RE: Item remove - Van Glan Bloom - 06-26-2015 10:38 AM

yes is tile xD sorry


RE: Item remove - Coruja - 06-26-2015 03:45 PM

you must use FORITEMS, it loops through every item on a X tiles radius

Code:
[FUNCTION RemoveAllItemsOnTile]
FORITEMS 0
  REMOVE
ENDFOR



RE: Item remove - XuN - 06-27-2015 01:03 AM

Like Coruja wrote you should use ForItems, just check for the ID you want to remove inside it:

Code:
[function RemoveItemsByID]// Example: RemoveItemsByID i_gold
// argv0 = ItemID
FORITEMS 0
if (<baseID>==<args>)
  remove
endif
endfor



RE: Item remove - Van Glan Bloom - 06-28-2015 09:35 AM

The script work =) Thx one more time guys