Log in

View Full Version : When x GMP buy



bartskit
01-29-2016, 11:13 PM
Hello i need script for buing when i have 50gmp, bot is bouing to 350gmp if you know what i mean i will be happy :D

Oscagi
01-30-2016, 01:55 AM
Hello i need script for buing when i have 50gmp, bot is bouing to 350gmp if you know what i mean i will be happy :D


ManaMin = 50
ManaMax = 350
ManaPot = "Great Mana Potion"

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckPotions") then
if Self.ItemCount(Item.GetID(ManaPot)) < ManaMin then
gotoLabel("Buy")
else
gotoLabel("KeepMlvl")
end

elseif(labelName == "Buy") then
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopSellFlasks()
wait(900, 1200)
Self.ShopBuyItemsUpTo(Item.GetID(ManaPot), ManaMax)
end
end