Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Miner for ArchLightOnline
- Version 1.0 - PRIV VERSION (Ownership; Cornelius)
- Created by Mr Trala
- Instructions;
- Don't use "stand" waypoints, that would make it slower (it will still work tho) use "nodes"
- It will start "mining" if you don't have anything targeting (so be sure to keep hold target off).
- You should use an script to kill invisible monster too.
- Should use a gold coin changer or gold coin droper.
- Have fun!
- Credits to;
- Cornelius -- Idea
- Mr Trala -- Programmer
- ]]
- config = {
- RockID = {8503}, -- Items ID's to be "picked" - Can be various IDS ex; {8503, 1111, 2222, 3333, 5555}
- PickID = 3456, --ID of your pick.
- leaderName = {"Mr Trala"} -- Name of the leaders.
- }
- LocalSpeechProxy.OnReceive("CommandCenter", function(proxy, mtype, speaker, level, text)
- if text == "/start Mine" and (table.find(config.leaderName, speaker)) then
- Module.Start('Miner')
- print('The module with the name "Miner" has been started.')
- elseif text == "/stop Mine" and (table.find(config.leaderName, speaker)) then
- Module.Stop('Miner')
- print('The module with the name "Miner" has been stopped.')
- end
- end)
- Module.New('Miner', function(module)
- local pos = Self.Position()
- if (Self.TargetID() <= 0) then
- for y = -6, 6 do
- for x = -6, 6 do
- if table.contains(config.RockID, Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id) then
- Walker.Stop()
- Self.UseItemWithGround(config.PickID, pos.x + x, pos.y + y, pos.z)
- wait(900, 1200)
- module:Delay(math.random(50,60))
- end
- end
- end
- end
- end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement