Ir para conteúdo

Didome

Membro
  • Registro em

  • Última visita

  1. estou com um ot 8.60 e to tendo problemas com os npcs, principalmente npcs de mercadoria e afins (compra e venda de itens, parcel, etc..) eu falo hi, ele responde, porem ele nao tem mais nenhuma interação logo a seguir, nem quando falo offer, ou trade ou coisa do tipo, soh quando falo hi ou bye. segue a baixo o script do npc de parcel dove de venore como exemplo arquivo xml do npc logo abaixo -- <?xml version="1.0" encoding="UTF-8"?> <npc name="Dove" script="data/npc/scripts/Dove.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="59" body="86" legs="106" feet="115" addons="0"/> <voices> <voice text="If you need help with letters or parcels, just ask me. I can explain everything." interval2="100" margin="1" yell="no"/> <voice text="Hey, send a letter to your friend now and then. Keep in touch, you know." interval2="120" margin="1" yell="no"/> <voice text="Welcome to the post office!" interval2="90" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_shop" value="1" /> <parameter key="shop_buyable" value="label,2599,1;parcel,2595,15;letter,2597,8;" /> <parameter key="message_greet" value="Be greeted, noble |PLAYERNAME| and welcome to the post office."/> <parameter key="message_farewell" value="Come back soon, noble |PLAYERNAME|."/> <parameter key="message_walkaway" value="Come back soon, noble." /> <parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line and the name of the {city} in the second line." /> </parameters> </npc> arquivo lua do npc logo abaixo -- local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 npcHandler:addModule(FocusModule:new()) se puderem me ajudar agradeço, esse nao eh o unico npc q estou com problema, mas esse talvez servira pra eu entender o erro desde ja agradeço e peço desculpas caso tenha postado em area errada. rep+
  2. Didome postou uma resposta no tópico em Suporte Tibia OTServer
    estou com um script de npc oraculo (sv global 8.6) porem ele nao responde nada quando falo HI, hiho, hail ou coisa do genero... ja procurei diversos tutoriais ja tentei baixar ou usar script de outros ots e nao deu certo tbm irei colar a script local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic, vocation, town, destination = {}, {}, {}, {} local TOWN_ISLANDOFDESTINY = 20 local islandOfDestinyEnabled = true 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 function greetCallback(cid) if(getPlayerLevel(cid) < 8) then npcHandler:say("CHILD! COME BACK WHEN YOU HAVE GROWN UP!", cid) return false elseif(getPlayerLevel(cid) > 9) then npcHandler:say(getCreatureName(cid) .. ", I CAN'T LET YOU LEAVE - YOU ARE TOO STRONG ALREADY! YOU CAN ONLY LEAVE WITH LEVEL 9 OR LOWER.", cid) return false else local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid Topic[talkUser], vocation[talkUser], town[talkUser], destination[talkUser] = 0, 0, 0, 0 return true end end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(not npcHandler:isFocused(cid)) then return false elseif msgcontains(msg, "yes") and Topic[talkUser] == 0 then npcHandler:say(islandOfDestinyEnabled and "I WILL BRING YOU TO THE ISLAND OF DESTINY AND YOU WILL BE UNABLE TO RETURN HERE! ARE YOU SURE?" or "IN WHICH TOWN DO YOU WANT TO LIVE: {CARLIN}, {AB'DENDRIEL}, {KAZORDOON}" .. (isPremium(cid) == TRUE and ", {THAIS}, {VENORE}, {DARASHIA}, {ANKRAHMUN}, {EDRON} OR {PORT HOPE}?" or " OR {THAIS}?"), cid) Topic[talkUser] = islandOfDestinyEnabled and 4 or 1 elseif Topic[talkUser] == 0 then npcHandler:unGreet(cid) elseif msgcontains(msg, "carlin") and Topic[talkUser] == 1 then npcHandler:say("IN CARLIN! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 2 destination[talkUser] = {x=32360, y=31782, z=7} elseif msgcontains(msg, "ab'dendriel") and Topic[talkUser] == 1 then npcHandler:say("IN AB'DENDRIEL! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 3 destination[talkUser] = {x=32732, y=31634, z=7} elseif msgcontains(msg, "kazordoon") and Topic[talkUser] == 1 then npcHandler:say("IN KAZORDOON! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 4 destination[talkUser] = {x=32649, y=31925, z=11} elseif msgcontains(msg, "thais") and Topic[talkUser] == 1 then npcHandler:say("IN THAIS! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 5 destination[talkUser] = {x=32369, y=32241, z=7} elseif msgcontains(msg, "venore") and Topic[talkUser] == 1 then npcHandler:say("IN VENORE! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 6 destination[talkUser] = {x=32957, y=32076, z=7} elseif msgcontains(msg, "darashia") and Topic[talkUser] == 1 then if isPremium(cid) == TRUE then npcHandler:say("IN DARASHIA! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 7 destination[talkUser] = {x=33213, y=32454, z=1} else npcHandler:say("YOU NEED A PREMIUM ACCOUNT IN ORDER TO GO THERE!", cid) Topic[talkUser] = 1 end elseif msgcontains(msg, "ankrahmun") and Topic[talkUser] == 1 then if isPremium(cid) == TRUE then npcHandler:say("IN ANKRAHMUN! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 8 destination[talkUser] = {x=33194, y=32853, z=8} else npcHandler:say("YOU NEED A PREMIUM ACCOUNT IN ORDER TO GO THERE!", cid) Topic[talkUser] = 1 end elseif msgcontains(msg, "edron") and Topic[talkUser] == 1 then if isPremium(cid) == TRUE then npcHandler:say("IN EDRON! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 9 destination[talkUser] = {x=33217, y=31814, z=8} else npcHandler:say("YOU NEED A PREMIUM ACCOUNT IN ORDER TO GO THERE!", cid) Topic[talkUser] = 1 end elseif msgcontains(msg, "port") and msgcontains(msg, "hope") and Topic[talkUser] == 1 then if isPremium(cid) == TRUE then npcHandler:say("IN PORT HOPE! AND WHAT PROFESSION HAVE YOU CHOSEN: {KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 town[talkUser] = 10 destination[talkUser] = {x=32595, y=32744, z=6} else npcHandler:say("YOU NEED A PREMIUM ACCOUNT IN ORDER TO GO THERE!", cid) Topic[talkUser] = 1 end elseif Topic[talkUser] == 1 then npcHandler:say("{CARLIN}, {AB'DENDRIEL}, {KAZORDOON}" .. (isPremium(cid) == TRUE and ", {THAIS}, {VENORE}, {DARASHIA}, {ANKRAHMUN}, {EDRON} OR {PORT HOPE}?" or " OR {THAIS}?"), cid) Topic[talkUser] = 1 elseif msgcontains(msg, "sorcerer") and Topic[talkUser] == 2 then npcHandler:say("A SORCERER! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!", cid) Topic[talkUser] = 3 vocation[talkUser] = 1 elseif msgcontains(msg, "druid") and Topic[talkUser] == 2 then npcHandler:say("A DRUID! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!", cid) Topic[talkUser] = 3 vocation[talkUser] = 2 elseif msgcontains(msg, "paladin") and Topic[talkUser] == 2 then npcHandler:say("A PALADIN! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!", cid) Topic[talkUser] = 3 vocation[talkUser] = 3 elseif msgcontains(msg, "knight") and Topic[talkUser] == 2 then npcHandler:say("A KNIGHT! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!", cid) Topic[talkUser] = 3 vocation[talkUser] = 4 elseif Topic[talkUser] == 2 then npcHandler:say("{KNIGHT}, {PALADIN}, {SORCERER}, OR {DRUID}?", cid) Topic[talkUser] = 2 elseif msgcontains(msg, "yes") and Topic[talkUser] == 3 then npcHandler:say("SO BE IT!", cid) Topic[talkUser] = 0 doPlayerSetVocation(cid, vocation[talkUser]) doPlayerSetTown(cid, town[talkUser]) npcHandler:releaseFocus(cid) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) doTeleportThing(cid, destination[talkUser]) doSendMagicEffect(destination[talkUser], CONST_ME_TELEPORT) elseif Topic[talkUser] == 3 then npcHandler:unGreet(cid) elseif Topic[talkUser] == 4 then if msgcontains(msg, "yes") then npcHandler:say("SO BE IT!", cid) Topic[talkUser] = 0 doPlayerSetTown(cid, TOWN_ISLANDOFDESTINY) npcHandler:releaseFocus(cid) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) doTeleportThing(cid, {x=32091,y=32027,z=7}) doSendMagicEffect({x=32091,y=32027,z=7}, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Welcome to the Island of Destiny. Walk north to find trainers who will help you find a suitable vocation.") doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The surface of this island is a protection zone. You can't attack or regain health here. If you need healing, talk to Yandur.") doAddMapMark(cid, {x=32091,y=32027,z=7}, MAPMARK_EXCLAMATION, "Island of Destiny - Training Centre") doAddMapMark(cid, {x=32091,y=32027,z=7}, MAPMARK_GREENNORTH, "Ship to Mainland") else npcHandler:unGreet(cid) end end return TRUE end npcHandler:setMessage(MESSAGE_GREET, "|PLAYERNAME|, ARE YOU PREPARED TO FACE YOUR DESTINY?") npcHandler:setMessage(MESSAGE_WALKAWAY, "COME BACK WHEN YOU ARE PREPARED TO FACE YOUR DESTINY!") npcHandler:setMessage(MESSAGE_FAREWELL, "COME BACK WHEN YOU ARE PREPARED TO FACE YOUR DESTINY!") npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. o meu tambem continua dando o mesmo erro '-'
  4. gostaria de saber como faço pra remover a parte selecionada em vermelho na imagem e fazer com q o otclient logue direto no meu ip fixo(no-ip) e ja com a versão selecionada e se possivel como criptografar o spr e dat obs: nao sei se postei na area certa, desde ja peço desculpas/obg
  5. alguem teria map global 7.4 ou 7.6 com rookguard e as pastas dos npcs para disponibilizar? rep++
  6. =/ thanks so much anyway
  7. Yes, is that name of the files in my folder data/world
  8. are there, sorry about it
  9. when i open the server, are normal only when i open the map on rme 2.2 i already try to copy and paste the code into spawn/house file .xml but when i put the server online, don't have monsters and npc with the new map with the old code .. are there the prints
  10. I have the files saved in the ot world folder, I opened the same map several times but always gave the same error "can not load rspawn and map", I tried to create a new one and save, but the same error appears
  11. sempre q eu carrego o map do meu poketibia ele da erro no respawn e houses, fui em map-> propriedades e ta com o mesmo nome dos arquivos xml da pasta world do meu poketibia ot, porem criei um mapa do 0, um respawn e house do 0, uma city pequena, bem simples apenas pra testar, quando vou abrir da o mesmo erro ate nesse novo map q eu criei, sera q eh erro no rme? versao q aparece no console do programa q poem o ot online diz q o map foi editado com rme 2.2, consegui configura o meu rme pra versao estendida e mesmo assim da erro no respawn e house, porem map abre bonitinho, alguem sabe como resolver? procurei em varios topicos no forum do tk, em outros sites relacionados a OT, no google em geral, porem todos dizem pra reinstalar ou verificar o nome dos arquivos xml se ta igual no map->propriedades e nada deu certo... versao do poketibia - 8.56 spr e dat - 8.54 versao do rme 2.2
  12. Didome postou uma resposta no tópico em Suporte OTServer Derivados
    estou com um cliente de poketibia, porem quando eu altero no entergame.lua o ip para o ip da maquina ou o ip fixo q fiz no no-ip, na hora de logar ele da erro 10060, só funciona quando o server e o cliente tao em 127.0.0.1 o q faço? as portas 7171 e 7172 estao liberadas no firewall
  13. Didome postou uma resposta no tópico em Suporte Tibia OTServer
    estou com um site hospedado no xampp, porem soh consigo acessar como localhost, como faço pra trocar o ip de localhost para um dominio feito no no-ip??
  14. Didome postou uma resposta no tópico em Suporte Tibia OTServer
    Sou meio noob nisso, mas, é em localhost/phpmyadmin onde cria a tabela? Se nao for pedir muito, umas screen shots explicando ;x olha, tentei criar aqui a query com o q vc me passou e deu isso aqui eu vim nessa parte do localhost phpmyadmin pra colar o q vc me passou
  15. Didome postou uma resposta no tópico em Suporte Tibia OTServer
    eu tentei hostear meu site pelo xampp porem quando acesso localhost ele da a seguinte mensagem A Database Error Occurred Error Number: 1146 Table 'poketibia.news' doesn't exist SELECT * FROM (`news`) ORDER BY `id` desc LIMIT 10 o q faço?

Informação Importante

Confirmação de Termo