MMOMinion

Full Version: Heavensward Gathering Unspoiled
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all.  I would like to know the best way to gather mats that pop twice a day.  My example below is for Coerthan Tea Leaves.  This node pops twice a day and is at one of two locations.  Below is my .lua.  The bot will gather at one of the nodes in the am, if close, but does not attempt to move to the other coordinate 12 game hours later.  How can I have the bot check the locations twice a day (10am and 2200pm)?  If i use a marker list, the bot goes back in forth between the locations all day and it looks suspicious but does gather when the nodes are active.  below is my code and thanks for looking  Handshake

Code:
local obj1 = {
   ["setup"] = {
       ["gearsetmining"] = 1;                    
       ["gearsetbotany"] = 2;                  
   };
   ["tasks"] = {
       [1] = {  -- Coerthan Tea Leaves
           ["mapid"] = 397;                      
           ["radius"] = 300;                      -  
            ["pos"] = {
                ["x"] = 407.16052246094;
                ["y"] = 151.91081237793;
                ["z"] = -301.80499267578;
                ["h"] = 0.61136150360107;
            };
           ["type"] = "botany";                  
           ["item1"] = "Coerthan Tea Leaves";              
           ["mingp"] = 400;                      
           ["eorzeaminhour"] = 10;                
           ["eorzeamaxhour"] = 2;                
           ["skillprofile"] = "Blessed Harvest";                
           ["gatherrares"] = false;              
           ["gatherspecialrares"] = false;      
           ["gathermaps"] = false;                
           ["gathergardening"] = false;          
           ["usecordials"] = false;              
           ["unspoiled"] = true;
           ["resetdaily"] = true;      
           ["dangerousarea"] = true;            
           ["usestealth"] = true;              
       };
        [2] = {  -- Coerthan Tea Leaves
           ["mapid"] = 397;                      
           ["radius"] = 300;                          
            ["pos"] = {
                ["x"] = 391.35192871094;
                ["y"] = 171.00001525879;
                ["z"] = -157.22978210449;
                ["h"] = -0.50116294622421;
            };
           ["type"] = "botany";                  
           ["item1"] = "Coerthan Tea Leaves";            
           ["mingp"] = 400;                      
           ["eorzeaminhour"] = 10;                
           ["eorzeamaxhour"] = 2;                
           ["skillprofile"] = "Blessed Harvest";              
           ["gatherrares"] = false;              
           ["gatherspecialrares"] = false;      
           ["gathermaps"] = false;                
           ["gathergardening"] = false;          
           ["usecordials"] = false;                
           ["unspoiled"] = true;
            ["resetdaily"] = true;                  
           ["dangerousarea"] = true;            
           ["usestealth"] = true;                
       };
        [3] = {  -- Coerthan Tea Leaves
           ["mapid"] = 397;                      
           ["radius"] = 300;                        
            ["pos"] = {
                ["x"] = 407.16052246094;
                ["y"] = 151.91081237793;
                ["z"] = -301.80499267578;
                ["h"] = 0.61136150360107;
            };
           ["type"] = "botany";                  
           ["item1"] = "Coerthan Tea Leaves";              
           ["mingp"] = 400;                      
           ["eorzeaminhour"] = 22;                
           ["eorzeamaxhour"] = 24;                
           ["skillprofile"] = "Blessed Harvest";                
           ["gatherrares"] = false;              
           ["gatherspecialrares"] = false;        
           ["gathermaps"] = false;                
           ["gathergardening"] = false;          
           ["usecordials"] = false;                
           ["unspoiled"] = true;  
            ["resetdaily"] = true;                
           ["dangerousarea"] = true;            
           ["usestealth"] = true;                
       };
        [4] = {  -- Coerthan Tea Leaves
           ["mapid"] = 397;                      
           ["radius"] = 300;                          
            ["pos"] = {
                ["x"] = 391.35192871094;
                ["y"] = 171.00001525879;
                ["z"] = -157.22978210449;
                ["h"] = -0.50116294622421;
            };
           ["type"] = "botany";                  
           ["item1"] = "Coerthan Tea Leaves";              
           ["mingp"] = 400;                      
           ["eorzeaminhour"] = 22;                
           ["eorzeamaxhour"] = 24;                
           ["skillprofile"] = "Blessed Harvest";                
           ["gatherrares"] = false;              
           ["gatherspecialrares"] = false;        
           ["gathermaps"] = false;                
           ["gathergardening"] = false;          
           ["usecordials"] = false;                
           ["unspoiled"] = true;  
            ["resetdaily"] = true;                 
           ["dangerousarea"] = true;          
           ["usestealth"] = true;                
       };
   };
}
return obj1
Check the exmple file for reset daily
(10-12-2017, 06:15 AM)sebbs Wrote: [ -> ]Check the exmple file for reset daily

Thanks for the reply Sebbs.  I took a look at the file and changed ["resetdaily"] = false; and I still do not move.  I assume I should add a timeout or maxtime on the markers?