Advertisement
MrTrala

PV - PickUP Items.

Feb 10th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --[[
  2.     Free Itams for ArchLightOnline
  3.     Version 1.0 - Piv Version
  4.     Created by Mr Trala
  5. ]]
  6.  
  7.  
  8. local itemID = {16129, 3725, 3232, 3043, 8176}   -- ItemIDs to be picked up
  9. local containerName = "pannier backpack"  -- Ex. "Purple Backpack", "Backpack of holding", "Bag" etc. Should have various of the same bp.
  10.    
  11. Module.New('lootFromGround', function(module)
  12.     if (Self.TargetID() <= 0) then
  13.         for y = -1, 1 do
  14.             for x = -1, 1 do
  15.                 if table.contains(itemID, Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
  16.                     wait(200,500)
  17.                     Map.PickupItem(Self.Position().x+x, Self.Position().y+y, Self.Position().z, Container.GetByName(containerName):Index(), 0)  
  18.                     module:Delay(math.random(50,60))
  19.                 end
  20.             end
  21.         end
  22.     end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement