Hello, I'm trying to edit this script so that instead of removing the creature it's set to remove straight away, it will do it after 10 seconds. I think I'm supposed to use the addevent function, but I'm not sure in what context to use it. Here is the script :-
Hopefully somebody will be able to edit it so that instead of removing the "Thief" straight away it will wait 10 seconds... Thanks for you time.
Code:
function onStepIn(cid, item, pos)
local from = {x = 33183, y = 32831, z = 9}
local to = {x = 33232, y = 32863, z = 9}
local monster = "Thief"
for x = from.x, to.x do
for y = from.y, to.y do
for z = from.z, to.z do
pos = {x = x, y = y, z = z, stackpos = 253}
v = getThingfromPos(pos).uid
if isMonster(v) and getCreatureName(v) == monster then
doRemoveCreature(v)
end
end
end
end
return true
end
Hopefully somebody will be able to edit it so that instead of removing the "Thief" straight away it will wait 10 seconds... Thanks for you time.