Olly
2013-02-05 23:35:32
@euphemism has added loads of new actionbar functions for us all :)
These are:
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!
UseAbility - what it says uses the inputted ability if its available.
ClickActionBarSlot - simply clicks the selected actionbar slot
All say thanks to him. :)
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!
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.
if (UseAbility(3)) then
WriteLn('Casted ability in slot three!'); ClickActionBarSlot - simply clicks the selected actionbar slot
if ClickActionBarSlot(1) then
writeln('we dropped a ore in slot 1');
All say thanks to him. :)