PDA

View Full Version : Buying Potions Lua



sebaloko
05-20-2016, 08:48 PM
i dont know why my bot dont buy the pots :/ any help will be great :D



if (labelName == "POTSSI") then
Walker.Stop()
wait(200,800)
Self.SayToNpc({"hi", "Vial", "yes"},80)
wait(800,1800)
Self.SayToNpc("trade", 70)
Self.ShopBuyItemsUpTo(266, 5)
wait(1740)
Walker.Start()
end

yompa93
05-21-2016, 07:37 AM
function buyPots()
Walker.Stop()
Self.SayToNpc({"hi", "trade"}, 35)
wait(300+Self.Ping())
Self.ShopSellFlasks()
wait(300+Self.Ping())
Self.ShopBuyItemsUpTo(266, 5)
Walker.Start()
end

registerEventListener(WALKER_SELECTLABEL, "onLabel")
function onLabel(label)
if (label == 'MagicShop') then
buyPots()
end
end