Request: notid functionality

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

Request: notid functionality

Post by boredom » Fri Sep 26, 2003 1:23 pm

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.

Cursor
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Sep 15, 2003 1:01 am

Post by Cursor » Sat Sep 27, 2003 9:36 am

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

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

Post by boredom » Sat Sep 27, 2003 12:38 pm

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

Cursor
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Sep 15, 2003 1:01 am

Post by Cursor » Sat Sep 27, 2003 9:40 pm

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