Lua:
function onKill(cid, target, lastHit)
monsterPos = getCreaturePosition(target)
newMonsterPos = {x= 748, y= 1139, z= 7}
wall_pos = {x= 748, y= 1139, z= 7, stackpos= 1}
wall = getThingfromPos(wall_pos)
if isPlayer(cid) and (getCreatureName(target):lower() == "demon oak1") and wall.itemid == 8289 then
doSendAnimatedText(monsterPos, "KILL!", TEXTCOLOR_ORANGE)
doRemoveItem(wall.uid)
doSummonCreature("demon oak2", newMonsterPos)
end
return TRUE
end
Anyone know why this isn't working?
Is it because I have 2 different onKill() functions existing?