PDA

View Full Version : Alternate Avalanche/Mana Potion



godkamikaze
05-13-2020, 03:59 PM
Hail community.

To contextualize:
The delay from attack runes to attack runes is 2s.
The delay from attack runes to potions is 1s.
The delay from potions to potions and attack runes is 1s.

So, if you alternate between potions and attack runes, you can attack at the highest speed (each 2 seconds) and potion at half speed (each 2 seconds instead of 1 second). BUT, if the bot keeps spamming potions (through Self Healer), it will never be able to use attack runes.

The script to avoid that would be very easy to make, if we were using some targeted rune like SD. But if we want to use ball runes (Avalanche, Thunderstorm, GFB etc), which use that smart aiming that Magic Shooter has, that would only be doable if we have any function that uses said smart aiming, like ShootBallRune(ID_Rune, MinMonstersInBallRange).

Assuming that ShootBallRune(..., ...) exists, the script would then be something like:


while (true) do
if (Self.Mana()/Self.MaxMana())<=70 then
ShootBallRune(3202,3)
Self.UseItemWithMe(ID_Potion)
else
ShootBallRune(3202,3)
end
end

Since it always tries to attack BEFORE potting, that should work.

So, is there any function (in scripting) that smartly shoots ball runes? Or any other workaround for this?

Thanks!