Okay so the first problem is in this script I found on the forums, it works 100% fine EXCEPT when two people kill the monster... When that happens it will summon 2x (demon 2) instead of 1x like it should
Another issue is a little one, and I'm wondering if it's possible to block levitate on certain places? Like on a roof where you could normally levitate on, disable it?
Code:
local monster = "Demon"
local summon = "Demon 2"
function onKill(cid, target, lastHit)
if isPlayer(target) then
return true
end
if isPlayer(cid) and getCreatureName(target) == monster and not(getCreatureByName(summon)) then
local t = getCreaturePosition(target)
doCreatureSay(target, "I'm not finished with you yet!", 0x11)
doSummonCreature(summon, t)
doSendMagicEffect(t,1)
end
return true
end
Another issue is a little one, and I'm wondering if it's possible to block levitate on certain places? Like on a roof where you could normally levitate on, disable it?