SphereCommunity
Itens Remove - Printable Version

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



Itens Remove - Van Glan Bloom - 10-05-2014 11:31 PM

Hi guys, I need your help for a little problem.

I need to remove all items that are spawnds during an event (Chests) when the event ends. I have try use this but not work :

Code:
FORITEMS 1000
    if <baseid> != tm_chest_hunger_games_t2
        REMOVE
    ENDIF
endfor

thx


RE: Itens Remove - azmanomer - 10-06-2014 12:27 AM

i think you should add event for your event to give items for see are they created in events and then after events end remove them

tag.createdevent = 1

then
foritems 6500
if (dtag.createdevent == 1)
remove
endif
endfor

i think this will work Tongue


RE: Itens Remove - Skul - 10-06-2014 12:33 AM

You can not compare <baseid> to a template.


RE: Itens Remove - Van Glan Bloom - 10-06-2014 08:27 AM

I have change the baseid and the script work. Thx guys =)


RE: Itens Remove - kn4tseb - 10-06-2014 01:20 PM

Code:
ARGS ITEMDEFNAME1,ITEMDEFNAME2,ITEMDEFNAME3........
FOR 0 <EVAL <ARGV>-1>
FORINSTANCES <ARGV[<dLOCAL._FOR>]>
REMOVE
ENDFOR
ENDFOR