Ranger Lua with mau I

Post Reply
sanane
Posts: 7
Joined: Fri Aug 18, 2017 7:47 am

Ranger Lua with mau I

Post by sanane » Fri Aug 18, 2017 4:23 pm

Hello

someone have a Ranger Lua with using mau ? i tried but i failed to change the lua for ranger.

Thanks a lot

sergeas
Posts: 27
Joined: Wed May 24, 2017 5:56 pm
Has thanked: 42 times
Been thanked: 4 times

Re: Ranger Lua with mau I

Post by sergeas » Fri Aug 18, 2017 5:56 pm

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 ..

sanane
Posts: 7
Joined: Fri Aug 18, 2017 7:47 am

Re: Ranger Lua with mau I

Post by sanane » Mon Aug 21, 2017 9:02 am

thx i will try it

unkn0wnus3r
Posts: 75
Joined: Wed Jan 18, 2017 12:27 pm
Has thanked: 10 times
Been thanked: 13 times

Re: Ranger Lua with mau I

Post by unkn0wnus3r » Mon Aug 21, 2017 12:00 pm

You can also add

Code: Select all

Player:GetDP() >=2000
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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest