Advertisement
a3f

[XB/OT] Change gold stacks to p coins

a3f
Sep 11th, 2012
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. -- edit: doesn't work :/
  2. local backpack = "jewelled backpack"
  3. local goldnuggets = true
  4.  
  5.  
  6. bp = Container.GetByName(backpack)
  7. while true do
  8. for slot = 0, bp:ItemCount() do
  9.             local item = bp:GetItemData(slot)
  10.                 if ((item.id == 3031 or item.id == 3035 or (item.id == 3043 and goldnuggets)) and item.count == 100) then
  11.                     bp:UseItem(slot)
  12.                     wait(200, 500)
  13.                 end
  14. end
  15. sleep(1000,2000)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement