Cursor.Find help

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

kabl2k
a hill giant
a hill giant
Posts: 168
Joined: Fri Feb 20, 2004 6:25 pm

Cursor.Find help

Post by kabl2k » Wed Jul 14, 2004 7:35 am

can anyone tell me what the proper syntax for cursor.name is ive tryed a bunch of stuff...

Code: Select all

/if (${Cursor.Name.Equal["Ethereal Parchment"]}) {
         /mqlog Destroying Ethereal Parchments.
	 /echo Destroying Ethereal Parchments.
	 /destroy
	 /delay 1s
}
ive tryed with and without quotes and ive also tryed Cursor.Name.Find but i cant get either of them to work can any shed some light on this for me?

thanx in advance.

dman
a hill giant
a hill giant
Posts: 181
Joined: Fri Dec 05, 2003 12:54 pm

Post by dman » Wed Jul 14, 2004 7:50 am

I would expect that syntax to work without the quotes, but you may be doing the test before anything is actually on the cursor due to lag reasons. If you don't have it in the rest of your code you may want to put a small loop that waits for the cursor to have something on it before you do any tests on it. ie

Code: Select all

:cursorloop
/delay 5
/if (!${Cursor.ID} /goto :cursorloop