Jump to content

Small Fix Of Heading Upon Click (Validatelocation)


Recommended Posts

This is the topic: http://www.maxcheaters.com/topic/215808-onclick-a-player-show-him-as-heading-change/?do=findComment&comment=2642841

 

Basically when u click a character, it seems like he slightly rotate. Pm me if u can fix this. 

 

Edited by Afou To Patisa
Link to comment
Share on other sites

Make a video again. Old was deleted.

Video is pointless, just think of a player walk and suddedly he stop infront of you, and u double left click on him

and he change heading (small sometimes big some other). And then to happen again he must move. 

Link to comment
Share on other sites

i fixed it my self..  

 

BEFORE:

if (activeChar.getTarget() != target)
		{
			activeChar.setTarget(target);
                              activeChar.sendPacket(new MyTargetSelected(target.getObjectId(), 0));
                               if (activeChar.getTarget() != target)
					activeChar.sendPacket(new ValidateLocation((L2Character) target));
		}
		else if (interact)
		{
			if (activeChar != target)
				if (activeChar.getTarget() != target)
					activeChar.sendPacket(new ValidateLocation((L2Character) target)); 

AFTER:

if (activeChar.getTarget() != target)
		{
			activeChar.setTarget(target);
                         activeChar.sendPacket(new MyTargetSelected(target.getObjectId(), 0));

		}
		else if (interact)
		{
			if (activeChar != target)
				if (activeChar.getTarget() != target)
					activeChar.sendPacket(new ValidateLocation((L2Character) target)); 

Simple remoove the first validateLocation.

Edited by Afou To Patisa
Link to comment
Share on other sites

Next problem places:

  1. Wrong ValidatePosition packet. Missed incoming heading value from client. Bad analys of packet into server side;
  2. Wrong ValidateLocation packet from server. Missed correct heading value. Look previous problem.

It's all places where can be missed heading of characters who around you.

 

And use L2PHX for analyses all data.

Link to comment
Share on other sites

Next problem places:

  1. Wrong ValidatePosition packet. Missed incoming heading value from client. Bad analys of packet into server side;
  2. Wrong ValidateLocation packet from server. Missed correct heading value. Look previous problem.

It's all places where can be missed heading of characters who around you.

 

And use L2PHX for analyses all data.

i did fix as i mention

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...