Postado Janeiro 23, 2016 9 anos 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?
Postado Janeiro 29, 2016 9 anos A função doPlayerSave não existe no seu servidor, tente alterar para: Player(cid):save() Editado Janeiro 29, 2016 9 anos por Wakon (veja o histórico de edições) ➥ Regras | Seções OTServ | Seções BOT
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.