Page 1 of 2

how do check on/off skill in script ?

Posted: Fri Mar 10, 2017 10:10 am
by ll8082
how do check on/off skill in script ?

Re: how do check on/off skill in script ?

Posted: Fri Mar 10, 2017 10:02 pm
by nucular
Don't know what you mean.

Re: how do check on/off skill in script ?

Posted: Sat Mar 11, 2017 2:03 am
by ll8082
ho do know a skill is on or off as: auto looot; buff mster ....

Re: how do check on/off skill in script ?

Posted: Sat Mar 11, 2017 7:30 am
by nucular
There is no support for pet's in that way. You have to do it manually.

Re: how do check on/off skill in script ?

Posted: Mon Mar 13, 2017 1:57 pm
by sapibuntinx
on NA Aion:

Code: Select all

Game.Process.GetUnsignedInteger(dialog.GetAddress() + 992) > 0
dialog is a variable refering to the shortcut dialog.

Re: how do check on/off skill in script ?

Posted: Mon Mar 13, 2017 3:56 pm
by sapibuntinx
btw here is the example in lua code:

Code: Select all

local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress()
local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0
this will check if ability shortcut slot 1 dialog is active or not

Re: how do check on/off skill in script ?

Posted: Wed Mar 15, 2017 10:21 am
by 0x00
Fantastic piece of information! Nice way to circumvent any LUA variable issue, simply call the offset address manually.

Re: how do check on/off skill in script ?

Posted: Wed Mar 15, 2017 10:27 pm
by agonic
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	

Re: how do check on/off skill in script ?

Posted: Wed Mar 15, 2017 10:59 pm
by agonic
agonic wrote:
Wed Mar 15, 2017 10:27 pm
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	
So, how can we SetValue "0" again ?

Re: how do check on/off skill in script ?

Posted: Wed Mar 15, 2017 11:25 pm
by 0x00
agonic wrote:
Wed Mar 15, 2017 10:59 pm
agonic wrote:
Wed Mar 15, 2017 10:27 pm
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	
So, how can we SetValue "0" again ?
IsAbilityActive = nil;