-
Notifications
You must be signed in to change notification settings - Fork 102
Gloc and loc conversion
DigitalBox98 edited this page Oct 25, 2021
·
3 revisions
The /jump to command is using global location coordinates (gloc)
If you need to jump to an object expressed in local coordinates (loc), you will need to apply the below conversion :
Gloc.X = offset_x * 8192 + loc.X
Gloc.Y = offset_y * 8192 + loc.Y
Where offset_x and offset_y is defined in a file called "zones.dat" (packed into the zones.mpk in the /zones directory) which is defined for each zone.
For Caledonia zone, you will have offset_x=1 and offset_y =1 so :
Gloc.X = 8192 + loc.X
Gloc.Y = 8192 + loc.Y
Dawn of Light - DOL Server - http://www.dolserver.net - Wiki Home