Skip to content

Geodata Issue

Featured Replies

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));
            }
         }
      }

First of all, there should be no path to get to this "roof", start with pathfinding.

  • Author

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.