Ir para conteúdo

Wakon

Héroi
  • Registro em

  • Última visita

Tudo que Wakon postou

  1. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Clients" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  2. Veja se você copiou corretamente o script, acabei de testar aqui e está normal.
  3. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "Diversos → Gráficos → Suporte Gráficos"
  4. Wakon postou uma resposta no tópico em Websites
    Tópico aprovado e movido a área correta, obrigado por compartilhar.
  5. Wakon postou uma resposta no tópico em OTServer Derivados
    Assim não da para aprovar. https://www.virustotal.com/pt/file/8144c659a621378c7ff04d987c9dab151384b138fb4f1e86a42f2a8980f34af0/analysis/1431788670/
  6. Tópico aprovado e movido a área correta, obrigado por compartilhar.
  7. Interessante, tópico aprovado e movido a área correta, obrigado por compartilhar.
  8. Em "Data/actions/scripts" crie nome_do_arquivo.lua e cole: local t = { money = 2000000 } function onUse(cid, item) if (getCreatureSkullType(cid) == SKULL_BLACK) or (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveMoney(cid, t.money) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Sua skull foi retirada.") doRemoveItem(item.uid) else doPlayerSendTextMessage(cid, 22, "Você precisa de "..t.money.." gold coins para retirar sua skull.") end elseif (getCreatureSkullType(cid) == SKULL_NONE) then doPlayerSendTextMessage(cid, 22, "Você não tem nenhuma skull.") end return true end Em "Data/actions" abra o actions.xml e adicione a TAG: <action itemid="id_do_item" event="script" value="nome_do_arquivo.lua"/> Para deixar infinito, basta criar outro da mesma maneira e retirar essa linha apenas: doRemoveItem(item.uid) Não testei o script, se der algum erro, avise.
  9. Tópico aprovado e movido a área correta, obrigado por compartilhar.
  10. Tenta adicionar isso: function addItemInFreeBag(container, item, num) if not isContainer(container) or not item then return false end if not num or num <= 0 then num = 1 end if getContainerSize(container) < getContainerCap(container) then return doAddContainerItem(container, item, num) else for slot = 0, (getContainerSize(container)-1) do local container2 = getContainerItem(container, slot) if isContainer(container2.uid) and getContainerSize(container2.uid) < getContainerCap(container2.uid) then return doAddContainerItem(container2.uid, item, num) end end end return false end Em "Data/lib" no arquivo some functions.lua.
  11. Tools > Add Item, irá aparecer em Other.
  12. Script em "Data/npc/scripts": XML: <?xml version="1.0" encoding="UTF-8"?> <npc name="Npc_name" script="nome_do_script.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="9" head="20" body="30" legs="40" feet="50" corpse="6080"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|, bem-vindo a minha casa. Em que posso ajudar?"/> <parameter key="message_farewell" value="Good bye."/> </parameters> </npc> Se tiver algum erro ou faltar algo, me avise .
  13. Também não entendi o "coins_uid =", acho que não muda em nada tirar ele.
  14. Testa ai: local t = { storage = 5722, money = 50000 } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, t.storage) < 1 then if doPlayerRemoveMoney(cid, t.money) == true then doPlayerSendTextMessage(cid,22,"Voce agora é um Baiakzik Vip. System Vip By {ADM}~Th3uz1k~.") doSendMagicEffect(topos,12) coins_uid = doPlayerAddItem(cid,2160,100) coins_uid = doPlayerAddItem(cid,9693,1) setPlayerStorageValue(cid,t.storage,1) else doPlayerSendTextMessage(cid, 22, "Você não tem o dinheiro necessário.") end else doPlayerSendTextMessage(cid, 22, "Você já é Baiakzik VIP.") end return true end TAG: <action actionid="action_id" event="script" value="nome_do_arquivo.lua"/>
  15. Você é uma criança né? Peça suporte ao invés de xingar, irei te negativar.
  16. Não entendi muito bem o que você quer, fiz um pra você testar: function onStepIn(cid, item, fromPos, toPos) if not isPlayer(cid) then return true end if #getCreatureSummons(cid) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você deve guardar seu pokémon para passar.") doTeleportThing(cid, fromPos) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo.") end return true end TAG: <movevent type="StepIn" actionid="action_id" event="script" value="nome_do_arquivo.lua"/>
  17. Amigo, espere 24 horas para dar outro UP, leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
  18. zTHOR.Major, você reviveu um tópico antigo sem motivo algum, preste mais atenção. Leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Se precisar de suporte, crie um tópico na seção de suportes: http://www.tibiaking.com/forum/forum/112-suporte-otserv/ Se estiver a procura de um membro para sua equipe: http://www.tibiaking.com/forum/forum/273-formação-de-equipes/
  19. Amigo, evite dar vários up no mesmo dia, leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Como eu já disse, não sei como te ajudar com esse erro, desculpe.
  20. Amigo, o link do OTC está igual ao do servidor.
  21. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  22. Sobre tirar o canal de NPCs, vá em "Data/XML" abra o channels.xml e procure pelo canal de NPCs. Terá a vocation ID no canal tipo: <vocation id="3"/> Coloque ela na vocação do Pokémon Trainer, provavelmente 1. Caso seu servidor tenha nova vocação, tipo "Trainer Elite", você pode adicionar uma linha abaixo para definir ela também. Exemplo: <vocation id="1"/> <vocation id="2"/>
  23. Testei em uma base PDA e está funcionando, caso apresente algum erro me fale: 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 local pb = getPlayerSlotItem(cid, 8).uid if msgcontains(msg, 'mega charizard x') or msgcontains(msg, 'mega') then if getPlayerLevel(cid) >= 100 then selfSay("Você deseja equipar uma Mega stone em seu charizard? Me entregue seu Charizard e uma Charizartite X.", cid) talkState[talkUser] = 1 else selfSay("Você parece fraco, treine mais e volte depois.", cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 1 then if pb > 0 then if #getCreatureSummons(cid) < 1 then if getItemAttribute(pb, "poke") == "Charizard" then if doPlayerRemoveItem(cid,11414,1) == true then selfSay("Aqui está seu pokémon! Aproveite!", cid) doItemSetAttribute(pb, "hp", 1) doItemSetAttribute(pb, "poke", "Stonex Charizard") doItemSetAttribute(pb, "description", "Contains a Charizard.") doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos["Charizard"]) local pokeinfo = getPokemonStatus("Charizard") local level = getItemAttribute(pb, "level") local offense = pokeinfo.off * level local defense = pokeinfo.def * level local agility = pokeinfo.agi * level local spatk = pokeinfo.spatk * level local vit = pokeinfo.vit * level local leveltable = getPokemonExperienceTable("Charizard") doItemSetAttribute(pb, "exp", leveltable[level]) doItemSetAttribute(pb, "nextlevelexp", leveltable[level+1] - leveltable[level]) doItemSetAttribute(pb, "offense", offense) doItemSetAttribute(pb, "defense", defense) doItemSetAttribute(pb, "speed", agility) doItemSetAttribute(pb, "vitality", vit) doItemSetAttribute(pb, "specialattack", spatk) doItemSetAttribute(pb, "fakedesc", "Contains a Charizard.") talkState[talkUser] = 0 else selfSay("Você não tem uma Charizartite X.", cid) talkState[talkUser] = 0 end else selfSay("Coloque seu charizard no slot principal.", cid) talkState[talkUser] = 0 end else selfSay("Guarde seu pokémon na pokébola.", cid) talkState[talkUser] = 0 end else selfSay("Coloque seu charizard no slot principal.", cid) talkState[talkUser] = 0 end end elseif msgcontains(msg, "no") then if talkState[talkUser] == 1 then selfSay("Ok...", cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  24. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Provavelmente acontece pois você está utilizando um char GOD, teste com um char normal.
  25. Está no script '-'. <globalevent name="SummonDay" time="07:43:00" script="summon_day.lua" />

Informação Importante

Confirmação de Termo