Thank you for your contribution, rrrix.
back to botting again recently and I have some question,,
[1]
I can't use codes like "iAnythingWithinRange[Range_??] == ??" anymore that was in older trinity
I want my bot to use Soul Harvest skill only for higher stack or the same. (or when skill buff is off)
And also boost up movement speed in fields with no monsters around. so.. I made these
below was a part of my customized codes for my witch doctor I 'd botted last year.
(hashPowerHotbarAbilities.Contains(SNOPower.Witchdoctor_SpiritWalk) && iAnythingWithinRange[RANGE_50] == 0 &&
(GilesBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 1 && (iAnythingWithinRange[RANGE_15] == 1)) || (GilesBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 2 && (iAnythingWithinRange[RANGE_15] == 2)) || (GilesBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 3 && (iAnythingWithinRange[RANGE_15] == 3)) || (GilesBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 4 && (iAnythingWithinRange[RANGE_15] == 4)) || (GilesBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 5 && (iAnythingWithinRange[RANGE_15] >= 5))) &&
at least i can modify later codes with this
(TargetUtil.AnyMobsInRange(16, 1) && GetBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 1) ||
(TargetUtil.AnyMobsInRange(16, 2) && GetBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 2) ||
(TargetUtil.AnyMobsInRange(16, 3) && GetBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 3) ||
(TargetUtil.AnyMobsInRange(16, 4) && GetBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 4) ||
(TargetUtil.AnyMobsInRange(16, 5) && GetBuffStacks(SNOPower.Witchdoctor_SoulHarvest) <= 5)) &&
But, I can't modify "TargetUtil.AnyMobsInRange(Range, UnitNumber)" as I intend
because there is no place to put =< => == in TargetUtil.AnyMobsInRange(X, Y)
And took a look in to other cs files, I can't find anything that might substitute for iAnythingWithingRange code in newer trinity.
Maybe i'm just fool who can't find something that is just in front of me.
Could you let me know how can i find substitute codes that work as I intened?
[2]
When in town can i have my bot use spirit walking skill for speed boost-up?
(back then I experienced at least 1minute loss per hour in act3 by not using these skills in town)
I tried to modify town related codes several times in older version but didn't succeed