Page 1 of 1
Request: notid functionality
Posted: Fri Sep 26, 2003 1:23 pm
by boredom
I'm assuming most people know notid does not work in /who, but that is not what I am here to ask. Currently /target works with notid, but only one id can be specified. I would like to be able to do 5-10 notid arguements.
Code: Select all
/target npc notid 409 notid 555 orc
Also, would be nice to add this (and the basic notid) to /alert
/Bored
P.S. Thanks for adding $alert(#,id), but I was an idiot for requesting it before testing if notid worked the way I wanted it to.
Posted: Sat Sep 27, 2003 9:36 am
by Cursor
I was looking to do the same thing and ran into the same issues. I just add the unique name to an alert list instead (small_bat_00) and use noalert # in my target and it works well. Here's a calming function I use before pulling. One thing to note is that noalert # does not work if the alert is blank so I add something to it before calling this. I include spellcast.mac also.
Code: Select all
sub calmStuff
:lookAgain
/press ESC
/target noalert 5 range 46 50 radius 150
/if n $target(id)==0 {
/echo all set pulling...
/return
}
/echo got one.. $target(name)
[b]/alert add 5 $target(name)[/b]
/face
/delay 1s
:recastCalm
/echo casting..
/call cast "Calm"
/echo done casting.. $return
/delay 1
/if n $return>1 /goto :recastCalm
/if n $return==1 {
/echo invalid spell..
/return
}
/echo looking again..
/goto :lookAgain
/return
Posted: Sat Sep 27, 2003 12:38 pm
by boredom
This doesn't help unless I can add ID's to /alert. I'm trying to build an agro list for my character, and may have many mobs with the same name on me.
/Bored
Posted: Sat Sep 27, 2003 9:40 pm
by Cursor
It will work because $target(name) puts a number on each spawn making the name unique. $target(name,clean) gives you the same name for each.
$target(name) == a_small_bat_00
$target(name) == a_small_bat_01
$target(name,clean) == a small bat
$target(name,clean) == a small bat