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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...