Nutaharion
New Member
Hi,
I have problem with this script, I completly don't know how to use function onThink so I have problem's with delay beetween action.
1) Player killing monster, wall dissapear
2) Player have 15 minutes to escape the room, after that stone appear one more time and he need to kill next boss to wall dissapear
I have problem with this script, I completly don't know how to use function onThink so I have problem's with delay beetween action.
1) Player killing monster, wall dissapear
2) Player have 15 minutes to escape the room, after that stone appear one more time and he need to kill next boss to wall dissapear
Lua:
function onKill(cid, target, lastHit)
pos = {x=1173, y=974, z=14, stackpos=1}
getgate = getThingfromPos(pos)
if (getCreatureName(target) == "boss") then
if isPlayer(target) or not lastHit then
return true
end
doRemoveItem(getgate.uid, 1)
doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN)
local function Kamien(seconds)
doCreateItem(1355, 1, pos)
return true
end
function onThink(interval)
executeKamien(60)
return true
end
end
return true
end