• 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 Erro NPC

reidogado

New Member
Joined
Aug 2, 2009
Messages
1
Reaction score
0
Então, o meu server sempre da o mesmo erro que é o seguinte :

http://pt-br.tinypic.com/view.php?pic=55qwko&s=9#.Vqa_5OgrKUk


aqui está o script ringseller.lua na linha 344 e linha 18:





function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(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?
 
Back
Top