Advertisement
MrTrala

PV - Miner

Feb 10th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. --[[
  2.     Miner for ArchLightOnline
  3.     Version 1.0 - PRIV VERSION (Ownership; Cornelius)
  4.     Created by Mr Trala
  5.    
  6. Instructions;
  7. Don't use "stand" waypoints, that would make it slower (it will still work tho) use "nodes"
  8. It will start "mining" if you don't have anything targeting (so be sure to keep hold target off).
  9. You should use an script to kill invisible monster too.
  10. Should use a gold coin changer or gold coin droper.
  11. Have fun!
  12.  
  13. Credits to;
  14. Cornelius -- Idea
  15. Mr Trala -- Programmer
  16. ]]
  17.  
  18. config = {
  19.     RockID = {8503},  -- Items ID's to be "picked" - Can be various IDS ex; {8503, 1111, 2222, 3333, 5555}
  20.     PickID = 3456 --ID of your pick.
  21. }
  22.  
  23. Module.New('Miner', function(module)
  24.     if (Self.TargetID() <= 0) then
  25.         for y = -6, 6 do
  26.             for x = -6, 6 do
  27.                 if table.contains(config.RockID, Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
  28.                     Walker.Stop()            
  29.                     Self.UseItemWithGround(config.PickID, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
  30.                     wait(900, 1200)
  31.                     Walker.Start()
  32.                     module:Delay(math.random(50,60))
  33.                 end
  34.             end
  35.         end
  36.     end
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement