As in title I need to know the name of the monster I just killed. I tried using :
When I kill monster using this it print the correct name but the monster never die (it stay there only name and lifebar disapear) and the function print is called non-stop again and again.
----------------
Nerver mind.
If you are stupid like me and got this problem don't forget to add the "return true" XD
[Solved]
Code:
function onKill(cid, target)
if(isPlayer(target) ~= TRUE) then
local monstername = getCreatureName(target):lower()
print(monstername)
end
return true -- that was the missing part XD omg I'm so stupid
end
When I kill monster using this it print the correct name but the monster never die (it stay there only name and lifebar disapear) and the function print is called non-stop again and again.
----------------
Nerver mind.
If you are stupid like me and got this problem don't forget to add the "return true" XD
[Solved]
Last edited: