Page 1 of 1
would it be possible to...
Posted: Sat Jul 17, 2004 3:57 pm
by CaM3Lt0Sis
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!
Posted: Sat Jul 17, 2004 3:59 pm
by Mister Peepers
I belive /who npc npcname returns x y loc and distance and direction from you.
Posted: Sat Jul 17, 2004 4:09 pm
by CaM3Lt0Sis
It only seems to return the distance and direction, but not the exact x,y,z
Posted: Sat Jul 17, 2004 4:13 pm
by Mister Peepers
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.
Posted: Sat Jul 17, 2004 4:18 pm
by CaM3Lt0Sis
I imagine that could work, I was just curious if there was a way of doing this with one simple command... that's all
Posted: Sat Jul 17, 2004 4:38 pm
by Sparr
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}
Posted: Sat Jul 17, 2004 5:16 pm
by TheUnholy
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.
Posted: Sat Jul 17, 2004 8:49 pm
by CaM3Lt0Sis
Thanks a ton, you guys never fail to figure stuff out
Posted: Sat Jul 17, 2004 9:15 pm
by Sparr
dont forget, eq locs are displayed Y,X so youll need to remember that if you print out X,Y,Z
Posted: Sat Jul 17, 2004 9:53 pm
by MacroFiend
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.