.amountused working wrong. When I loot potions and depositing it (or even throw it on ground) it counting those potions (but shouldnt). Example of usage:
foreach supplyitem ITEM do
print(ITEM.amountused)
end
@Lucas Terra
.amountused working wrong. When I loot potions and depositing it (or even throw it on ground) it counting those potions (but shouldnt). Example of usage:
foreach supplyitem ITEM do
print(ITEM.amountused)
end
@Lucas Terra
Ye, that is a "known bug" that happens mostly because of the way it counts them. Basically, it counts anything that disappears as used.
There is no really optimal way to do it, I guess.
What about bolts and arrows? If you decide to count it from Server Log...
Its easy to check if this is a arrow or potion, so if you create function to count potions from server log, its easy to make HUD with both functions. Anyway arrows disappear from arrow spot (I dont know what its called xD), not from backpack.
Who botting without potions on hotkeys? Anyway Lucas can improve .amountused to count only if one potion disappear, because its not possible to use more than one potion at one time.
Anyway I think will be better to create function to counting potions from server log, there will be new possibilities in windbot
Last edited by Eldar; 11-24-2014 at 07:10 PM.
Uh, ye, this kinda makes sense to me.
Treating different supplies with different criteria.
Yeah. I just did it the easiest way, and it has been working so far. I might change that some time...