MMOMinion
Help with creating a simple Lua gathering profile - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90)
+---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104)
+---- Thread: Help with creating a simple Lua gathering profile (/showthread.php?tid=15142)



Help with creating a simple Lua gathering profile - Tokuzaki - 12-25-2015

Looking to gather Cedar Logs for use in other crafting, but for some reason the bot seems to sit idle after gathering from a few trees
Code:
local obj1 = {
    ["setup"] = {
        ["gearsetbotany"] = 1;
    };
    ["tasks"] = {
        [1] = {
            ["type"] = "botany";
            ["whitelist"] = "3";
            ["radius"] = 250;
            ["minlevel"] = 49;
            ["maxlevel"] = 52;
            ["item1"] = "Cedar Log";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 390.66879272461;
                ["y"] = 184.66413879395;
                ["z"] = 531.87432861328;
            };            
            ["usestealth"] = true;
        };
    
        [2] = {
            ["type"] = "botany";
            ["whitelist"] = "3";
            ["radius"] = 250;
            ["minlevel"] = 49;
            ["maxlevel"] = 52;
            ["item1"] = "Cedar Log";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 447.90;
                ["y"] = 166.18;
                ["z"] = 366.88;
        };
        ["usestealth"] = true;
}
return obj1

Very new to using LUA and code in general so I think I must be missing something? Used two sets of different positions as I thought it was the radius that wasn't picking up the nodes that were further out.

This is in CWH, any help or any more information needed will be appreciated.[/code]

Edit: Nevermind, realised I was missing quite a few area of nodes and as such it wasn't resetting nodes I already had listed and therefore idling until they reset via timer.
Can close this thread, thanks