![]() |
Never move to next task - 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: Never move to next task (/showthread.php?tid=20086) |
Never move to next task - punkerdunkerz - 11-29-2017 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 RE: Never move to next task - sebbs - 11-29-2017 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. RE: Never move to next task - sebbs - 11-29-2017 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. RE: Never move to next task - punkerdunkerz - 11-29-2017 (11-29-2017, 11:34 PM)sebbs Wrote: Get inv gains is start count = x. Complete = x + gains. 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!!! RE: Never move to next task - sebbs - 11-30-2017 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. |