Simple Spawnchecker with alarm

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

battaile
Contributing Member
Contributing Member
Posts: 40
Joined: Tue Dec 09, 2003 10:55 am

Post by battaile » Wed Jan 07, 2004 3:15 pm

Set a string equal to @spawn_name then add "'s corpse".

That might be easier.
Hehe, thats what I was trying to do. :(

why not just check to see if the name includes "@spawn_name" and "corpse"...
I'm not sure how to get "the name". I've only used searchspawn to return a number, can it also return a string?

battaile
Contributing Member
Contributing Member
Posts: 40
Joined: Tue Dec 09, 2003 10:55 am

Double Post!!

Post by battaile » Wed Jan 07, 2004 3:28 pm

asdf

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Jan 07, 2004 4:06 pm

Make sure this line:

Code: Select all

else /if n $searchspawn(@corpseName)==0 
Looks like this instead: (Always surround the name in $searchspawn with quotes)

Code: Select all

else /if n $searchspawn("@corpseName")==0 
You can do alot of things with $searchspawn to limit your searches as well. For instance you could $searchspawn(corpse,"Mob Name Whatever") and it should only return corpse id's of mobs with a similar name to the one you are looking for.


To display actual names of mobs via the ID that gets returned from $searchspawn just do this (Where id# is the number that is returned from $searchspawn):

$spawn(id#,name) (This leaves on the _00 etc on the end of names)
$spawn(id#,name,clean) (This is the name as you see it above a mobs head)