Do a file creaturescripts/preparedeath.lua
In creaturescripts.xml add:
and in login.lua:
It's not my but maybe some need this When someone die then he can see word "OWNED"
Edit: Credits for Cyko
PHP:
local letters = "OWNED!"
function onPrepareDeath(cid, deathList)
local p = getThingPos(cid)
for i = 1, #letters do
addEvent(doSendAnimatedText, i * 150, p, letters:sub(i, i), COLOR_RED)
end
return true
end
In creaturescripts.xml add:
PHP:
<event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>
and in login.lua:
PHP:
registerCreatureEvent(cid, "onPrepareDeath")
It's not my but maybe some need this When someone die then he can see word "OWNED"
Edit: Credits for Cyko
Last edited: