Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local BuyMana = 400
  2.  
  3. local ManaID = Item.GetID(ManaName)
  4.  
  5. local ManaName = "great mana potion"
  6.  
  7.  
  8.  
  9. if (Self.ItemCount(ManaID) < BuyMana) then
  10.  
  11. Self.SayToNpc({"hi", "flasks"}, 100)
  12.  
  13. while (Self.ItemCount(FlaskID) >= 1) or (Self.ItemCount(FlaskIDA) >= 1) or (Self.ItemCount(FlaskIDB) >= 1) do
  14.  
  15. Self.SayToNpc("yes", 100)
  16.  
  17. end
  18.  
  19. wait(2000)
  20.  
  21. Self.SayToNpc("trade", 100)
  22.  
  23. wait(2000)
  24.  
  25. while (Self.ItemCount(ManaID) < BuyMana) do
  26.  
  27. Self.ShopBuyItemsUpTo(ManaID, BuyMana)
  28.  
  29. wait(500,800)
  30.  
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement