Page 2 of 2
Re: how do check on/off skill in script ?
Posted: Thu Mar 16, 2017 12:24 am
by agonic
I added into my script. Then tested it. But, the result is so sad that, this addition freezes the AS.
Update: It is working for Frenzy for assassins, but powershards.
Re: how do check on/off skill in script ?
Posted: Thu Mar 16, 2017 5:08 am
by sapibuntinx
I used this to enable pet auto-loot, basically, if the value was 0, then I will tell AS to execute skill Auto-Loot.
I think if you want to turn it off, then tell AS to execute the related skill (for me, execute Auto-Loot skill) if the value is non 0.
Re: how do check on/off skill in script ?
Posted: Fri Mar 17, 2017 5:13 am
by agonic
Powershard On
Code: Select all
local ShardAddress = DialogList:GetDialog( "basic_status_dialog/boost_marker" ):GetAddress();
local Shard = Memory:GetUnsignedInteger(ShardAddress +424) > 1060000000;
if Entity ~= nil and Entity:IsPlayer() and not Shard then
if Helper:CheckAvailable( "Toggle Power Shard" ) then
Helper:CheckExecute( "Toggle Power Shard" );
return false;
end
end
Re: how do check on/off skill in script ?
Posted: Fri Mar 17, 2017 5:37 am
by sapibuntinx
agonic wrote: ↑Fri Mar 17, 2017 5:13 am
Powershard On
Code: Select all
local ShardAddress = DialogList:GetDialog( "basic_status_dialog/boost_marker" ):GetAddress();
local Shard = Memory:GetUnsignedInteger(ShardAddress +424) > 1060000000;
if Entity ~= nil and Entity:IsPlayer() and not Shard then
if Helper:CheckAvailable( "Toggle Power Shard" ) then
Helper:CheckExecute( "Toggle Power Shard" );
return false;
end
end
very nice, this is will be very useful to those creating pvp script. thanks for this.
Re: how do check on/off skill in script ?
Posted: Sat Mar 18, 2017 12:39 am
by agonic
-- Using of the Loot pet;
--Put pet and AutoLoot skill on the skillbar. Btw, You can put them wherever you want. It is just an example.
Now example;
Code: Select all
local CTRL8 = DialogList:GetDialog( "quickbar_dialog_ctrl/0/shortcut8" ):GetAddress();--means Quickbar 2 1 8 = Ctrl+8
local IsAbilityActive = Memory:GetUnsignedInteger(CTRL8 + 992) > 0 ;
local CTRL9 = DialogList:GetDialog( "quickbar_dialog_ctrl/0/shortcut9" ):GetAddress();--means Quickbar 2 1 9=Ctrl+9
local IsLootingActive = Memory:GetUnsignedInteger(CTRL9 + 992) > 0 ;
if not IsAbilityActive then
DialogList:GetDialog( "quickbar_dialog_ctrl/0/shortcut8" ):Click();
elseif IsAbilityActive and not IsLootingActive then
DialogList:GetDialog( "quickbar_dialog_ctrl/0/shortcut9" ):Click();
end
Also you can improvise, like;
Code: Select all
if Entity:IsMonster() then --means PVE
this codes
end
if Entity:IsPlayer() then --means PVP
same way via buff pet
end