@euphemism has added loads of new actionbar functions for us all
These are:
- GetAbilityLocation
- GetAbilityCooldown
- UseAbility
- ClickActionBarSlot
- AbilityInSlot
- AddAbilityToActionBar
- AddItemToActionBar
- TPAFromLine
- TPAFromLineWrap
note: for ability constants 1-12 will use the actionbar, and 13..74 will switch to the ability's tab and use it from there. you can find the Ability Constants in globals.simba starting at line 207.
GetAbilityCooldown - returns the cooldown percentage (1..100) without any hard coding of the cooldowns!
Simba Code:WriteLn('Ability cooldown is ' + IntToStr(GetAbilityCooldown(AB_SURGE)) + '% complete.');
if (GetAbilityCooldown(AB_SURGE) = 100) then
writeln('we can now use the surge ability again!');
UseAbility - what it says uses the inputted ability if its available.
Simba Code:if (UseAbility(3)) then
WriteLn('Casted ability in slot three!');
ClickActionBarSlot - simply clicks the selected actionbar slot
Simba Code:if ClickActionBarSlot(1) then
writeln('we dropped a ore in slot 1');
All say thanks to him.