Like from x 11 y 11 to x 15 y 15 clean all items on floor and npc, if possible (but no with explosion)
second question: spawnnpc haven't got health parametr, so i can't spawn npc with specified amount of health?
edited 1×, last 02.03.13 11:28:09 am
parse("spawnnpc 1 "..player(id,"tilex").." "..player(id,"tiley").." 0") local objectlist=object(0,"table") for _,npcid in pairs(objectlist) do 	if object(npcid,"health")==150 and object(npcid,"type")==30 then 		parse("damageobject "..npcid.." -850 0") 	end end