MMOMinion

Full Version: Never move to next task
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

It seems to be impossible to set a time limit on each task.

Instead, i have taken Sebb's advice and made each task complete after gathering a certain amount.

However, my bot doesnt ever move on to the next task after reaching the limit. The bot will move if i manually start/stop but not on its own.

Do you know how i could fix?

Thanks,

local obj1 = {
    ["setup"] = {
        ["gearsetmining"] = 1;
        ["gearsetbotany"] = 2;
    };
    ["tasks"] = {
        [1] = {
            ["type"] = "mining";
            ["timeout"] = 2500;
            ["radius"] = 100;
            ["minlevel"] = 1;
            ["maxlevel"] = 70;
            ["item1"] = "Water Shard";
            ['item2'] = "Obsidian";
            ["mapid"] = 140;
            ["pos"] =  {
                ["x"] = 11.679;
                ["y"] = 58.287;
                 ["z"] =346.395;             
            };
            ["condition"] = {
                ["ItemCount(7) < 1950"] = true;
            };
            ["complete"] = {
                ["GetInventoryItemGains(7) >= 1950"] = true;
            };
        };    
         [2] = {
            ["type"] = "mining";
            ["timeout"] = 2500;
            ["radius"] = 100;
            ["minlevel"] = 1;
            ["maxlevel"] = 70;
            ["item1"] = "Mudstone";
            ['item2'] = "Ice Shard";
            ["mapid"] = 138;
            ["pos"] =  {
                ["x"] = 282.169;
                ["y"] = -4.397;
                 ["z"] = 105.066;             
            };    
            ["condition"] = {
                ["ItemCount(3) < 2000"] = true;
            };
            ["complete"] = {
                ["GetInventoryItemGains(3) >= 2000"] = true;
            };            
        };
    };        
}
return obj1
Get inv gains is start count = x. Complete = x + gains.

If your using a condition item count then use item count to complete the task.
If you mix the checks your bound to have issues.
Task 2 mud stone the item u want or is ice shards?
You will never get ice shards so ending by counting ice shards is redundant.
(11-29-2017, 11:34 PM)sebbs Wrote: [ -> ]Get inv gains is start count = x. Complete = x + gains.

If your using a condition item count then use item count to complete the task.
If you mix the checks your bound to have issues.

Thank you so much Sebbs!!

I will give this a try and let you know if i have any issues.

The second one has two types of nodes in same area thats why its setup like that.

You are the man!!!
Alternatly the 1-70 gathering pack has a profile to gather a certain number of items before moving on to the next item.

Gathering list profile.
Does botany and mining items.