Page 1 of 1
${Spawn[]} command question
Posted: Fri Nov 26, 2004 1:29 pm
by JJ
After a few help file and board searches, I have failed to find exactly what I am looking for. In the help file under the spawn search filter page it shows:
loc <intX> <intY>
I was trying to test out the Spawn command and I am not doing something right. Basically if I have a mob spawn point, I want to target or get info on the mob at that spawn point. Here is what I was using:
among other failed attempts. It keeps targetting me. I got the mobs exact location from ${Target.X} and ${Target.Y} and he is a static NPC. Any hints, ideas, etc. would be appreciated.
Thanks,
JJ
Posted: Fri Nov 26, 2004 1:46 pm
by Chill
try ${NearestSpawn[loc -176 -726]}
Posted: Fri Nov 26, 2004 1:52 pm
by JJ
Thanks for the response. Tried it, targets me also.
Posted: Fri Nov 26, 2004 3:20 pm
by Cr4zyb4rd
Code: Select all
/echo ${NearestSpawn[loc -176 -726]}
to see what it's returning.
/target with ${Spawn} names directly is almost always a bad idea. Use IDs. What you want probably looks more like
Code: Select all
/target id ${NearestSpawn[1, npc radius 10 loc -176 -726].ID}
Posted: Fri Nov 26, 2004 3:56 pm
by JJ
On the /echo it returns my name no matter what the location is.
Edit: Also, I am not standing near that location either. I am testing it in the bazaar for now standing in the back of the bazaar and trying to target Ward Gebson at X=-126 Y=-726
Edit2: Also just tried out ${NearestSpawn[npc loc -176 -726]} as well as just spawn and it gives me the closest npc to me. Seems to ignore the loc argument.
Posted: Fri Nov 26, 2004 6:10 pm
by dont_know_at_all
Code: Select all
/target ${Spawn[loc -176 -726 radius 10]}
loc implies exactly at that location.
Got it! Thanks!
Posted: Fri Nov 26, 2004 6:42 pm
by JJ
According to ${Target.X} and ${Target.Y}, that is his exact location. But once I put in radius, it works great! Even at radius 0. So maybe a suggestion for the help file would be to add the radius argument is required as well as INT X and INT Y.
So for my static spawn I am now using:
/target ${Spawn[loc INTX INTY RADIUS 0]}
Thanks a ton DKAA!
Posted: Fri Nov 26, 2004 7:57 pm
by dont_know_at_all
It shouldn't be INT. It should be FLOAT.
Ok
Posted: Sat Nov 27, 2004 1:07 am
by JJ
Was just going off of the help file. Glad to know you can use FLOAT numbers. Lets me get even more accurate.
Thanks.
Posted: Sat Nov 27, 2004 2:48 pm
by wassup
dont_know_at_all wrote:It shouldn't be INT. It should be FLOAT.
JJ wrote:Was just going off of the help file. Glad to know you can use FLOAT numbers. Lets me get even more accurate.
Thanks.
Updated the readme and html.
Re: ${Spawn[]} command question
Posted: Sat Jan 03, 2026 1:58 am
by xyilla
Re: ${Spawn[]} command question
Posted: Sat Jan 03, 2026 2:00 am
by xyilla
Re: ${Spawn[]} command question
Posted: Sat Jan 03, 2026 2:01 am
by xyilla