Well, with some help we made this short script but it couldn't work with because :
the creature cant cast the string if he's dead sooooo I replaced with :
Buut I cant figure out how to fill the pos , something like getCreaturePos? please help
Lua:
doCreatureSay(cid, "Killed by " .. getCreatureName(lastHitKiller) .. "", TALKTYPE_ORANGE_1)
the creature cant cast the string if he's dead sooooo I replaced with :
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
doSendAnimatedText(pos, "Killed by " .. getCreatureName(lastHitKiller) .. "", TALKTYPE_ORANGE_1)
return true
end
Buut I cant figure out how to fill the pos , something like getCreaturePos? please help
Lua:
doSendAnimatedText(pos, "Killed by " .. getCreatureName(lastHitKiller) .. "", TALKTYPE_ORANGE_1)