A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy
Moderator: MacroQuest Developers
-
CaM3Lt0Sis
- orc pawn

- Posts: 26
- Joined: Thu Jul 03, 2003 10:33 am
Post
by CaM3Lt0Sis » Sat Jul 17, 2004 3:57 pm
I'm curious if one would be able to use any command that would simply return the exact x, y, z loc of a mob. I was scouring through the manual trying to find a command to do so, but all I could find was /mapname, which merely changes how the mobs name appears on the map... which inevitably serves the purpose, but I would much prefer to be able to type a command that would return the x,y,z in my console.
any and all help is appreciated, thanks!
-
Mister Peepers
- a lesser mummy

- Posts: 46
- Joined: Mon Apr 19, 2004 8:10 pm
Post
by Mister Peepers » Sat Jul 17, 2004 3:59 pm
I belive /who npc npcname returns x y loc and distance and direction from you.
-
CaM3Lt0Sis
- orc pawn

- Posts: 26
- Joined: Thu Jul 03, 2003 10:33 am
Post
by CaM3Lt0Sis » Sat Jul 17, 2004 4:09 pm
It only seems to return the distance and direction, but not the exact x,y,z
-
Mister Peepers
- a lesser mummy

- Posts: 46
- Joined: Mon Apr 19, 2004 8:10 pm
Post
by Mister Peepers » Sat Jul 17, 2004 4:13 pm
ok, do the /w npc thing and then take the first two numbers and subtract (I think its subtract if its not then add them if the number seems off) from your loc that should give you the x and y loc. The first two numbers I belive give you distance from spawn on x plane and second number give distance from spawn on y plane.
-
CaM3Lt0Sis
- orc pawn

- Posts: 26
- Joined: Thu Jul 03, 2003 10:33 am
Post
by CaM3Lt0Sis » Sat Jul 17, 2004 4:18 pm
I imagine that could work, I was just curious if there was a way of doing this with one simple command... that's all
-
Sparr
- a hill giant

- Posts: 159
- Joined: Mon Jun 24, 2002 5:41 am
Post
by Sparr » Sat Jul 17, 2004 4:38 pm
From the manual:
Spawn
spawn Spawn[ID] Find spawn by ID
spawn Spawn[search string] Find spawn by spawn search string
access to type(s): spawn
Object used to get information on a specific spawn. Uses the same filters as those from /target, /who
Examples
/echo ${Spawn[n]}
Displays the name of the spawn with id number n
/target ${Spawn[npc radius 500 trakanon]}
Targets the npc with the name Trakanon only if within a radius of 500
spawn
Members
...
float X X coordinate
float Y Y coordinate
float Z Z coordinate
float N Y, the Northward-positive coordinate
float W X, the Westward-positive coordinate
float U Z, the Upward-positive coordinate
float S Shortcut for -Y (makes Southward positive)
float E Shortcut for -X (makes Eastward positive)
float D Shortcut for -Z (makes Downward positive)
...
so, in summary...
/echo ${Spawn[spawnidorsearchstring].X} ${Spawn[spawnidorsearchstring].Y} ${Spawn[spawnidorsearchstring].Z}
-
TheUnholy
- a hill giant

- Posts: 269
- Joined: Wed Mar 03, 2004 11:59 pm
Post
by TheUnholy » Sat Jul 17, 2004 5:16 pm
could create an alias... add this line to your macroquest.ini file under alias's
/mloc=/echo ${Target.X}, ${Target.Y}, ${Target.Z}
can change the /mloc to whatever command you want to target, I just set it to mean mob loc. The X and Y might need to be reversed depending on your set up, eq kinda reads them backwards. As you could guess you gotta have the mob targeted, and it will return the x, y, z of your target.
-
CaM3Lt0Sis
- orc pawn

- Posts: 26
- Joined: Thu Jul 03, 2003 10:33 am
Post
by CaM3Lt0Sis » Sat Jul 17, 2004 8:49 pm
Thanks a ton, you guys never fail to figure stuff out
-
Sparr
- a hill giant

- Posts: 159
- Joined: Mon Jun 24, 2002 5:41 am
Post
by Sparr » Sat Jul 17, 2004 9:15 pm
dont forget, eq locs are displayed Y,X so youll need to remember that if you print out X,Y,Z
-
MacroFiend
- a grimling bloodguard

- Posts: 662
- Joined: Mon Jul 28, 2003 2:47 am
Post
by MacroFiend » Sat Jul 17, 2004 9:53 pm
Yes ... EQ positioning is cartographic, not geometric. Someone just decided that X, Y, Z was easier (before SOE released maps) while it really is Latitude, Longitude, Altitude.