SphereCommunity
HOW TO LOOT NPC NPC ONE DEAD DEAD OR CHAR - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: HOW TO LOOT NPC NPC ONE DEAD DEAD OR CHAR (/Thread-HOW-TO-LOOT-NPC-NPC-ONE-DEAD-DEAD-OR-CHAR)



HOW TO LOOT NPC NPC ONE DEAD DEAD OR CHAR - victorstelzer - 02-28-2014 11:22 PM

Anyone have this script or to put this event on npc?


RE: HOW TO LOOT NPC NPC ONE DEAD DEAD OR CHAR - Runcuks - 03-01-2014 01:35 AM

[EVENTS e_all_npc]

ON=@ItemStep
f_npc_looter
return 0


[FUNCTION f_npc_looter]
IF (STRMATCH("<REGION.NAME>","Lost Island"))
RETURN 0
ENDIF
IF (<FINDID.i_rune_summon_creature>) || (<FLAGS>&statf_conjured) || (<region.tag0.newbie>==1)
RETURN 0
ENDIF
IF (<ACT.TAG0.NONPVP>==1)
RETURN 0
ENDIF
IF (<ACT.ID>==02006) //corpse
IF (<ACT.RESCOUNT>) //there is something in there!
TAG.ITEM=<eval rand(<eval <ACT.RESCOUNT>>)> //Random Item number...
say You notice <name> looting <act.name>
TRY UID.<SRC.ACT.UID>.FINDCONT.<TAG.ITEM>.BOUNCE //Grab that item!
ENDIF
ENDIF