zakius
Enter the Ninja!
I want to summon some monsters 10 sec after you kill boss, I created this script but it doesn't work
Can someone help mi with this? No errors in console,just no effect.
Lua:
function onKill(cid, target)
if getCreatureName(target) == "Drasith" then
addEvent(addSkele, 10000)
return TRUE
end
end
function addSkele()
pos1={991, 1247, 7}
pos2={985, 1241, 7}
pos3={985, 1253, 7}
pos4={997, 1241, 7}
pos5={997, 1253, 7}
doCreateMonster(cid, "skeleton", pos1)
doCreateMonster(cid, "skeleton", pos2)
doCreateMonster(cid, "skeleton", pos3)
doCreateMonster(cid, "skeleton", pos4)
doCreateMonster(cid, "skeleton", pos5)
return TRUE
end