Jump to content
  • 0

Question

Posted

Hi there,

 

i have a question. is it possible to make flying-transformations avaible everywhere in the world of l2, not just in the area of gracia? i'm sorry but i'm a web designer and i have no plan about java. wanna try to learn java when my final exam is done (i'm still in apprenticeship)

 

sorry 4 my bad englisch and thx 4 you answears <3

Recommended Posts

  • 0
Posted

No system message at the moment.

I've changed the Skill.xml as An4rchy proposed:

 

so, check what will do

Code: [select]

 

setIsFlying(true);

 

Now characters can transform into aurabird falcon, while on aden continent but vertical movement still isn't possible and if you click somewhere to move, character doesn't really move. there are just some seconds passing, while nothing happens, then character "jumps" forward.

 

: //

 

so well, you thin I should re-change skill and look for the message when trying to transform?

  • 0
Posted

well, lets state what things works and what doesnt:

- transformation (as skill) is done well (you get the skills so all the process is done)

 

- we dont know if the packets system works ( i cant find what are the move packets and if there is another packet of flymove) if some1 can find them, just add some debug information to know if they are send/recived and if core try to do anything with them

 

-Wyverns dont have any problem to fly (right?) in Aden

  • 0
Posted

Found this parts in model/actor/L2Character.java

 

	final boolean verticalMovementOnly = isFlying() && distance == 0 && dz != 0;
	if (verticalMovementOnly)
		distance = Math.abs(dz);

	// make water move short and use no geodata checks for swimming chars
	// distance in a click can easily be over 3000
	if (Config.GEODATA > 0 && isInsideZone(ZONE_WATER) && distance > 700)
	{
		double divider = 700 / distance;
		x = curX + (int) (divider * dx);
		y = curY + (int) (divider * dy);
		z = curZ + (int) (divider * dz);
		dx = (x - curX);
		dy = (y - curY);
		dz = (z - curZ);
		distance = Math.sqrt(dx * dx + dy * dy);
	}

 

AND

 

// Apply Z distance for flying or swimming for correct timing calculations
	if ((isFlying() || isInsideZone(ZONE_WATER)) && !verticalMovementOnly)
		distance = Math.sqrt(distance * distance + dz * dz);

 

I guess "vertical movement" is for swimming AND flying...maybe the solution is somewhere around here or somewhere else in the L2Character.java? I don't really understand the code...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock