Advertisement
Guest User

mensnela

a guest
Apr 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local itemID = {9586} -- ItemID to be picked up
  2.  
  3. Module.New('lootFromGround', function(module)
  4. if (Self.TargetID() <= 0) then
  5. for y = -5, 5 do
  6. for x = -7, 7 do
  7. if table.contains(itemID, Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
  8. Cavebot.Stop()
  9. Self.UseItemFromGround(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
  10. wait(1000)
  11. Cavebot.Start()
  12. module:Delay(math.random(1000))
  13. end
  14. end
  15. end
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement