Hi Otland, I have a problem with the onkill function. I don't know if I'm setting it up correctly.
The code doesn't print to the console. I don't know if I'm not entering it correctly. Could you help me?
add creaturescripts.xml and login.lua
My bad, it was just this: RESOLVED!!!
LUA:
function onKill(cid, target, lastHit)
if player:isPlayer(cid) and player:isPlayer(target) then
print("execute action")
end
return true
end
The code doesn't print to the console. I don't know if I'm not entering it correctly. Could you help me?
add creaturescripts.xml and login.lua
LUA:
<event type="kill" name="skull_kill" script="skull_kill.lua" />
player:registerEvent("skull_kill")
My bad, it was just this: RESOLVED!!!
Last edited by a moderator: