Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BuyMana = 400
- local ManaID = Item.GetID(ManaName)
- local ManaName = "great mana potion"
- if (Self.ItemCount(ManaID) < BuyMana) then
- Self.SayToNpc({"hi", "flasks"}, 100)
- while (Self.ItemCount(FlaskID) >= 1) or (Self.ItemCount(FlaskIDA) >= 1) or (Self.ItemCount(FlaskIDB) >= 1) do
- Self.SayToNpc("yes", 100)
- end
- wait(2000)
- Self.SayToNpc("trade", 100)
- wait(2000)
- while (Self.ItemCount(ManaID) < BuyMana) do
- Self.ShopBuyItemsUpTo(ManaID, BuyMana)
- wait(500,800)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement