Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function dropItem(id, count)
  2. local cont = Container.GetFirst()
  3. while (cont:isOpen()) do for spot = 0, cont:ItemCount() do local item = cont:GetItemData(spot)
  4. if (item.id == id) then cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z, count)
  5. return true
  6. end
  7. end
  8. cont = cont:GetNext()
  9. end
  10. return false
  11. end
  12. local last = 1
  13. local trash = {3031, 3492}
  14. while (true) do local thisone
  15. while (thisone == last) do thisone = math.random(1, #trash)
  16. end
  17. if (dropItem(trash[thisone], math.random(1, 2))) then wait(700, 1500)
  18. else wait(20)
  19. end
  20. last = thisone
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement