Postado Março 22, 2016 9 anos Boa tarde. Estou usando algum destes scripts prontos e queria adicionar waypoints para comprar mana potions/blank rune e então gastar toda a minha soul para fazer runas depois de ter voltado da hunt. Consegui criar waypoints e também fazer a lua para comprar mana potion e blank runes. Alguém aí saberia como poderia fazer para fazer o bot parar no label "FazerRuna", gastar toda seu soulpoint (ou todas as blank runes) e então ativar o walker novamente para continuar o script? Aliás, tenho um .lua para fazer runas que verifica sua soul point, mana e blank runes. Não sei se tem como adicionar isso... Mostrar conteúdo oculto --[[ CONFIG ]]-- local runeInfo = { ["name"] = "Energy Bomb", ["words"] = "adevo mas vis", ["mana"] = 1200, ["soul"] = 5 } Module.New('runemaker', function(module) if Self.ItemCount(3147) > 0 and Self.Soul() > runeInfo.soul then if (Self.Mana() > runeInfo.mana) then Self.Say(runeInfo.words) module:Delay(10*400) end end module:Delay(10*400) end) O .xbst está assim (começando pelo dp+1 de Port Hope): <item text="Stand (32632, 32739, 6)" tag="1"/> <item text="Withdraw Gold(40,000)" tag="249"/> <item text="Node (32627, 32742, 6)" tag="0"/> <item text="Ladder (32626, 32742, 6)" tag="2"/> <item text="Stand (32622, 32742, 5)" tag="1"/> <item text="ComprarPot:" tag="255"/> <item text="ComprarRuna:" tag="255"/> <item text="Stand (32626, 32742, 5)" tag="1"/> <item text="Stand (32625, 32749, 6)" tag="1"/> <item text="FazerRuna" tag="255"/> O .lua que contém os labels de comprar pot e runa: registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel") function onWalkerSelectLabel(labelName) if (labelName == "ComprarPot") then Walker.Stop() wait(800,1300) Self.SayToNpc("hi") wait(1400,1600) Self.SayToNpc("Vial") wait(1400,1600) Self.SayToNpc("yes") wait(1400,2200) Self.SayToNpc("trade") wait(2000,2800) Self.ShopBuyItemsUpTo('great mana potion', 200) wait(1600,2200) Walker.Start() elseif (labelName == "ComprarRuna") then Walker.Stop() wait(800,1300) Self.SayToNpc("hi") wait(1400,1600) Self.SayToNpc("trade") wait(2000,2800) Self.ShopBuyItemsUpTo('Blank Rune', 80) wait(1600,2200) Walker.Start() end end
Postado Março 22, 2016 9 anos Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Bruno Carvalho / Ex-Administrador TibiaKing b.camara@live.com Em 26/12/2016 em 05:47, Spraypaint disse: A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une. -miltinho
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.