SHARE
TWEET

mensnela

a guest Apr 25th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top