![]() |
map coords
nooblet question: how to translate client coords (/loc) to region coords?
ie 355353 21236 -3732 => 22-24 thanks :roll: |
all cube have the same size in X & Y (z does not change the region)
and its 32768. Each 32768, increase the X region (16... 17 ... 18...) same for Y So, with a division modulo function, you can know where you are |
k
thanks |
$geo_x=20+($game_x-$game_x%32768)/32768;
$geo_y=18+($game_y-$game_y%32768)/32768; |
| All times are GMT. The time now is 15:27. |