Ir para conteúdo

Leonardo Simonetto

Membro
  • Registro em

  • Última visita

Tudo que Leonardo Simonetto postou

  1. .Qual servidor ou website você utiliza como base? Servidor 8.60 - TFS 1.0 Qual o motivo deste tópico? Não é possível fazer depósitos pelo NPC, o mesmo retorna erro no console. Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local count = {} local transfer = {} 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 local voices = { {text = 'It\'s a wise idea to store your money in your bank account.'} } npcHandler:addModule(VoiceModule:new(voices)) local function greetCallback(cid) count[cid], transfer[cid] = nil, nil return true end local function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end local player = Player(cid) ---------------------------- help ------------------------ if msgcontains(msg, 'bank account') then npcHandler:say({ 'Every Tibian has one. The big advantage is that you can access your money in every branch of the Tibian Bank! ...', 'Would you like to know more about the {basic} functions of your bank account, the {advanced} functions, or are you already bored, perhaps?' }, cid) npcHandler.topic[cid] = 0 return true ---------------------------- balance --------------------- elseif msgcontains(msg, 'balance') then npcHandler.topic[cid] = 0 if player:getBankBalance() >= 100000000 then npcHandler:say('I think you must be one of the richest inhabitants in the world! Your account balance is ' .. player:getBankBalance() .. ' gold.', cid) return true elseif player:getBankBalance() >= 10000000 then npcHandler:say('You have made ten millions and it still grows! Your account balance is ' .. player:getBankBalance() .. ' gold.', cid) return true elseif player:getBankBalance() >= 1000000 then npcHandler:say('Wow, you have reached the magic number of a million gp!!! Your account balance is ' .. player:getBankBalance() .. ' gold!', cid) return true elseif player:getBankBalance() >= 100000 then npcHandler:say('You certainly have made a pretty penny. Your account balance is ' .. player:getBankBalance() .. ' gold.', cid) return true else npcHandler:say('Your account balance is ' .. player:getBankBalance() .. ' gold.', cid) return true end ---------------------------- deposit --------------------- elseif msgcontains(msg, 'deposit') then count[cid] = player:getMoney() if count[cid] < 1 then npcHandler:say('You do not have enough gold.', cid) npcHandler.topic[cid] = 0 return false end if msgcontains(msg, 'all') then count[cid] = player:getMoney() npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) npcHandler.topic[cid] = 2 return true else if string.match(msg,'%d+') then count[cid] = getMoneyCount(msg) if count[cid] < 1 then npcHandler:say('You do not have enough gold.', cid) npcHandler.topic[cid] = 0 return false end npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) npcHandler.topic[cid] = 2 return true else npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid) npcHandler.topic[cid] = 1 return true end end if not isValidMoney(count[cid]) then npcHandler:say('Sorry, but you can\'t deposit that much.', cid) npcHandler.topic[cid] = 0 return false end elseif npcHandler.topic[cid] == 1 then count[cid] = getMoneyCount(msg) if isValidMoney(count[cid]) then npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid) npcHandler.topic[cid] = 2 return true else npcHandler:say('You do not have enough gold.', cid) npcHandler.topic[cid] = 0 return true end elseif npcHandler.topic[cid] == 2 then if msgcontains(msg, 'yes') then if player:getMoney() >= tonumber(count[cid]) then player:depositMoney(count[cid]) npcHandler:say('Alright, we have added the amount of ' .. count[cid] .. ' gold to your {balance}. You can {withdraw} your money anytime you want to.', cid) else npcHandler:say('You do not have enough gold.', cid) end elseif msgcontains(msg, 'no') then npcHandler:say('As you wish. Is there something else I can do for you?', cid) end npcHandler.topic[cid] = 0 return true ---------------------------- withdraw -------------------- elseif msgcontains(msg, 'withdraw') then if string.match(msg,'%d+') then count[cid] = getMoneyCount(msg) if isValidMoney(count[cid]) then npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid) npcHandler.topic[cid] = 7 else npcHandler:say('There is not enough gold on your account.', cid) npcHandler.topic[cid] = 0 end return true else npcHandler:say('Please tell me how much gold you would like to withdraw.', cid) npcHandler.topic[cid] = 6 return true end elseif npcHandler.topic[cid] == 6 then count[cid] = getMoneyCount(msg) if isValidMoney(count[cid]) then npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid) npcHandler.topic[cid] = 7 else npcHandler:say('There is not enough gold on your account.', cid) npcHandler.topic[cid] = 0 end return true elseif npcHandler.topic[cid] == 7 then if msgcontains(msg, 'yes') then if player:getFreeCapacity() >= getMoneyWeight(count[cid]) then if not player:withdrawMoney(count[cid]) then npcHandler:say('There is not enough gold on your account.', cid) else npcHandler:say('Here you are, ' .. count[cid] .. ' gold. Please let me know if there is something else I can do for you.', cid) end else npcHandler:say('Whoah, hold on, you have no room in your inventory to carry all those coins. I don\'t want you to drop it on the floor, maybe come back with a cart!', cid) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, 'no') then npcHandler:say('The customer is king! Come back anytime you want to if you wish to {withdraw} your money.', cid) npcHandler.topic[cid] = 0 end return true ---------------------------- transfer -------------------- elseif msgcontains(msg, 'transfer') then npcHandler:say('Please tell me the amount of gold you would like to transfer.', cid) npcHandler.topic[cid] = 11 elseif npcHandler.topic[cid] == 11 then count[cid] = getMoneyCount(msg) if player:getBankBalance() < count[cid] then npcHandler:say('There is not enough gold on your account.', cid) npcHandler.topic[cid] = 0 return true end if isValidMoney(count[cid]) then npcHandler:say('Who would you like transfer ' .. count[cid] .. ' gold to?', cid) npcHandler.topic[cid] = 12 else npcHandler:say('There is not enough gold on your account.', cid) npcHandler.topic[cid] = 0 end elseif npcHandler.topic[cid] == 12 then transfer[cid] = msg if player:getName() == transfer[cid] then npcHandler:say('Fill in this field with person who receives your gold!', cid) npcHandler.topic[cid] = 0 return true end if playerExists(transfer[cid]) then npcHandler:say('So you would like to transfer ' .. count[cid] .. ' gold to ' .. transfer[cid] .. '?', cid) npcHandler.topic[cid] = 13 else npcHandler:say('This player does not exist.', cid) npcHandler.topic[cid] = 0 end elseif npcHandler.topic[cid] == 13 then if msgcontains(msg, 'yes') then if not player:transferMoneyTo(transfer[cid], count[cid]) then npcHandler:say('You cannot transfer money to this account.', cid) else npcHandler:say('Very well. You have transferred ' .. count[cid] .. ' gold to ' .. transfer[cid] ..'.', cid) transfer[cid] = nil end elseif msgcontains(msg, 'no') then npcHandler:say('Alright, is there something else I can do for you?', cid) end npcHandler.topic[cid] = 0 ---------------------------- money exchange -------------- elseif msgcontains(msg, 'change gold') then npcHandler:say('How many platinum coins would you like to get?', cid) npcHandler.topic[cid] = 14 elseif npcHandler.topic[cid] == 14 then if getMoneyCount(msg) < 1 then npcHandler:say('Sorry, you do not have enough gold coins.', cid) npcHandler.topic[cid] = 0 else count[cid] = getMoneyCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your gold coins into ' .. count[cid] .. ' platinum coins?', cid) npcHandler.topic[cid] = 15 end elseif npcHandler.topic[cid] == 15 then if msgcontains(msg, 'yes') then if player:removeItem(2148, count[cid] * 100) then player:addItem(2152, count[cid]) npcHandler:say('Here you are.', cid) else npcHandler:say('Sorry, you do not have enough gold coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, 'change platinum') then npcHandler:say('Would you like to change your platinum coins into gold or crystal?', cid) npcHandler.topic[cid] = 16 elseif npcHandler.topic[cid] == 16 then if msgcontains(msg, 'gold') then npcHandler:say('How many platinum coins would you like to change into gold?', cid) npcHandler.topic[cid] = 17 elseif msgcontains(msg, 'crystal') then npcHandler:say('How many crystal coins would you like to get?', cid) npcHandler.topic[cid] = 19 else npcHandler:say('Well, can I help you with something else?', cid) npcHandler.topic[cid] = 0 end elseif npcHandler.topic[cid] == 17 then if getMoneyCount(msg) < 1 then npcHandler:say('Sorry, you do not have enough platinum coins.', cid) npcHandler.topic[cid] = 0 else count[cid] = getMoneyCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your platinum coins into ' .. count[cid] * 100 .. ' gold coins for you?', cid) npcHandler.topic[cid] = 18 end elseif npcHandler.topic[cid] == 18 then if msgcontains(msg, 'yes') then if player:removeItem(2152, count[cid]) then player:addItem(2148, count[cid] * 100) npcHandler:say('Here you are.', cid) else npcHandler:say('Sorry, you do not have enough platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end npcHandler.topic[cid] = 0 elseif npcHandler.topic[cid] == 19 then if getMoneyCount(msg) < 1 then npcHandler:say('Sorry, you do not have enough platinum coins.', cid) npcHandler.topic[cid] = 0 else count[cid] = getMoneyCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your platinum coins into ' .. count[cid] .. ' crystal coins for you?', cid) npcHandler.topic[cid] = 20 end elseif npcHandler.topic[cid] == 20 then if msgcontains(msg, 'yes') then if player:removeItem(2152, count[cid] * 100) then player:addItem(2160, count[cid]) npcHandler:say('Here you are.', cid) else npcHandler:say('Sorry, you do not have enough platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, 'change crystal') then npcHandler:say('How many crystal coins would you like to change into platinum?', cid) npcHandler.topic[cid] = 21 elseif npcHandler.topic[cid] == 21 then if getMoneyCount(msg) < 1 then npcHandler:say('Sorry, you do not have enough crystal coins.', cid) npcHandler.topic[cid] = 0 else count[cid] = getMoneyCount(msg) npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your crystal coins into ' .. count[cid] * 100 .. ' platinum coins for you?', cid) npcHandler.topic[cid] = 22 end elseif npcHandler.topic[cid] == 22 then if msgcontains(msg, 'yes') then if player:removeItem(2160, count[cid]) then player:addItem(2152, count[cid] * 100) npcHandler:say('Here you are.', cid) else npcHandler:say('Sorry, you do not have enough crystal coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end npcHandler.topic[cid] = 0 end return true end keywordHandler:addKeyword({'money'}, StdModule.say, {npcHandler = npcHandler, text = 'We can {change} money for you. You can also access your {bank account}.'}) keywordHandler:addKeyword({'change'}, StdModule.say, {npcHandler = npcHandler, text = 'There are three different coin types in Tibia: 100 gold coins equal 1 platinum coin, 100 platinum coins equal 1 crystal coin. So if you\'d like to change 100 gold into 1 platinum, simply say \'{change gold}\' and then \'1 platinum\'.'}) keywordHandler:addKeyword({'bank'}, StdModule.say, {npcHandler = npcHandler, text = 'We can {change} money for you. You can also access your {bank account}.'}) keywordHandler:addKeyword({'advanced'}, StdModule.say, {npcHandler = npcHandler, text = 'Your bank account will be used automatically when you want to {rent} a house or place an offer on an item on the {market}. Let me know if you want to know about how either one works.'}) keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, text = 'You can check the {balance} of your bank account, {deposit} money or {withdraw} it. You can also {transfer} money to other characters, provided that they have a vocation.'}) keywordHandler:addKeyword({'functions'}, StdModule.say, {npcHandler = npcHandler, text = 'You can check the {balance} of your bank account, {deposit} money or {withdraw} it. You can also {transfer} money to other characters, provided that they have a vocation.'}) keywordHandler:addKeyword({'basic'}, StdModule.say, {npcHandler = npcHandler, text = 'You can check the {balance} of your bank account, {deposit} money or {withdraw} it. You can also {transfer} money to other characters, provided that they have a vocation.'}) keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, text = 'I work in this bank. I can change money for you and help you with your bank account.'}) keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, text = "My name is Naji. My mother gave me that name because she knew a Paladin with that name. I'm a spare timer hunter by myself, you know! I want to join the {Paw and Fur - hunting elite}!"}) keywordHandler:addKeyword({'paw and fur'}, StdModule.say, {npcHandler = npcHandler, text = "The Paw and Fur - Hunting Elite is a newly founded hunting society in Port Hope. It is said that they send you on hunting mission. Sounds great if you ask me."}) npcHandler:setMessage(MESSAGE_GREET, 'Welcome to the Tibian {bank}, |PLAYERNAME|! What can I do for you?') npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  2. Cliquei em inspecionar e um aparece: bgcolor="#505050" e o outro não aparece para por a cor, onde posso arrumar? Consegui resolver amigo! Muito obrigado, REP+
  3. Pessoal, seguinte, estive fazendo alteração nas imagens do ot, quando abri novamente percebi que sumiu a tarja cinza atrás do "TOP GUILDS" e da publicação do GOD. o que pode ser? Segue como está:
  4. Leonardo Simonetto postou uma resposta no tópico em Suporte Tibia OTServer
    Fala pessoal, beleza? Gostaria de saber se é possível colocar o shopsystem igual ao global por categorias e de maneira bonita e organizada hehe Caso alguém tenha e queira disponibilizar, agradeço muito!
  5. .Qual servidor ou website você utiliza como base? Baiak Está surgindo algum erro? Se sim coloque-o aqui. Alguém poderia me dar um Help? quando vou em "quem está online" e clico no char, aparece isso. o exiva no game funciona para o nome.
  6. Olá, estou a disposição. Me envie um e-mail para: [email protected] será um prazer :D
  7. Querido amigo, por motivos de ser um servidor de mapa próprio, absolutamente NINGUÉM vai conhecer as hunts no level 10. Então foi estudada essa maneira para que jogadores novos tenham possibilidade de upar mais rápido para poder explorar. Obrigado pelo comentário :D
  8. Prezados Mappers, O Hunted Server servidor é 100% RPG com um Mapa Custom! Pensando em novos players que não conhecem nosso mapa, Tomei por vontade criar 05 Teleports em uma única area. - Rotworm -Cyclops -Dragons -Hero -Hydra Assim com estes 05 Teleports os novos players poderão chegar ao level 80-100 com mais facilidade, pois o Hunted Server possui EXP 50x c/ Stage. Segue o Modelo que será apresentado pelo Server na próxima reinicialização. Para quem se interessou em Jogar o Hunted, baste digitar em seu navegador o seguinte IP: HuntedServer.com Lembrando que é da versão 8.6 Segue a imagem:
  9. Prezados Moderadores, me perdoem, sei que é errado.. MAS O HUNTED FINALMENTE ABRIU! Finalmente retiramos o projeto dos papeis e esta online com toda a força! WWW.HUNTEDSERVER.COM - 8.60 PORT 7171 VEM CONFERIR E DISPUTAR PELO TOP LEVEL! SEJA O MELHOR!!
  10. Prezados, Quando um player morre em meu servidor, voltam ao level 1 sem vocação. Mesmo estando de aol e bless. Poderiam me ajudar? "Player" (Level 1). He has no vocation.
  11. Necessitamos de Scripter e Mapper.
  12. Prezados, possuímos um servidor Mapa Global 11.0-10.97 já online! Necessitamos de um Mapper, Scripter e um OT-Admin para encontrar bugs e relatar aos demais para concerto! Caso alguém tenha interesse nesse projeto chamado Fantasy Otserver, entre em contato comigo pelo facebook https://www.facebook.com/leonardo.simonetto SITE DO OTSERVER: http://fantasyotsv.servegame.com/
  13. Leonardo Simonetto respondeu ao post em um tópico de haiorya em Formação de Equipe
    cara, possuo um mapa próprio 8.60, caso tenha interesse, chama ai
  14. Meus grandes parceiros do tibia! Gostaria de formar uma equipe em um servidor GLOBAL 10.97-11.00. Não irei apresentar o servidor, mas posso adiantar que irá ficar online em no máximo dezembro! Precisamos de: Mapper [X] [ ] SCRIPTER [ ] WEB-ADMIN [X] PROGRAMADOR [ ] [ ] DESIGNER [ ] Amigos, necessitamos urgente desta equipe para adiantar o máximo o servidor! Já temos VPS! OBRIGADO PELA ATENÇÃO.
  15. Preciso de ajuda pra liberar porta 7171 e 7172 no ubuntu 14.4 URGENTE alguem me ajuda, por favor! só falta isso pro server ficar online.
  16. Olá, testei as portas 80 - 7171 - 7172. Apenas a 80 esta aberta! pode me responder no private?
  17. Galera, tenho internet fibra óptica em casa, estou com um computador de servidor e quero por online! Já tenho um servidor pronto pra por, preciso de ajuda para configurar o IP (tenho IP publico) me informaram para liberar as portas, mas já liberei porta no roteador, no conversor óptico, em tudo! mas não consigo entrar no servidor de outra maquina, alguem pode me dar um help? (Caso alguem entenda de ubuntu, temos uma vaga em nossa equipe! nosso mapa é o antigo VIPOT!) Obrigado desde já!
  18. Leonardo Simonetto respondeu ao post em um tópico de dhiol em Formação de Equipe
    mapper, chama pvt
  19. Leonardo Simonetto postou uma resposta no tópico em Formação de Equipe
    Prezados amigos, Tenho interesse em montar um servidor! Pode ser Global, Baiak, enfim, qualquer versão! Eu irei comprar dedicado, site, hoster, enfim, tudo! Preciso das seguintes pessoas Scripter Mapper OT Admin Alguem que entenda ou que ja teve algum servidor. Gostou da ideia? me manda um e-mail lá no [email protected] Obrigado!
  20. Prezados, preciso do distro compilado para linux e Windows, ou seja, os servidores zerados, pra começar tudo do início. Desde já, agradeço
  21. Up <ME DESCULPEM MODERADORES, MAS A IDEIA PERSISTE>
  22. Prezados: Já tem um bom e ótimo tempo que parei de jogar Tibia, tanto Otserver como Global, porém veio por meio deste comunicado informar que estou abrindo um servidor novo! Desde já gostaria de explicar minha vontade em criar um servidor: O Servidor Fantasy World terá como base o mapa do Alissow! "Porque?" Simples, joguei um servidor igual a este uma vez e realmente foi o melhor servidor que já pude experimentar, gostaria de trazer a mesma sensação que senti a novos Players! O Fantasy World será 80% voltado ao RPG, ou seja... Você Tibiano, não terá teleports ou facilidade em encontrar hunts ou quests! Isso mesmo, terá que procurar por cada campo do mapa com seu Team e amigos, podendo encontrar inimigos no caminho! hehe Meus queridos amigos, O Server inicialmente terá a seguinte base: Exp: 250 (lvl 10) - 90 (lvl 230+) Set full para todas as vocações Area VIP exclusiva War System Castle Zombie (Dentre outras configurações que só irei mencionar para a equipe).. sorry NÃO COLOCAREI PRINT NO POST. Amigos, por fim venho pedir a colaboração das seguintes pessoas. Scripter (0/1) Site Web (0/1) Mapper (1/2) Ot Admin (1/2) Tutor (0/1) Muito obrigado por seu maravilhoso tempo lendo esta publicação, espero que seu dia seja o melhor! Interessados favor responder este tópico ou enviar mensagem para minha conta no TK! Atenciosamente, Fantasy World Server
  23. Leonardo Simonetto postou uma resposta no tópico em Formação de Equipe
    Prezados amigos, Tenho interesse em montar um servidor! Pode ser Global, Baiak, enfim, qualquer versão! Eu irei comprar dedicado, site, hoster, enfim, tudo! Preciso das seguintes pessoas Scripter Mapper OT Admin Alguem que entenda ou que ja teve algum servidor. Gostou da ideia? me manda um e-mail lá no [email protected] Obrigado!

Informação Importante

Confirmação de Termo