how do check on/off skill in script ?
Re: how do check on/off skill in script ?
ho do know a skill is on or off as: auto looot; buff mster ....
-
- VIP
- Posts: 25
- Joined: Fri Jan 20, 2017 1:58 pm
- Has thanked: 8 times
- Been thanked: 14 times
Re: how do check on/off skill in script ?
on NA Aion:
dialog is a variable refering to the shortcut dialog.
Code: Select all
Game.Process.GetUnsignedInteger(dialog.GetAddress() + 992) > 0
-
- VIP
- Posts: 25
- Joined: Fri Jan 20, 2017 1:58 pm
- Has thanked: 8 times
- Been thanked: 14 times
Re: how do check on/off skill in script ?
btw here is the example in lua code:
this will check if ability shortcut slot 1 dialog is active or not
Code: Select all
local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress()
local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0
-
- VIP
- Posts: 159
- Joined: Tue Jan 10, 2017 6:39 pm
- Has thanked: 34 times
- Been thanked: 112 times
Re: how do check on/off skill in script ?
Example usage; if skill is on the quickbar 1 1 1;
Code: Select all
function Pause()
local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress();--shortcut1 means quickbar 1 1 1
local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0 ;
if not IsAbilityActive and Helper:CheckAvailable( "Frenzy" ) then
Helper:CheckExecute( "Frenzy" );
return false;
end
return true;
end
-
- VIP
- Posts: 159
- Joined: Tue Jan 10, 2017 6:39 pm
- Has thanked: 34 times
- Been thanked: 112 times
Re: how do check on/off skill in script ?
So, how can we SetValue "0" again ?agonic wrote: ↑Wed Mar 15, 2017 10:27 pmExample usage; if skill is on the quickbar 1 1 1;
Code: Select all
function Pause() local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress();--shortcut1 means quickbar 1 1 1 local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0 ; if not IsAbilityActive and Helper:CheckAvailable( "Frenzy" ) then Helper:CheckExecute( "Frenzy" ); return false; end return true; end
Re: how do check on/off skill in script ?
IsAbilityActive = nil;agonic wrote: ↑Wed Mar 15, 2017 10:59 pmSo, how can we SetValue "0" again ?agonic wrote: ↑Wed Mar 15, 2017 10:27 pmExample usage; if skill is on the quickbar 1 1 1;
Code: Select all
function Pause() local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress();--shortcut1 means quickbar 1 1 1 local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0 ; if not IsAbilityActive and Helper:CheckAvailable( "Frenzy" ) then Helper:CheckExecute( "Frenzy" ); return false; end return true; end
Who is online
Users browsing this forum: No registered users and 1 guest