Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] Is there a way to convert the GO x,y,z coords to zone X/Y?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
08-22-2023, 08:14 PM
#1
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?
rektbyfaith
08-22-2023, 08:14 PM #1

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?

rektbyfaith
Administrator
0
08-22-2023, 08:16 PM
#2
Archived author: Kitzunu • Posted: 2023-08-22T20:16:02.883000+00:00
Original source

zones dont exist
rektbyfaith
08-22-2023, 08:16 PM #2

Archived author: Kitzunu • Posted: 2023-08-22T20:16:02.883000+00:00
Original source

zones dont exist

rektbyfaith
Administrator
0
08-22-2023, 08:25 PM
#3
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
rektbyfaith
08-22-2023, 08:25 PM #3

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

rektbyfaith
Administrator
0
08-22-2023, 08:34 PM
#4
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.
rektbyfaith
08-22-2023, 08:34 PM #4

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.

rektbyfaith
Administrator
0
08-22-2023, 08:35 PM
#5
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.
rektbyfaith
08-22-2023, 08:35 PM #5

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.

rektbyfaith
Administrator
0
08-22-2023, 08:37 PM
#6
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`
rektbyfaith
08-22-2023, 08:37 PM #6

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`

rektbyfaith
Administrator
0
08-22-2023, 08:38 PM
#7
Archived author: Kitzunu • Posted: 2023-08-22T20:38:40.688000+00:00
Original source

zone is area, confusing? yes
rektbyfaith
08-22-2023, 08:38 PM #7

Archived author: Kitzunu • Posted: 2023-08-22T20:38:40.688000+00:00
Original source

zone is area, confusing? yes

rektbyfaith
Administrator
0
08-22-2023, 08:44 PM
#8
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 ...`
rektbyfaith
08-22-2023, 08:44 PM #8

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

rektbyfaith
Administrator
0
08-22-2023, 08:45 PM
#9
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
rektbyfaith
08-22-2023, 08:45 PM #9

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

rektbyfaith
Administrator
0
08-22-2023, 08:45 PM
#10
Archived author: Kitzunu • Posted: 2023-08-22T20:45:32.643000+00:00
Original source

zones are however fictional in creature and gamobject tables
rektbyfaith
08-22-2023, 08:45 PM #10

Archived author: Kitzunu • Posted: 2023-08-22T20:45:32.643000+00:00
Original source

zones are however fictional in creature and gamobject tables

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)