Ir para conteúdo

Skydrowz

Membro
  • Registro em

  • Última visita

Tudo que Skydrowz postou

  1. Não... Primeiro você compra o domínio para o seu site, depois direciona sua VPS ao mesmo. Geralmente o direcionamento é feito pela própria empresa responsável pela sua VPS. Crie um ticket de suporte no site que hosteia sua VPS e peça para que redirecionem sua VPS ao seu domínio. Eles vão pedir sua conta e senha(pode confiar, eu mesmo já fiz) da GoDaddy para poder configurar alguns dados e pronto, sua VPS vai ser redirecionada.
  2. Você pode optar por apenas direcionar sua VPS a um domínio grátis disponibilizado pelo no-ip, como servegame.com ou ddns.net. Caso você queria um domínio .com ou .com.br, terá que pagar. Existem várias propagandas por aí de sites que oferecem domínios, a GoDaddy é a que uso.
  3. Hey! If you want to join our private repository, you need to contribute sending commits, bug reports and another things in our public repository. You can acess our public repository by this link: https://gitlab.com/malucooo/otxserver-test The reason for this: people who were not doing anything to help, were just enjoying our content.
  4. Você pode fazer isso por lua também, basta adicionar um addGreetKeyword ou setMessage(MESSAGE_GREET, text) Vou te mandar os dois exemplos. -- Greeting keywordHandler:addGreetKeyword({'hi'}, {npcHandler = npcHandler, text = 'Hello, |PLAYERNAME|! You are looking really bad. Let me heal your wounds. It\'s my job after all.'}, ) Essa é por keyword local function greetCallback(cid) local player = Player(cid) if player:getVocation():getId() == 1 then npcHandler:setMessage(MESSAGE_GREET, "Well, well, a new sorcerer! Want me to bring you somewhere nice?") elseif player:getVocation():getId() == 2 then npcHandler:setMessage(MESSAGE_GREET, "Well, well, a new druid! Want me to bring you somewhere nice?") elseif player:getVocation():getId() == 3 then npcHandler:setMessage(MESSAGE_GREET, "Well, well, a new paladin! Want me to bring you somewhere nice?") elseif player:getVocation():getId() == 4 then npcHandler:setMessage(MESSAGE_GREET, "Well, well, a new knight! Want me to bring you somewhere nice?") end npcHandler:addFocus(cid) return true end Essa é por setMessage(nessa aqui é mais fácil de adicionar condições, como no exemplo de vocações mesmo)
  5. Por que você não usa o |PLAYERNAME|?
  6. O nome da creature é "nome"?
  7. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local nome = "nome" if nome == getCreatureName(cid) then if (msgcontains(msg, "blz") or msgcontains(msg, "blzz")) and (talkState[talkUser]) == 1 then -- Você vai precisar dos () para separar o 'or' do 'and', caso contrário sua condição ia bugar. selfSay("Olá, como está ".. nome ..", faz tempo que não aparece por aqui... Em que posso lhe ajudar?",cid) talkState[talkUser] = 1 -- Altere aqui, pois a talkState já está 1, de acordo com sua condição. end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  8. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, 3, -2, 4) function onCastSpell(cid, var) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+3, z=getThingPosition(getCreatureTarget(cid)).z} local parameters = { cid = cid, var = var, combat1 = combat1 } addEvent(doSendMagicEffect, 850, position2, 107) addEvent(doSendMagicEffect, 25, position1, 106) return doCombat(cid, combat, var) end Você já está atrasando as animações?
  9. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.35, 0, -0.45, 0) addCombatCondition(combat, condition) arr = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0} } local area = createCombatArea(arr) setCombatArea(combat, area) addCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Tá na mão. Se der rep, humilde.
  10. Pesquise por "login01.tibia.com", lá você vai encontrar os IPs que terão que ser alterados.
  11. Posta suas configurações aqui.
  12. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)  local talkState = {} local quest = 76670 <!-- Alterei aqui para 76670, que seria a OUTRA storage de task --> local reward = 70000 <!-- Aqui você altera a reward --> 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 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, "ajudar") then npcHandler:say("Agradeco, por se empenhar em ajudar a vila, tenha cuidado {ok} ?", cid) talkState[talkUser] = 2 elseif msgcontains(msg, "ok") and talkState[talkUser] == 2 then npcHandler:say("Tenha cuidado nao se esforce muito!", cid) setPlayerStorageValue(cid, quest, 2) <!-- Aqui ele vai usar a storage que mudei lá em cima (76670) --> talkState[talkUser] = 0 elseif msgcontains(msg, "favor") then local str = getPlayerStorageValue(cid, quest) if(str < 2) then npcHandler:say("msg.", cid) talkState[talkUser] = 1 return true elseif(str == 2) then npcHandler:say("msg!", cid) elseif(str == 3) then npcHandler:say("msg.", cid) doPlayerAddItem(cid, 2148, 75) doPlayerAddExp(cid, 1300) doPlayerSendTextMessage(cid, 22, 'exp.') setPlayerStorageValue(cid, quest, 4) elseif(str == 4) then npcHandler:say("msg.", cid) end talkState[talkUser] = 0 end return TRUE end  npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Tenta assim.
  13. Você se importaria de ter que criar outra tag no xml e outro script para contar a task? Seria mais fácil para você. Se sim, adicione: Creaturescripts.xml: <event type="kill" name="taskCount2" script="taskCount2.lua"/> No NPC: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local quest = 76670 <!-- Alterei aqui para 76670, que seria a OUTRA storage de task --> local reward = 70000 <!-- Aqui você altera a reward --> 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 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, "ajudar") and talkState[talkUser] == 1 then npcHandler:say("Agradeco, por se empenhar em ajudar a vila, tenha cuidado {ok} ?", cid) talkState[talkUser] = 2 elseif msgcontains(msg, "ok") and talkState[talkUser] == 2 then npcHandler:say("Tenha cuidado nao se esforce muito!", cid) setPlayerStorageValue(cid, quest, 2) <!-- Aqui ele vai usar a storage que mudei lá em cima (76670) --> talkState[talkUser] = 0 elseif msgcontains(msg, "favor") then local str = getPlayerStorageValue(cid, quest) if(str < 2) then npcHandler:say("msg.", cid) talkState[talkUser] = 1 return true elseif(str == 2) then npcHandler:say("msg!", cid) elseif(str == 3) then npcHandler:say("msg.", cid) doPlayerAddItem(cid, 2148, 75) doPlayerAddExp(cid, 1300) doPlayerSendTextMessage(cid, 22, 'exp.') setPlayerStorageValue(cid, quest, 4) elseif(str == 4) then npcHandler:say("msg.", cid) end talkState[talkUser] = 0 end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Em creaturescripts/scripts/taskCount2.lua local monsters = { --name = storage ["Monstro2"] = 55005, <!-- Acho que esse é o monstro que você quer --> } function onKill(cid, target) local monster = monsters[getCreatureName(target):lower()] if(isPlayer(target) == FALSE and monster and getPlayerStorageValue(cid, 76670) == 2) then <!-- Storage da segunda task --> if getPlayerStorageValue(cid, monster) < 50 then <!-- Aqui ele pega a storage de dentro da tabela monsters, então ele vai pegar a de ["Monstro2"], não precisa se preocupar. --> local killedMonsters = getPlayerStorageValue(cid, monster) if(killedMonsters == -1) then killedMonsters = 1 end setPlayerStorageValue(cid, monster, killedMonsters + 1) doPlayerSendTextMessage(cid,1, "Voce matou " .. killedMonsters .. " de 50 insetos.") else doPlayerSendTextMessage(cid,22, "Parabens voce matou insetos suficiente.") setPlayerStorageValue(cid, 76669, 3) -- idem a duvida de cima end end return TRUE end Em creaturescripts/scripts/login.lua (crie o login.lua dentro da pasta do taskCount) function onLogin(player) player:registerEvent("taskCount2") return true end
  14. Sou um dos developers da OTX e, recentemente, estavam comentando sobre um bug de stacks com containers. Verifica isso aí. xD
  15. UP Alguém poderia ao menos explicar a lógica do script que faz a imagem virar o gif? a:2:{s:5:"files";a:12:{i:0;s:31:"outfitsAnim1099/266/1_1_1_1.png";i:1;s:31:"outfitsAnim1099/266/1_1_1_2.png";i:2;s:31:"outfitsAnim1099/266/1_1_1_3.png";i:3;s:31:"outfitsAnim1099/266/1_1_1_4.png";i:4;s:31:"outfitsAnim1099/266/2_1_1_1.png";i:5;s:31:"outfitsAnim1099/266/2_1_1_2.png";i:6;s:31:"outfitsAnim1099/266/2_1_1_3.png";i:7;s:31:"outfitsAnim1099/266/2_1_1_4.png";i:8;s:31:"outfitsAnim1099/266/3_1_1_1.png";i:9;s:31:"outfitsAnim1099/266/3_1_1_2.png";i:10;s:31:"outfitsAnim1099/266/3_1_1_3.png";i:11;s:31:"outfitsAnim1099/266/3_1_1_4.png";}s:12:"framesNumber";i:3;} Nesse código o outfit fica com fundo branco, mesmo as imagens tendo sido feitas por mim
  16. Entendo de muitas outras áreas, menos esta. Alguém saberia como adicionar novos gifs animados ao OutfitAnimation? Exemplo: /outfits/animoutfit.php?id=128&addons=0&head=78&body=106&legs=58&feet=76&mount=0 Já tentei com as mounts(por serem menos imagens), acabei nomeando e recortando 32 imagens em vão. Pelo que entendi, tem algum script que roda as imagens na ordem de seus nomes, como 1_1_1_, 1_1_1_2 e assim por diante, mas como disse, não consigo fazer o site reproduzi-las.
  17. O brasileiro é ridículo a ponto de descobrir os bugs e, mesmo nem sabendo como resolvê-los, se recusar a contar para outras pessoas. O motivo disso? Usar isso contra você no futuro. Já vi gente vender fixes imbecis por 300 reais, onde o erro era só em dar use em X item em cima de Y item. Mas como os Admins iriam saber que o bug era tão simples se ninguém ia falar? xD Curti seu post.
  18. Olá, gostaria de ajuda para fazer com que meu NPC cheque se o personagem possuir o addon X, caso não possua, não poderá viajar. Seria assim: Greetings: Olá, com meu barco você pode {viajar} para Golduck e caçar caninos extremamente fortes! Mas para isso, você precisará {provar} que é capaz de sobreviver por lá. Caso o player possua o addon e use o comando {viajar}, ele é teleportado para a ilha. Caso o player não possua o addon e use o comando {viajar}, ele é respondido com a seguinte mensagem: "Você ainda não provou ser capaz de sobreviver naquele frio. Ainda deseja saber como {provar} isto?" Caso o player use o comando {provar}, ele é respondido com a seguinte mensagem(no greetings e na ocasião anterior): "Para sobreviver naquelas terras frias, você precisará de uma roupa especial. Meu amigo Joe pode te ajudar com isso." O addon é o Norseman e o tipo de viagem é a seguinte: local freyaKeyword = keywordHandler:addKeyword({'viajar'}, StdModule.travel, {npcHandler = npcHandler, premium = true, cost = 580, msg = "Boa caçada, irmão.", destination = Position(360, 1853, 7)}) 580gps e apenas para VIPs. Pesquisando consegui solucionar meu problema. Podem fechar o tópico.
  19. @Hokograma Já consegui. Era apenas colocar um setAtribute na hora de dar o item ao player. Mas obrigado mesmo assim!
  20. Estou fazendo uma missão na qual o player dá use em algo e ganha uma carta com algo escrito, porém não sei como fazer esta carta. Alguém poderia me ajudar? É basicamente uma carta normal, porém com ID único e um texto inserido.
  21. Coloquei o original e voltou a pegar, mas eu tenho que usar ele editado :/ Sempre que edito ele dá o bug.
  22. Bom, meu Captain Bluebear.xml começou a dar error depois que editei, como citado neste tópico. Então, eu queria um NPC com o nome de Captain Bluebear, que me transportasse para: Venore,32954,32022,6,0; Liberty Bay,32285,32891,6,0; Yalahar,32816,31272,6,0; Carlin,32387,31821,6,0; Ankrahmun,33092,32884,6,0; Darashia,33289,32481,6,0; Edron,33175,31764,6,0; Port Hope,32529,32784,6,0 Se possível, o NPC deveria falar assim: "Olá, |PLAYERNAME|. Se você não sabe para onde viajar, diga {travel}." E com isso: keywordHandler:addKeyword({'passage'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para Ab\'dendriel, Darashia, Venore, Ankrahmun, Port Hope, Thais, Liberty Bay, Carlin e Yalahar!'}) Se possível, poderiam fazer o xml e o script.lua? @Edit: Servidor 8.6.
  23. Tentei alterar o script do Captain Bluebear(NPC do barco) e agora está dando esse erro. Já tentei voltar para o que era antes, mas o erro continua! Erro mencionado: http://prntscr.com/85tbpj Meu script: <?xml version="1.0" encoding="UTF-8"?> <npc name="Captain Bluebear" script="captain_bluebear.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="129" head="19" body="69" legs="107" feet="50" addons="0"/> <parameters> <parameter key="module_travel" value="1"/> <parameter key="message_greet" value="Olá, |PLAYERNAME|. Se você não sabe para onde viajar, diga {travel}."/> <parameter key="travel_destinations" value="Venore,32954,32022,6,0;Liberty bay,32285,32891,6,0;Yalahar,32816,31272,6,0;Ab dendriel,32734,31668,6,0;Carlin,32387,31821,6,0;Ankrahmun,33092,32884,6,0;Darashia,33289,32481,6,0;Edron,33175,31764,6,0;Port Hope,32529,32784,6,0"/> </parameters> </npc> Alguém poderia me ajudar?
  24. Skydrowz postou uma resposta no tópico em Suporte Tibia OTServer
    Não sei usar, nem sei como baixar a versão 10.10 dele. E, né.

Informação Importante

Confirmação de Termo