• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Deathlist issue

Axelor

Member
Joined
Sep 2, 2010
Messages
505
Reaction score
9
Hello, what's wrong with this creaturescript

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
 
Code:
sendToTalkaction(cid, deathList[1])

This function does not exist in ur server.
 
Back
Top