10-15-2015, 01:32 PM
Hey guys,
I'm trying to maximize my crystal and shard gathering.
One issue that I see is if you're gathering shards/crystals at the lvl 30 nodes and you have condition set to ItemCount(x) < 9999, if you have 9998 in your inv when you start gathering a node it gets 1 shard and is capped, then it keeps trying to hit the same item, basically trapped in an infinite loop. What I've done is changed the condition to < 9990 which works rather well, but I can foresee a slight chance of the loop again if a big bonus happens. I can always lower the condition more it that happens.
Another issue is if I'm gathering both shards and crystals and if the crystals get capped then infinite loop again. So, I was thinking if I could check the ItemCount of both shards and crystals in one condition, I could overcome this issue. But I'm not sure if it can be done, or how to do it.
We'll use Fire Shards/Crystals as an example:
Pseudo code:
Task 1 (Gather Shards and Crystals until 9990 Shards or Crystals)
Condition: Fire Shards < 9990 and Fire Crystals < 9990
Complete: Fire Shards >= 9990 or Fire Crystals >= 9990
Task 2 (Gather Shards until 9990, in case Task 1 filled up Crystals)
Condition: Fire Shards < 9990
Complete: Fire Shards >= 9990
This is what I came up with, didn't try it, will it work?
I'm trying to maximize my crystal and shard gathering.
One issue that I see is if you're gathering shards/crystals at the lvl 30 nodes and you have condition set to ItemCount(x) < 9999, if you have 9998 in your inv when you start gathering a node it gets 1 shard and is capped, then it keeps trying to hit the same item, basically trapped in an infinite loop. What I've done is changed the condition to < 9990 which works rather well, but I can foresee a slight chance of the loop again if a big bonus happens. I can always lower the condition more it that happens.
Another issue is if I'm gathering both shards and crystals and if the crystals get capped then infinite loop again. So, I was thinking if I could check the ItemCount of both shards and crystals in one condition, I could overcome this issue. But I'm not sure if it can be done, or how to do it.
We'll use Fire Shards/Crystals as an example:
Pseudo code:
Task 1 (Gather Shards and Crystals until 9990 Shards or Crystals)
Condition: Fire Shards < 9990 and Fire Crystals < 9990
Complete: Fire Shards >= 9990 or Fire Crystals >= 9990
Task 2 (Gather Shards until 9990, in case Task 1 filled up Crystals)
Condition: Fire Shards < 9990
Complete: Fire Shards >= 9990
This is what I came up with, didn't try it, will it work?
Code:
local obj1 = {
["setup"] = {
["gearsetmining"] = 22;
["gearsetbotany"] = 23;
};
["tasks"] = {
[1] = {
["type"] = "mining";
["radius"] = 150;
["item1"] = "Fire Crystal";
["item2"] = "Fire Shard";
["minlevel"] = 26;
["mapid"] = 145;
["pos"] = {
["x"] = 134;
["y"] = 8.31;
["z"] = -80.08;
};
["usestealth"] = true;
["gathermaps"] = false;
["skillprofile"] = "Crystals";
["dangerousarea"] = true;
["condition"] = {
["ItemCount(2) < 9990 and ItemCount(8) < 9990"] = true;
};
["complete"] = {
["ItemCount(2) >= 9990 or ItemCount(8) >= 9990"] = true;
};
};
[2] = {
["type"] = "mining";
["radius"] = 150;
["item1"] = "Fire Shard";
["item2"] = "None";
["minlevel"] = 26;
["mapid"] = 145;
["pos"] = {
["x"] = 134;
["y"] = 8.31;
["z"] = -80.08;
};
["usestealth"] = true;
["gathermaps"] = false;
["skillprofile"] = "Crystals";
["dangerousarea"] = true;
["condition"] = {
["ItemCount(2) < 9990"] = true;
};
["complete"] = {
["ItemCount(2) >= 9990"] = true;
};
};
};
}
return obj1