Ir para conteúdo

Wakon

Héroi
  • Registro em

  • Última visita

Tudo que Wakon postou

  1. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de Scripts
  2. Wakon postou uma resposta no tópico em Suporte Bots
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Suporte OTServ > OTServ > Suporte de Scripts Para: Bots para Tibia > Suporte Bots
  3. Vá em "Data/talkactions/scripts", abra o script addondoll.lua e troque por esse: Ai é só alterar o ID do addon doll na variável "addonDoll=". Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Geral Para: Suporte OTServ > OTServ > Suporte de Scripts
  4. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  5. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Vá em "Data/movements/scripts", copie e cole um arquivo.lua, renomeie para nomedoscript.lua, apague tudo e cole: local t = { pos = {x = 160, y = 54, z = 7}, level = 300 } function onStepIn(cid, item, position, fromPosition) if getPlayerLevel(cid) < t.level then doPlayerSendCancel(cid, 'Apenas jogadores level '.. t.level ..' podem passar aqui.') doTeleportThing(cid, fromPosition) else doTeleportThing(cid, t.pos) end return true end Depois volte na pasta "Data/movements", abra o arquivo movements.xml e adicione a TAG: <movevent type="StepIn" actionid="XXXX" event="script" value="nomedoscript.lua"/> Em pos você coloca a posição que será teleportado caso seja level 300 ou mais e na tag em actionid="XXXX" você coloca a actionID desejada, depois é só colocar ela no teleport. Lembrando que você deve deixar o teleporte sem nenhuma posição lá no map editor, pois o script já faz a parte de teleportar.
  6. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  7. Wakon postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Pra quem não entendeu a parte do goback.lua: Vá até o final do script, lá vocês encontrarão doPlayerSendCancel(cid, "This pokemon is fainted.") e logo acima um "else", ai é só colar o código acima do "else". local pk = getCreatureSummons(cid)[1] local pb = getPlayerSlotItem(cid, 8).uid local look = getItemAttribute(pb,"addon") if not look then doSetItemAttribute(pb,"addon",0) return false end if look > 0 then doSetCreatureOutfit(pk, {lookType = look}, -1) return true end
  8. Troque o XML por esse: <?xml version="1.0" encoding="UTF-8"?> <npc name="NOMEDONPC" script="travelNew.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="17" body="54" legs="114" feet="0" addons="2"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|! Deseja ir para o continente {hoenn} ou voltar para {saffron}?"/> </parameters> </npc>
  9. Não entendi muito bem seu pedido, creio que seja isso: function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local creature = getCreatureByName(param) local player = getPlayerByNameWildcard(param) local waypoint = getWaypointPosition(param) local tile = string.explode(param, ",") local pos = {x = 0, y = 0, z = 0} if getPlayerAccess(cid) < 5 and getCreatureCondition(player, CONDITION_INFIGHT) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't teleport to a player with battle status.") and doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end if(player ~= nil and (not isPlayerGhost(player) or getPlayerGhostAccess(player) <= getPlayerGhostAccess(cid))) then pos = getCreaturePosition(player) elseif(creature ~= nil and (not isPlayer(creature) or (not isPlayerGhost(creature) or getPlayerGhostAccess(creature) <= getPlayerGhostAccess(cid)))) then pos = getCreaturePosition(creature) elseif(type(waypoint) == 'table' and waypoint.x ~= 0 and waypoint.y ~= 0) then pos = waypoint elseif(tile[2] and tile[3]) then pos = {x = tile[1], y = tile[2], z = tile[3]} else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end if(not pos or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.") return true end pos = getClosestFreeTile(cid, pos, true, false) if(not pos or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.") return true end local tmp = getCreaturePosition(cid) if(doTeleportThing(cid, pos, true) and not isPlayerGhost(cid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end return true end Troque pelo seu teleportto.lua, localizado na pasta "Data/talkactions/scripts".
  10. @KotZletY tem sim, vá em "Data/talkactions/scripts", copie e cole um arquivo.lua e renomeie para cmdText.lua, apague tudo e cole: local txt = [[ Comandos dos players. !online !uptime !infoplayer !pos e por ae vai! haushas ]] function onSay(cid, words, param) doPlayerPopupFYI(cid, txt) return true end Agora em "Data/talkactions", abra o arquivo talkactions.xml e adicione a tag: <talkaction words="!cmdplayer" event="script" value="cmdText.lua"/>
  11. Em "Data/npc/scripts", copie e cole um arquivo.lua e renomeie para travelNew.lua, apague tudo e cole: local t = { travelGo = {pos = {x = 160, y = 54, z = 7}, key = "hoenn"}, -- Aqui você coloca a posição de hoenn. travelBack = {pos = {x = 162, y = 54, z = 7}, key = "saffron"} -- E aqui você coloca a posição do npc e a mensagem que irá pedir para voltar. } 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) if(not npcHandler:isFocused(cid)) then return false end local msg = msg:lower(); local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, t.travelGo.key) then selfSay('Deseja mesmo ir para '.. t.travelGo.key ..'?', cid) talkState[talkUser] = 1 elseif msgcontains(msg, t.travelBack.key) then selfSay('Deseja mesmo voltar para '.. t.travelBack.key ..'?', cid) talkState[talkUser] = 2 elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 1 then doTeleportThing(cid, t.travelGo.pos) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) elseif talkState[talkUser] == 2 then doTeleportThing(cid, t.travelBack.pos) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Agora em "Data/npc", copie e cole um arquivo.xml e renomeie para nomedonpc.xml, apague tudo e cole: <?xml version="1.0" encoding="UTF-8"?> <npc name="NOMEDONPC" script="travelNew.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="17" body="54" legs="114" feet="0" addons="2"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|! Deseja ir para o continente {hoenn} ou voltar para {saffron}?"/> </parameters> </npc> Ai você configura como preferir, deixei explicações no script para você saber o que mudar.
  12. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Outros Tutoriais Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  13. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Suporte OTServ > OTServ > Suporte de Clients Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  14. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Downloads OTServ > OTServ > OTServs 9.x -10.x Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  15. @geraldoo.maranhao, mesmo seu servidor sendo sobre o assunto do tópico, aqui não é o lugar correto para anunciar ele, temos seções para isso: http://www.tibiaking.com/forum/forum/272-projetos-de-otserv/ http://www.tibiaking.com/forum/forum/153-anuncie-seu-servidor/
  16. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    @Jack Rush, é proibido oferecer suporte fora do fórum, leia as regras.
  17. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Monsters e NPCs Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  18. @lenardo88, aprecio sua intenção em ajudar mas evite reviver tópicos antigos, esse tópico é de janeiro de 2014.
  19. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Geral Para: Suporte OTServ > OTServ > Suporte de Scripts
  20. Tópico aprovado, obrigado por compartilhar. Você recebeu um REP pela contribuição.
  21. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Spriting OTServ > OTServ > Downloads de Sprites Para: Suporte OTServ > OTServ > Suporte de Spriting
  22. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts
  23. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Downloads OTServ > OTServ > OTServs 9.x -10.x Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  24. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Clients OTServ > OTServ > MODs de Clients Para: Suporte OTServ > OTServ > Suporte de Clients
  25. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Spriting

Informação Importante

Confirmação de Termo