Então, o meu server sempre da o mesmo erro que é o seguinte :
aqui está o script ringseller.lua na linha 344 e linha 18:
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end << linha 18
// resto do código
if not doPlayerWithdrawMoney(cid, count[cid]) then
selfSay("There is not enough gold on your account. Your account balance is " .. getPlayerBalance(cid) .. ".Please tell me the amount of gold coins you would like to withdraw.", cid)
talkState[cid] = 0
else
selfSay("Here you are, " .. count[cid] .. " gold. Please let me know if there is something else I can do for you.", cid)
talkState[cid] = 0
doPlayerSave(cid) << linha 344
end
E aqui está o script npchandler.lua linha 410
if self.keywordHandler ~= nil then
if self:isFocused(cid) and msgtype == TALKTYPE_PRIVATE_PN or not self:isFocused(cid) then
local ret = self.keywordHandler:processMessage(cid, msg)
if(not ret) then
local callback = self:getCallback(CALLBACK_MESSAGE_DEFAULT)
if callback ~= nil and callback(cid, msgtype, msg) then << linha 410
self.talkStart[cid] = os.time()
end
else
self.talkStart[cid] = os.time()
end
end
end
end
end
end
Alguém sabe o porque do erro?