Ir para conteúdo

WalkerKing

Membro
  • Registro em

  • Última visita

  1. Patrickg reagiu a uma resposta no tópico: [Resolvido] Items.otb
  2. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Não salvou
  3. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Vo tentar.
  4. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Hmm.. Vlw. E aproveitando o tópico... Por exemplo eu adiciono premdays no mysql pra uma acc. dps que reinicia o ot a vip some. Sabe o porque?
  5. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Não é só o de banco. Outros npc's estão com o mesmo erro. Eu postei esse ai por um exeplo.
  6. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    É minha primeira vez. Malz ae. Vo procurar o lugar certo
  7. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Meu ot está dando um erro no npc. Quando eu digo hi ele nao vira pro lado que o player está. E fica dando esse seguinte erro no distro: [Error - Npc interface] data/npc/scripts/edoBank.lua:onThink Description: data/npc/scripts/edoBank.lua:196: attempt to call global 'lookAtPlayer' (a nil v alue) stack traceback: data/npc/scripts/edoBank.lua:196: in function <data/npc/scripts/edoBank. lua:178> Olha o script do NPC: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) local state = 0 local focus = 0 local count = 0 local talk_start = 0 function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function getCount(msg) b, e = string.find(msg, "%d+") if b == nil or e == nil then count = 1 else count = tonumber(string.sub(msg, b, e)) end return count end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if state == 0 then if msgcontains(msg, 'hi') and getDistanceTo(cid) < 4 then selfSay('Ola! Você quer \'depositar\' ou \'sacar\' dinheiro?') focus = cid state = 1 talk_start = os.clock() end elseif state == 1 then --depositar ou sacar if msgcontains(msg, 'depositar') then selfSay('Quanto você quer depositar?') state = 2 talk_start = os.clock() elseif msgcontains(msg, 'sacar') then selfSay('Quanto você quer sacar?') state = 4 talk_start = os.clock() end elseif state == 2 then --depositar count = getCount(msg) if count >= 10 and count <= 1000000 then selfSay('Você tem certeza que vai depositar '..count..'gp?') state = 3 talk_start = os.clock() else selfSay('Você pode depositar no máximo 1kk por vez') state = 2 talk_start = os.clock() end elseif state == 3 then --depositar confirma if msgcontains(msg, 'sim') or msgcontains(msg, 'yes') then local balAtual = 0 balAtual = getPlayerBalance(focus) local granaBolso = 0 granaBolso = getPlayerMoney(focus) if granaBolso >= count then if doPlayerRemoveMoney(focus,count) == TRUE then if ( doPlayerSetBalance(focus, balAtual + count) == TRUE ) then selfSay('Feito! Você pode consultar seu saldo atraves do comando !stats') state = 0 focus = 0 count = 0 else selfSay('Você não tem esse dinheiro.') state = 1 count = 0 end else selfSay('Jogador não encontrado.') state = 0 focus = 0 count = 0 end else selfSay('Voce não tem esse dinheiro.') state = 1 count = 0 end elseif msgcontains(msg, 'não') or msgcontains(msg, 'no') then selfSay('Então quanto você quer depositar?') talk_start = os.clock() state = 2 end elseif state == 4 then --sacar count = getCount(msg) if count >= 10 and count <= 1000000 then selfSay('Você tem certeza que vai sacar '..count..'gp?') state = 5 talk_start = os.clock() else selfSay('Quantidade inválida, escolha outro valor') state = 4 count = 0 end elseif state == 5 then --sacar confirma if msgcontains(msg, 'sim') or msgcontains(msg, 'yes') then local atual = 0 atual = getPlayerBalance(focus) if atual >= count then if ( doPlayerSetBalance(focus, atual - count) == TRUE ) then doPlayerAddMoney(focus, count) selfSay('Feito! Você pode consultar seu saldo atraves do comando !stats') state = 0 focus = 0 count = 0 else selfSay('Erro 11.') state = 1 count = 0 focus = 0 end else selfSay('Você nao tem essa quantia na sua conta bancaria.') state = 1 count = 0 end elseif msgcontains(msg, 'não') or msgcontains(msg, 'no') then selfSay('Então quanto você quer sacar?') state = 4 talk_start = os.clock() end end end function onCreatureDisappear(cid) if focus == cid then focus = 0 state = 0 count = 0 end end function onThink() if (os.clock() - talk_start) > 20 then if focus > 0 then selfSay('Até mais senhor ' .. getCreatureName(focus) .. '.') focus = 0 end state = 0 end if focus > 0 then if getDistanceTo(focus) > 3 then selfSay('Até mais senhor ' .. getCreatureName(focus) .. '.') focus = 0 state = 0 else lookAtPlayer(focus) end end end
  8. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Sky aceita eu no msn lá, pra vc explicar melhor...
  9. WalkerKing reagiu a uma resposta no tópico: [Ajuda] Site
  10. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    E quando vo entrar no servidor aparece isso no tibia: Temple position is worong . Contact with the administration. e no distro aparece isso :. Error during getDataInt(honor). Error during getDataInt(world_id). Error during getDataInt(isNoPVP). Error during getDataInt(lastPVPChange). Error during getDataStream(conditions). Error during getDataInt(vocation). Error during getDataInt(promotion). Error during getDataInt(health). Error during getDataInt(healthmax). Error during getDataInt(mana). Error during getDataInt(manamax). Error during getDataInt(maglevel). Error during getDataLong(manaspent). Error during getDataInt(looktype). Error during getDataInt(lookhead). Error during getDataInt(lookbody). Error during getDataInt(looklegs). Error during getDataInt(lookfeet). Error during getDataInt(lookaddons). Error during getDataInt(skull). Error during getDataInt(skulltime). Error during getDataInt(town_id). Error during getDataInt(loss_experience). Error during getDataInt(loss_mana). Error during getDataInt(loss_skills). Error during getDataInt(loss_containers). Error during getDataInt(loss_items). Error during getDataInt(posz). Error during getDataInt(posy). Error during getDataInt(posx). Error during getDataLong(lastlogin). Error during getDataLong(lastlogout). Error during getDataInt(lastip). Error during getDataInt(rank_id). Error during getDataString(guildnick). mysql_real_query(): SELECT `targetGuildId` FROM `guild_wars` WHERE `ownGuildId` = 0 AND `status` = 1; - MYSQL ERROR: Table 'otserv.guild_wars' doesn't exist (11 46) mysql_real_query(): SELECT `ownGuildId` FROM `guild_wars` WHERE `targetGuildId` = 0 AND `status` = 1; - MYSQL ERROR: Table 'otserv.guild_wars' doesn't exist (11 46)
  11. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Agora deu esse: STEP 5 Set Admin Account Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vip_time' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:237 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(237): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\install.php(572): OTS_Account->load(1) #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 237
  12. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Gabriel, eu ja tenho vc... vc me blokeou ou exclui... Skydangerous vo fazer o'que vc disse...
  13. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Olá... Meu OT está um problema, quando vo importar meu mysql, da esse erro no server path. Warning: syntax error, unexpected '(' in C:/Documents and Settings/mv/Meus documentos/Meus arquivos recebidos/Bronson2/config.lua on line 3 inC:\xampp\htdocs\install.php on line 130 File config.lua loaded from C:/Documents and Settings/mv/Meus documentos/Meus arquivos recebidos/Bronson2/config.lua and it's not valid TFS config.lua file. Go to STEP 1 - select other directory. If it's your config.lua file from TFS contact with acc. maker author. Não sei o'que fazer... espero que me ajuden. REP+ pra quem ajudar...
  14. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Tem chances dessas coisas está no distro?
  15. WalkerKing postou uma resposta no tópico em Suporte Tibia OTServer
    Olá galera do Tibia King! Estou aqui para tirar uma dúvida [e/ou] ajuda... Não conheço "muito" de OtServer. Meu amigo me passo um OT que ele mesmo fez, mas eu não tenho mais contato com ele, então estou aqui para perguntar onde fica o script desses talkaction que fica tipo esse: <talkaction log="no" words="/dar" access="5" event="function" value="dar"/> Ajudem
  16. WalkerKing reagiu a uma resposta no tópico: [Website] CipSoft Layout para Nicaw
  17. Gabriel entra no MSN ai... vc disse pra add mais vc quase não entra

Informação Importante

Confirmação de Termo