how do check on/off skill in script ?

ll8082
Posts: 14
Joined: Tue Feb 28, 2017 2:40 pm

how do check on/off skill in script ?

Post by ll8082 » Fri Mar 10, 2017 10:10 am

how do check on/off skill in script ?

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

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

Post by nucular » Fri Mar 10, 2017 10:02 pm

Don't know what you mean.

ll8082
Posts: 14
Joined: Tue Feb 28, 2017 2:40 pm

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

Post by ll8082 » Sat Mar 11, 2017 2:03 am

ho do know a skill is on or off as: auto looot; buff mster ....

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

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

Post by nucular » Sat Mar 11, 2017 7:30 am

There is no support for pet's in that way. You have to do it manually.

sapibuntinx
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 ?

Post by sapibuntinx » Mon Mar 13, 2017 1:57 pm

on NA Aion:

Code: Select all

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

sapibuntinx
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 ?

Post by sapibuntinx » Mon Mar 13, 2017 3:56 pm

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

User avatar
0x00
VIP
Posts: 105
Joined: Tue Jan 10, 2017 11:40 pm
Has thanked: 10 times
Been thanked: 23 times

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

Post by 0x00 » Wed Mar 15, 2017 10:21 am

Fantastic piece of information! Nice way to circumvent any LUA variable issue, simply call the offset address manually.

agonic
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 ?

Post by agonic » 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	

agonic
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 ?

Post by agonic » 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 ?

User avatar
0x00
VIP
Posts: 105
Joined: Tue Jan 10, 2017 11:40 pm
Has thanked: 10 times
Been thanked: 23 times

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

Post by 0x00 » Wed Mar 15, 2017 11:25 pm

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;

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest