MMOMinion
issues with "condition" and "complete" when gathering - 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: Gather Profiles (https://www.mmominion.com/forumdisplay.php?fid=179)
+---- Thread: issues with "condition" and "complete" when gathering (/showthread.php?tid=20958)



issues with "condition" and "complete" when gathering - etherbind32 - 07-31-2018

for some reason the bot is ignoring my "condition" and "complete" args

it goes straight to [120] while the gathered cedar and chestnut logs are still below 500

Code:
        [1] = { -- Cedar Log 5384
            ["item1"] = "Cedar Log";
            ["type"] = "botany";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 436.28219604492;
                ["y"] = 186.01733398438;
                ["z"] = 387.98223876953;
            };
            ["condition"] = {
                ["ItemCount(5384) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(5384) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
        };
        
        [2] = { -- Cedar Log 5384
            ["item1"] = "Cedar Log";
            ["type"] = "botany";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 436.34365844727;
                ["y"] = 210.12023925781;
                ["z"] = 541.45458984375;
            };
            ["condition"] = {
                ["ItemCount(5384) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(5384) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
        };
        
        [3] = { -- Dark Chestnut Log 12578
            ["item1"] = "Dark Chestnut Log";
            ["type"] = "botany";
            ["mapid"] = 398;
            ["pos"] = {
                ["x"] = 263.51379394531;
                ["y"] = -56.129272460938;
                ["z"] = 174.30366516113;
            };
            ["condition"] = {
                ["ItemCount(12578) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(12578) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
        };
        
        [4] = {  -- Dark Chestnut Log 12578
            ["item1"] = "Dark Chestnut Log";
            ["type"] = "botany";
            ["mapid"] = 398;
            ["pos"] = {
                ["x"] = 190.37911987305;
                ["y"] = -62.943809509277;
                ["z"] = 289.84786987305;
            };
            ["condition"] = {
                ["ItemCount(12578) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(12578) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
        };
        [120] = {
            ["lowpriority"] = true;
            ["mapid"] = 635;
            ["radius"] = 30;
            ["type"] = "mining";
        };


is there something wrong with my code? Please help x_X


RE: issues with "condition" and "complete" when gathering - sebbs - 07-31-2018

put the 120 task as idle type
add a ["group"] = "cedar logs"; etc to the groups

add low prio tasks to 1-4 and remove from 120

you can also turn on debugging and see why tasks 1-4 are not valid


RE: issues with "condition" and "complete" when gathering - etherbind32 - 07-31-2018

hah! it WORKS

thank you Sebbs very helpful

for those interested here is the (fixed)working code
Code:
        [1] = { -- Cedar Log 5384
            ["item1"] = "Cedar Log";
            ["group"] = "Cedar Log";
            ["type"] = "botany";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 436.28219604492;
                ["y"] = 186.01733398438;
                ["z"] = 387.98223876953;
            };
            ["condition"] = {
                ["ItemCount(5384) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(5384) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
            ["lowpriority"] = true;
        };
        
        [2] = { -- Cedar Log 5384
            ["item1"] = "Cedar Log";
            ["group"] = "Cedar Log";
            ["type"] = "botany";
            ["mapid"] = 397;
            ["pos"] = {
                ["x"] = 436.34365844727;
                ["y"] = 210.12023925781;
                ["z"] = 541.45458984375;
            };
            ["condition"] = {
                ["ItemCount(5384) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(5384) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
            ["lowpriority"] = true;
        };
        
        [3] = { -- Dark Chestnut Log 12578
            ["item1"] = "Dark Chestnut Log";
            ["group"] = "Dark Chestnut Log";
            ["type"] = "botany";
            ["mapid"] = 398;
            ["pos"] = {
                ["x"] = 263.51379394531;
                ["y"] = -56.129272460938;
                ["z"] = 174.30366516113;
            };
            ["condition"] = {
                ["ItemCount(12578) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(12578) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
            ["lowpriority"] = true;
        };
        
        [4] = {  -- Dark Chestnut Log 12578
            ["item1"] = "Dark Chestnut Log";
            ["group"] = "Dark Chestnut Log";
            ["type"] = "botany";
            ["mapid"] = 398;
            ["pos"] = {
                ["x"] = 190.37911987305;
                ["y"] = -62.943809509277;
                ["z"] = 289.84786987305;
            };
            ["condition"] = {
                ["ItemCount(12578) <= 600"] = true;
            };
            ["complete"] = {
                ["ItemCount(12578) <= 600"] = false;
            };
            ["skillprofile"] = "G_Multi_Gathering";
            ["minlevel"] = 70;
            ["maxlevel"] = 70;
            ["radius"] = 900;
            ["timeout"] = 1000;
            ["dangerousarea"] = false;
            ["usestealth"] = false;
            ["lowpriority"] = true;
        };
        [120] = {
            ["mapid"] = 635;
            ["radius"] = 30;
            ["timeout"] = 1000;
            ["type"] = "mining";
        };