Hello, what's wrong with this creaturescript
When player die he doesn't die... he has 0 hp but he doesn't die.
This is the error on console:
It's for tfs 0.4
PHP:
-- Criado por Samuel Bertanha
-- Não disponibilizar esse script a ninguem
-- Criado dia 27/07/2017
-- Servidores Tibia
function onPrepareDeath(cid, deathList)
sendToTalkaction(cid, deathList[1])
return true
end
When player die he doesn't die... he has 0 hp but he doesn't die.
This is the error on console:
PHP:
[15:5:19.696] [Error - CreatureScript Interface] [15:5:19.696] data/creaturescripts/scripts/citywar.lua:onPrepareDeath [15:5:19.696] Description: [15:5:19.696] data/creaturescripts/scripts/citywar.lua:6: attempt to call global 'sendToTalkaction' (a nil value) [15:5:19.696] stack traceback: [15:5:19.696] data/creaturescripts/scripts/citywar.lua:6: in function <data/creaturescripts/scripts/citywar.lua:5>
It's for tfs 0.4