Ir para conteúdo

joadson

Membro
  • Registro em

Tudo que joadson postou

  1. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    O fechado é devido alguma falha no distro(executavel), você pode pegar outro distro e testar... E sobre os UniqueID, não é muito complicado remover eles, basta saber o que você está modificando.
  2. Blz, vou modifcar apenas a parte que escolhe o jogador. Depois edito e posto aqui o novo link com o codigo arrumado --------------------------edit------------------------ Novo link com a pagina arrumada http://pastebin.com/BNEgi5uC
  3. Aqui está modifiquei se caso der algum erro só postar. OBS: Não testei pois não uso esse sistema, então removi a parte em que digita o nome. http://pastebin.com/mf5sNq5u << Link do codigo(aqui tava corrompendo)
  4. Terá que editar a pagina do site, removendo a opção de enviar para outro jogador. Se quiser, poste sua pagina que irei remover para você.
  5. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Alguém poderia me ajudar? é o seguinte, em alguns sistemas os valores estão sendo "corrompidos", digamos que o sistema era para gerar um valor 123132132, e está ficando uns simbolos no lugar dos valores numericos.(confira na imagem) e creio que os sistemas que estão dando "isso", não contém erros, pois já deu esse erro com o "level points" do maxwelld(algo assim) e agora deu isso no task system(não posto o link porque é de outro forum). Se alguem souber como posso arrumar esse problema, pois é algo urgente e serio. Uso o TFS 0.3.6 PL1.
  6. Converter o "resto" é simples, faça as coisas por etapa... 1° pegue a pasta action e reabra o server(se ficar sem bugs, pule pra proxima etapa) 2° pegue a pasta creaturescripts e reabra o server(se ficar sem bugs, pule pra proxima etapa) 3° pegue a pasta globalevents e reabra o server(se ficar sem bugs, pule pra proxima etapa) 4° pegue a pasta monster e reabra o server(se ficar sem bugs, pule pra proxima etapa) 5° pegue a pasta movements e reabra o server(se ficar sem bugs, pule pra proxima etapa) 6° pegue a pasta npc e reabra o server(se ficar sem bugs, pule pra proxima etapa) 7° pegue a pasta spells e reabra o server(se ficar sem bugs, pule pra proxima etapa) 8° pegue a pasta talkactions e reabra o server(se ficar sem bugs, pule pra proxima etapa) 9° pegue a pasta weapons e reabra o server(se ficar sem bugs, pule pra proxima etapa) e por ultimo vamos a pasta LIB, ela é responsavel por tudo do servidor, então mude ela por ultimo pois tenho certeza que irá dar algum bug relacionado as funçoes, mas se caso der, eu ajudo a resolver(ou tento)
  7. o item2 está no chão o.O devo ter errado mas use o que Smadok postou, está sem erros
  8. você pode usar o guia de busca e tentar achar :X se der eu te ajudo a converter
  9. Tem como passar para versao 9.10... mas você tem que ter um conhecimento para identificar as funçoes que mudou, passar 8.60 para 8.70 é bem mais fácil pois não mudou muitas funçoes... Tente fazer isso
  10. Não poste link's de outros forums mas respondendo a sua pergunta, o mapa pode até funcionar, mas alguns itens da pasta "data" podem não funcionar corretamente e ocasionar bugs, devido a mudança de algumas funçoes...
  11. Não seria mais fácil você converter apenas o mapa? e baixar um otserv 8.70 e usar seu mapa(se for modificado), caso contrário baixe um 8.70 logo e faça sua edição.
  12. Fiz um script aqui, não sei se é isso que você quer e se vai funcionar, mas se der erro é mais fácil arrumar vá em data/action/script e crie um arquivo saver.lua e coloque o codigo abaixo function onUse(cid, item, frompos, item1, topos) local config = { exhaustionInSeconds = 300, storage = 10091 } item1pos = {x=470, y=347, z=7, stackpos=255} -- Aqui a posição do item1 item1 = getThingfromPos(item1pos) if item.itemid == 10091 and item1.itemid == 10092 then doRemoveItem(item.uid,1) doPlayerSave(cid) exhaustion.set(cid, config.storage, config.exhaustionInSeconds) doPlayerSendCancel(cid, "Você foi salvo com sucesso!") else doPlayerSendCancel(cid, "Você não tem o item saver") return TRUE end if(exhaustion.check(cid, config.storage) == TRUE) then doPlayerSendCancel(cid, "Você só pode usar esse item a cada " .. config.exhaustionInSeconds .. " segundos.") return TRUE end end e agora em action.xml adicione: <action itemid="10091" script="saver.lua"/> <action uniqueid="12129" script="saver.lua"/> OBS: estou começando no mundo de script, então pode haver erros :X
  13. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    é porque não está encontrando a table '--.kilers' que server/versão você está usando?
  14. Sorry, esqueci algumas linhas kkk teste esse aqui 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 creatureSayCallback(cid, type, msg) npcHandler:creatureSayCallback(cid, type, msg) end function onThink() npcHandler:onThink() end function onPlayerEndTrade(cid) npcHandler:onPlayerEndTrade(cid) end function onPlayerCloseChannel(cid) npcHandler:onPlayerCloseChannel(cid) end npcHandler:addModule(FocusModule:new()) local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end 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 creatureSayCallback(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. getCreatureName(cid) .. '! If you want make a guild, talk info.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'info') then selfSay('You can create a guild talking "!createguild ...and the name...". When you create go for the Guild-Chat, and talk "!commands" that will go talk the commands for guild.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Bye ' .. creatureGetName(cid) .. ', Come back.') focus = 0 talk_start = 0 elseif msg ~= "" then selfSay('What?') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end
  15. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Isso deve problema com o distro mesmo, você já trocou e testou? Porque tem alguns distros que sofrem modificações e causam bugs em certos servidores, pegue um distro "virgem" e faça o teste ou então tem algum script que quando dá startup executa querys na database fazendo "bagunçar" tudo... olhe no globalevents.xml se tem algo relacionado a "start"
  16. Aqui que faz a configuração... --days woe_config.dias = {"tuesday", "thursday", "saturday"} -- terça, quinta e sabado, para mudar vá no google tradutor e traduza o dia de PORTUGUES para INGLES se você souber é melhor --time to start woe_config.horaPartida = 19 -- hora que irá começar, no caso as 19 horas, nos dias configurado acima
  17. Aqui vá em data/action/scripts e crie um arquivo chamado frags.lua e coloque isso dentro function onUse(cid, item, fromPosition, item2, toPosisition) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") db.executeQuery("UPDATE `players` SET `skulltime` = 0") doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Você removeu seus Frags/Skull com sucesso.", 19) doSendMagicEffect(getPlayerPosition(cid), 26) return TRUE end e coloque isso em action.xml <action itemid="ID DO ITEM QUE REMOVE" script="frags.lua" />
  18. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    você retirou as linhas de comentários do config.lua? tinha esse problema(não sei se tem ainda)
  19. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Aqui Vá em \data\npc e cria Info.xml e coloque isso dentro <?xml version="1.0" encoding="UTF-8"?> <npc name="[INFO] Server" script="data/npc/scripts/info.lua" walkinterval="0" floorchange="0"> <health now="100" max="100"/> <look type="289" head="114" body="114" legs="82" feet="82" addons="3"/> <parameters> <parameter key="message_greet" value="Seja bem vindo |PLAYERNAME|! Posso te ajudar? Diga {ajuda}. Eu tambem vendo Amulet Of Loss, diga {trade}." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="hi;ajuda;mapa;monstros;magias;bye;promotion;donation;site" /> <parameter key="keyword_reply1" value="Seja bem vindo |PLAYERNAME|! Posso te ajudar em varias coisas. Diga {ajuda}" /> <parameter key="keyword_reply2" value="Deseja saber sobre {AJUDA 1}, {AJUDA 2}, {AJUDA 3}, {AJUDA 4}, {AJUDA 5}, {AJUDA 6}?" /> <parameter key="keyword_reply3" value="Texto sobre AJUDA 1." /> <parameter key="keyword_reply4" value="Texto sobre AJUDA 2." /> <parameter key="keyword_reply5" value="Texto sobre AJUDA 3." /> <parameter key="keyword_reply6" value="Tchau." /> <parameter key="keyword_reply7" value="Texto sobre AJUDA 4." /> <parameter key="keyword_reply8" value="Texto sobre AJUDA 5." /> <parameter key="keyword_reply10" value="Texto sobre AJUDA 6." /> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="aol,2173,10000"/> <parameter key="shop_sellable" value="aol,2173,5000"/> </parameters> </npc> e depois vai em \data\npc\scripts e cria um arquivo chamado info.lua e coloque isso dentro 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 function thinkCallback(cid) local rand = math.random(1,100) if rand == 1 then selfSay('Posso ajudar?') end return true end function greetCallback(cid) return true end npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback) npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:addModule(FocusModule:new()) <parameter key="keywords" value="hi;ajuda1;ajuda2;ajuda3;ajuda4;ajuda5;ajuda6;" /> OBS: Aqui você vai mudar o que o player vai dizer. hi/ajuda1 <parameter key="keyword_reply2" value="Deseja saber sobre {AJUDA 1}, {AJUDA 2}, {AJUDA 3}, {AJUDA 4}, {AJUDA 5}, {AJUDA 6}?" /> OBS2: Aqui vai ser o texto que ele vai ter ao falar com o NPC <parameter key="keyword_reply3" value="Texto sobre AJUDA 1." /> OBS3: Aqui vai ser o que o NPC vai xplicar sobre o server... Se der algum erro é só falar(escrever)
  20. Tente com esse script agora. é o guild.lua function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function creatureSayCallback(cid, type, msg) npcHandler:creatureSayCallback(cid, type, msg) end function onThink() npcHandler:onThink() end function onPlayerEndTrade(cid) npcHandler:onPlayerEndTrade(cid) end function onPlayerCloseChannel(cid) npcHandler:onPlayerCloseChannel(cid) end npcHandler:addModule(FocusModule:new()) local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end 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 creatureSayCallback(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. getCreatureName(cid) .. '! If you want make a guild, talk info.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'info') then selfSay('You can create a guild talking "!createguild ...and the name...". When you create go for the Guild-Chat, and talk "!commands" that will go talk the commands for guild.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Bye ' .. creatureGetName(cid) .. ', Come back.') focus = 0 talk_start = 0 elseif msg ~= "" then selfSay('What?') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end
  21. Dá algum erro no distro?
  22. Vá em \data\npc e crie um arquivo com o nome Guild Master.xml e cole isso dentro <?xml version="1.0"?> <npc name="Guild Master" script="data/npc/scripts/guild.lua" access="3" lookdir="1"> <health now="1" max="1"/> <look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/> </npc> feito isso, vá em \data\npc\scripts e crie outro arquivo com o nome guild.lua e coloque o codigo abaixo dentro local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end 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 onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. getCreatureName(cid) .. '! If you want make a guild, talk info.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'info') then selfSay('You can create a guild talking "!createguild ...and the name...". When you create go for the Guild-Chat, and talk "!commands" that will go talk the commands for guild.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Bye ' .. creatureGetName(cid) .. ', Come back.') focus = 0 talk_start = 0 elseif msg ~= "" then selfSay('What?') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end Depois é só ir no RME > File > IMPORT> MOnster/NPC e escolher o NPC que você acabou de criar e colocar ele no mapa Se der algum erro poste aqui
  23. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Ok, vou tentar achar a solução para esse problema \o/ #EDIT Và no seu mapa pelo RME e coloque actionID nos locais onde os times pegam as bandeiras(o mesmo local onde aparece o nome FLAG's" AZUL = 6001 VERMELHO = 6000 feito isso teste novamente, você deve ter esquecido de colocar as actions, pois o script não consegue localizar o action em questão então só executa a mensagem "Flags"... Se mesmo assim não for, responda que irei olhar novamente \o/
  24. Aqui é só você fazer as modificações vá em \data\npc e crie o npc barco.xml e coloque isso dentro dele <?xml version="1.0" encoding="UTF-8"?> <npc name="NOME DO NPC" script="default.lua" walkinterval="2000" floorchange="0"> <health now="185" max="185"/> <look type="128" addons="0" head="0" body="0" legs="0" feet="0" corpse="2317"/> <parameters> <parameter key="module_travel" value="1"/> <parameter key="message_greet" value="Bem vindo"/> <parameter key="message_farewall" value="Adeus..."/> <parameter key="message_walkaway" value="How rude!"/> <parameter key="travel_destinations" value="CIDADE X,100,100,7,175;CIDADE Y,123,123,123,175;"/> </parameters> </npc> feito é só ir no RME > File > Import >Monster/NPC e selecionar o NPC que você criou e colocar em algum lugar de sua preferência. OBS: Em CIDADE X/Y você coloca o nome da cidade, em AZUL você coloca o preço para ir para CIDADE e em vermelho é a posição da cidade, é só ir no RME e clica em algum e vê a posição ou pelo jogo mesmo com um ADM use o comando !pos
  25. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Está dando algum erro no distro? pois se for problema no script deve apontar algum erro ou deve ser algo com sua configuração/distro. Qual distro você está usando/versão?

Informação Importante

Confirmação de Termo