MMOMinion

Full Version: Gather + fishing help needed.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
First time trying this.

Objective.
Farm eph node - Doman yellow 8am-12pm. and nippleworth in between spawns.
Farm eph node - Almandine 12AM-4PM. and crystal in between spawns.
Fish : Rock Saltfish - Saltshield Snapper - White Horse. 1pm-12pm.
^ Zone : the lochs - cordinates x21.y21 - Loch Seld.


Then loop.

i can get the part with farming both nodes to work, but i cant make it work where it swops to fishing in between, not sure if it's cause i need a command where it also changes to fishing profile, or if it's simple not possible, but most likely it's me just not understanding the coding.

Much appreciated if someone could help me fix it, or tell me if it's simple not possible.


local obj1 = {
    ["setup"] = {
        ["gearsetmining"] = 2;
        ["gearsetbotany"] = 3;
        ["gearsetfishing"] = 4;
    };
    ["tasks"] = {
-----------------------------------------------------------------------------------
------------------------------------ 8AM - 12PM -----------------------------------
-----------------------------------------------------------------------------------
        [1] = {  -- Doman Yellow @ 8AM-12PM (Botanist / Azim Steppe 16,28)
            ["mapid"] = 622;
            ["radius"] = 300;
            ["pos"] = {
                ["x"] = -267.6;
                ["y"] = 12.54;
                ["z"] = 339.43;
                ["h"] = 1.82;
            };
            ["type"] = "botany";
            ["item1"] = "Doman Yellow";
            ["mingp"] = 600;
            ["eorzeaminhour"] = 8;
            ["eorzeamaxhour"] = 12;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gatherrares"] = false;
            ["gatherspecialrares"] = false;
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["usecordials"] = true;
            ["lowpriority"] = true;
            ["timeout"] = 750;
            ["unspoiled"] = true;
            ["dangerousarea"] = true;
            ["usestealth"] = true;
            ["collectables"] = {
                ["Doman Yellow"] = 300;
            };
        };        
        [2] = {  -- Re-Pop Task 01 (1of2) @ 8AM-12PM (Botanist / Azim Steppe)
            ["mapid"] = 622;
            ["radius"] = 30;
            ["pos"] = {
                -- -307.8 6.2 412.64 -0.82
                ["x"] = -307.8;
                ["y"] = 6.2;
                ["z"] = 412.64;
                ["h"] = -0.82;
            };
            ["type"] = "botany";
            ["item1"] = "Nipplewort";
            ["eorzeaminhour"] = 8;
            ["eorzeamaxhour"] = 12;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["lowpriority"] = true;
            ["maxtime"] = 7500;
            ["timeout"] = 750;
            ["usestealth"] = true;
        };
        [3] = {  -- Re-Pop Task 01 (2of2) @ 8AM-12PM (Botanist / Azim Steppe)
            ["mapid"] = 622;
            ["radius"] = 30;
            ["pos"] = {
                -- -170.3 3.06 361.49 1.34
                ["x"] = -170.3;
                ["y"] = 3.06;
                ["z"] = 361.49;
                ["h"] = 1.34;
            };
            ["type"] = "botany";
            ["item1"] = "Nipplewort";
            ["eorzeaminhour"] = 8;
            ["eorzeamaxhour"] = 12;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["lowpriority"] = true;
            ["maxtime"] = 7500;
            ["timeout"] = 750;
            ["usestealth"] = true;
        };
-----------------------------------------------------------------------------------
------------------------------------- 12AM - 4AM ----------------------------------
-----------------------------------------------------------------------------------
        [13] = {  --Almandine 12AM-4AM (Miner / The Lochs 13,16)
            ["mapid"] = 621;
            ["radius"] = 300;
            ["pos"] = {
                ["x"] = -420.2;
                ["y"] = 10.51;
                ["z"] = -240.1;
                ["h"] = -2.56;
            };
            ["type"] = "mining";
            ["item1"] = "Almandine";
            ["mingp"] = 600;
            ["eorzeaminhour"] = 0;
            ["eorzeamaxhour"] = 4;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gatherrares"] = false;
            ["gatherspecialrares"] = false;
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["usecordials"] = true;
            ["lowpriority"] = true;
            ["timeout"] = 750;
            ["unspoiled"] = true;
            ["dangerousarea"] = true;
            ["usestealth"] = true;
            ["collectables"] = {
                ["Almandine"] = 300;
            };
        };        
        [14] = {  -- Re-Pop Task 01 (1of2) @ 12AM-4AM (Miner / The Lochs)
            ["mapid"] = 621;
            ["radius"] = 30;
            ["pos"] = {
                -- -400.4 11.98 -276.5 -2.45
                ["x"] = -400.4;
                ["y"] = 11.98;
                ["z"] = -276.5;
                ["h"] = -2.45;
            };
            ["type"] = "mining";
            ["item1"] = "Ice Crystal";
            ["eorzeaminhour"] = 0;
            ["eorzeamaxhour"] = 4;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["lowpriority"] = true;
            ["maxtime"] = 7500;
            ["timeout"] = 750;
            ["usestealth"] = true;
        };
        [15] = {  -- Re-Pop Task 01 (2of2) @ 12AM-4AM (Miner / The Lochs)
            ["mapid"] = 621;
            ["radius"] = 30;
            ["pos"] = {
                -- -544.0 14.88 -296.2 -1.09
                ["x"] = -544.0;
                ["y"] = 14.88;
                ["z"] = -296.2;
                ["h"] = -1.09;
            };
            ["type"] = "mining";
            ["item1"] = "Ice Crystal";
            ["eorzeaminhour"] = 0;
            ["eorzeamaxhour"] = 4;
            ["skillprofile"] = "Lvl70_Aetherial";
            ["gathermaps"] = false;
            ["gathergardening"] = false;
            ["lowpriority"] = true;
            ["maxtime"] = 7500;
            ["timeout"] = 750;
            ["usestealth"] = true;
        };
--


-- Resting phase --
        [120] = {
            ["mapid"] = 156;
            ["eorzeaminhour"] = 4;
            ["eorzeamaxhour"] = 8;
        };
-----------------------------------------------------------------------------------
------------------------------------- 1PM - 12AM ----------------------------------
-----------------------------------------------------------------------------------
        [16] = {  --Rock Saltfish 12AM-4AM (Fisher / The Lochs 21,21)
            --[[
:::    Valid Task Parameters
"condition" - Table parameter listing various extra conditions required to perform this task, can be used to evaluate lua code.
"complete" - Table parameter listing various extra conditions that will cause this task to complete, can be used to evaluate lua code.
"lowpriority","normalpriority","highpriority" - affects task evaluations (advanced).
"weatherlast","weathernow","weathernext" - used to evaluate weather conditions for the "mapid" tag listed for the task.
"eorzeaminhour","eorzeamaxhour" - used to evaluate the eorzea time ranges a task is valid.
"lastshiftmin" - used to evaluate a minimun amount of time (in seconds) since last weather shift
"lastshiftmax" - used to evaluate a maximum amount of time (in seconds) since last weather shift
"nextshiftmin" - used to evaluate a minimun amount of time (in seconds) until next weather shift
"nextshiftmax" - used to evaluate a maximum amount of time (in seconds) until next weather shift
"maxtime" - used to evaluate the maximum amount of time spent at low priority nodes (works like marker timers).

:::: Fish Specific Parameters

["usemooch"] = true/false;
["usepatience"] = true/false;
["usepatience2"] = true/false;
["usechum"] = true/false;
["usefisheyes"] = true/false;
["usesnagging"] = true/false;
["usecollect"] = true/false;
["baitname"] = "Silkworm,Silkworm";    

["whitelist"] = "Some Fish,Someother Fish";
["whitelisthq"] = "Some Fish,Someother Fish";
["blacklist"] = "Some Fish,Someother Fish";
["blacklisthq"] = "Some Fish,Someother Fish,Andthis Fishtoo";
["moochables"] = "Some Fish,Someother Fish";

-- Rebuy bait of a particular ID in a certain quantity.
["rebuy"] = {
    [2585] = 99;
};

:::: General Parameters
["usestealth"] - boolean - default: false - should stealth be used for this task - ex: ["usestealth"] = true;
["dangerousarea"] - boolean - default: false - should extra stealth precaution be taken in this area - ex: ["dangerousarea"] = true;

::: Further
using the weather or eorzea time tags automatically configure a task as high priority.
high priority tasks with lower indexes will take priority if multiple high priority tasks are viable.
task indexes do not necessarily need to be perfectly in order.
--]]
local obj1 = {
    ["tasks"] = {
        [1] = {
            ["minlevel"] = 1;
            ["maxlevel"] = 70;
            ["mapid"] = 612;
            ["pos"] = {
                ["x"] = -21.0;
                ["y"] = 21.0;
                ["z"] = -418.3;
                ["h"] = -1.9;
            };
            ["type"] = "fishing";
            ["usemooch"] = false;
            ["eorzeaminhour"] = 13;
            ["eorzeamaxhour"] = 14;
            ["usepatience"] = true;
            ["usepatience2"] = false;
            ["usechum"] = false;
            ["usestealth"] = true;
            ["usecollect"] = true;
            ["baitname"] = "Silkworm";    
        };
        [2] = {
            ["minlevel"] = 1;
            ["maxlevel"] = 70;
            ["mapid"] = 621;
            ["pos"] = {
                ["x"] = -21.0;
                ["y"] = 21.0;
                ["z"] = -654.8;
                ["h"] = -1.37;
            };
            ["type"] = "fishing";            
            ["usemooch"] = false;
            ["eorzeaminhour"] = 13;                            ["eorzeamaxhour"] = 14;
            ["usepatience"] = true;
            ["usepatience2"] = false;
            ["usechum"] = false;
            ["usestealth"] = true;
            ["usecollect"] = true;
            ["baitname"] = "Silkworm";    
        };
        [3] = {
            ["minlevel"] = 1;
            ["maxlevel"] = 70;
            ["mapid"] = 621;
            ["pos"] = {
                ["x"] = -21.21;
                ["y"] = 21.21;
                ["z"] = -866.6;
                ["h"] = -0.58;
            };
            ["type"] = "fishing";            
            ["usemooch"] = false;
            ["usepatience"] = true;
            ["eorzeaminhour"] = 13;
            ["eorzeamaxhour"] = 14;
            ["usepatience2"] = false;
            ["usechum"] = false;
            ["usestealth"] = true;
            ["usecollect"] = true;
            ["baitname"] = "Silkworm";
        };
            




    };
}
return obj1