Page 1 of 1
Ranger Lua with mau I
Posted: Fri Aug 18, 2017 4:23 pm
by sanane
Hello
someone have a Ranger Lua with using mau ? i tried but i failed to change the lua for ranger.
Thanks a lot
Re: Ranger Lua with mau I
Posted: Fri Aug 18, 2017 5:56 pm
by sergeas
I don't use a ranger but I'm sure the following source code will works fine:
Code: Select all
-- Transformation: Mau
if Player:GetState():GetState( Helper:CheckName( "Transformation: Mau" )) == nil and Helper:CheckAvailable( "Transformation: Mau" ) then
Helper:CheckExecute( "Transformation: Mau" );
return false;
end
In the file Skill.xml (Skill.NA.xml) you will find the rigth name of the skill .. I searched there and I found 2 values for Mau:
Mau Transformation
Transformation: Mau
If the code doesn't work with "Transformation: Mau" try with "Mau Transformation".
You can check for the rigth name of the skill in the game client ..
Re: Ranger Lua with mau I
Posted: Mon Aug 21, 2017 9:02 am
by sanane
thx i will try it
Re: Ranger Lua with mau I
Posted: Mon Aug 21, 2017 12:00 pm
by unkn0wnus3r
You can also add
if you char doesnt cast anyhting anymore because some DP skill require it (if not all) otherwise AS will just try to cast Mau also if your char has zero dp.
-> final code:
Code: Select all
-- Transformation: Mau
if Player:GetDP() >=2000 and Player:GetState():GetState( Helper:CheckName( "Transformation: Mau" )) == nil and Helper:CheckAvailable( "Transformation: Mau" ) then
Helper:CheckExecute( "Transformation: Mau" );
return false;
end