karoljab
01-24-2016, 03:52 PM
I need lua to buy potions and sell the vials PLEAS
Oscagi
01-24-2016, 05:24 PM
ManaID = "Great Mana Potion"
ManaMax = 200
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "BuyPotions") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "Trade"}, 65)
wait(900, 1200)
Self.ShopBuyItemsUpTo(Item.GetID(ManaPot), ManaMax)
Self.SayToNpc({"bye"}, 65)
end
end
Jontor
01-24-2016, 05:26 PM
local potionToBuy = "great mana potion"
while true do
Self.ShopBuyItemsUpToCap(Item.GetID(potionToBuy), 100)
Self.ShopSellFlasks()
wait(200)
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.