(Junior Member)

Registration Date: 08-15-2020
Date of Birth: Not Specified
Local Time: 12-04-2021 at 12:38 PM
Status: Offline

MugetsuTensho's Forum Info
Joined: 08-15-2020
Last Visit: 12-22-2020, 05:08 AM
Total Posts: 11 (0.02 posts per day | 0.54 percent of total posts)
(Find All Posts)
Total Threads: 3 (0.01 threads per day | 0.36 percent of total threads)
(Find All Threads)
Time Spent Online: 10 Hours, 2 Minutes, 10 Seconds
Members Referred: 0
Total Likes Received: 7 (0.01 per day | 1.48 percent of total 472)
(Find All Threads Liked ForFind All Posts Liked For)
Total Likes Given: 5 (0.01 per day | 1.08 percent of total 463)
(Find All Liked ThreadsFind All Liked Posts)
Reputation: 8 [Details]
MugetsuTensho's Most Liked Post
Post Subject Numbers of Likes
Mining 3
Thread Subject Forum Name
Mining Scripts
Post Message
Made a simple script to mine.

EDIT 8/29/20: Updated to make it more robust and useful

EDIT 09/04/20: Updated to include table instead of multiple variables

local mineableIds = {14949, 14955, 14961}
local pickId = 16251
local useDistance = 5
local moveDist = 50 --How far you're willing to walk

macro(1010, "Mine",  function()
    for i, tile in ipairs(g_map.getTiles(posz())) do
        for j, item in ipairs(tile:getItems()) do
            if (item) then
                itemID = item:getId()
                minable = table.contains(mineableIds, item:getId())
                if(minable) then
                    local distance = getDistanceBetween(pos(), tile:getPosition())
                    if (distance <= useDistance) then
                    if (distance <= moveDist and distance > useDistance) then
                        if autoWalk(tile:getPosition(), moveDist, {ignoreNonPathable=true, precision=1}) then