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...
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