valivan601
New Member
- Joined
- Apr 13, 2011
- Messages
- 365
- Reaction score
- 1
can anyone help me with this script i want it to make a globalevents that`s remove some creatures by name like ghazbaran, orshabaal, morgaroth, ferumbras
this script will remove the monsters each 4 hours but i need some help here
which function i need for this script?? i want to modify this
i made it but dont work anyone help me to fix?
this script will remove the monsters each 4 hours but i need some help here
which function i need for this script?? i want to modify this
i made it but dont work anyone help me to fix?
Code:
local k = {"Ghazbaran","Morgaroth","Ferumbras","Orshabaal"}
function onThink(interval, lastExecution, thinkInterval)
local target = getPlayerByNameWildcard(cid)
if(not target) then
if isInArray(k, getCreatureByName(cid)) then
doRemoveCreature(k,cid)
end
end
return true
end
Last edited: