[DiscordArchive] Is there a way to convert the GO x,y,z coords to zone X/Y?
[DiscordArchive] Is there a way to convert the GO x,y,z coords to zone X/Y?
Archived author: Snausages • Posted: 2023-08-22T20:14:55.783000+00:00
Original source
Is there a way to convert the GO x,y,z coords to zone X/Y?
Archived author: Kitzunu • Posted: 2023-08-22T20:16:02.883000+00:00
Original source
zones dont exist
Archived author: Snausages • Posted: 2023-08-22T20:25:22.015000+00:00
Original source
I mean `.gps` in game can figure it out, so i was just wondering if there was some easy math for it
Archived author: Honey • Posted: 2023-08-22T20:34:22.409000+00:00
Original source
I don't think so. ´.gps` is a map position, but x/y coordinates used by the game are limited to +-100. If there's a solution, then it needs to take map size into account.
Archived author: Kitzunu • Posted: 2023-08-22T20:35:18.629000+00:00
Original source
You always need to take the map id into account when working with positions. It is the only thing that can determine where you are.
Archived author: Kitzunu • Posted: 2023-08-22T20:37:14.049000+00:00
Original source
zone id does exist and you can get it by `.lookup area $namepart` as described in `go zonexy`
Archived author: Kitzunu • Posted: 2023-08-22T20:38:40.688000+00:00
Original source
zone is area, confusing? yes
Archived author: Snausages • Posted: 2023-08-22T20:44:49.722000+00:00
Original source
Yeah, was hoping to find an easy way to do DB query based on the IG map coords to find GOs. IE `SELECT * FROM gameobject WHERE position_x BETWEEN magic_math(x1, zone) AND magic_math(x2,zone) AND position_y BETWEEN ...`
Archived author: Rymercyble • Posted: 2023-08-22T20:45:16.947000+00:00
Original source
if u knew border coords of zone u could calculate if ur position is within that border
Archived author: Kitzunu • Posted: 2023-08-22T20:45:32.643000+00:00
Original source
zones are however fictional in creature and gamobject tables