how do check on/off skill in script ?
Posted: Fri Mar 10, 2017 10:10 am
how do check on/off skill in script ?
Code: Select all
Game.Process.GetUnsignedInteger(dialog.GetAddress() + 992) > 0
Code: Select all
local Shortcut1Address = DialogList:GetDialog( "quickbar_dialog/ctn_shortcut/shortcut1" ):GetAddress()
local IsAbilityActive = Memory:GetUnsignedInteger(Shortcut1Address + 992) > 0
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 ?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
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