Jump to content
  • 0

Question

Posted

Hi i have a problem with sync 2 if a players click with zoom hack/long rage camera in a roof etc in teleported there (moves there)
 

any ideas on how to fix it?

         // Sync 2 (or other),
         // intended for geodata. Sends a validation packet to client
         // when too far from server calculated true coordinate.
         // Due to geodata/zone errors, some Z axis checks are made. (maybe a temporary solution)
         // Important: this code part must work together with L2Character.updatePosition
         if (Config.GEODATA > 0 && (diffSq > 250000 || Math.abs(dz) > 200))
         {
            //if ((_z - activeChar.getClientZ()) < 200 && Math.abs(activeChar.getLastServerPosition().getZ()-realZ) > 70)
            
            if (Math.abs(dz) > 200 && Math.abs(dz) < 1500 && Math.abs(_z - activeChar.getClientZ()) < 800 )
            {
               activeChar.setXYZ(realX, realY, _z);
               realZ = _z;
            }
            else
            {
               if (Config.DEVELOPER)
                  _log.info(activeChar.getName() + ": Synchronizing position Server -->  Client");
               
               activeChar.sendPacket(new ValidateLocation(activeChar));
            }
         }
      }

2 answers to this question

Recommended Posts

  • 0
Posted

if i delete this             if (Math.abs(dz) > 200 && Math.abs(dz) < 1500 && Math.abs(_z - activeChar.getClientZ()) < 800 )

or just use sync -1 then player doesnt move in the roof but i have other critical issues with -1 so

 

i need to make sync 2 work

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