Can't quit figure this out...

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Nilen2
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Nov 13, 2003 1:04 pm

Can't quit figure this out...

Post by Nilen2 » Thu Nov 27, 2003 4:37 pm

Code: Select all

:Begin1
/target Ganbar
/echo GotHere
/if "$target(Name)"~~"Ganbar" /call DwarfUp1
/goto :Begin1
Alright all I want to do in this code is target Ganbar Dundam if she is up, then it echos GotHere just for debugging issues, Then I want it to call sub routine DwarfUp1 if she is up, if not then begin loop again until she has spawned.

I've done this before with A Mechanic and got it to work, I"m using MQ2 if that matters (Maybe $target got changed some I dunno)

I've tried this with quotes and without, with == and ~~, with Variables instead of Ganbar and with (Name,clean_ and without and nothing. Just kept looping over and over through the echo. Maybe I'm just making a stupid little mistake that i can't even see, anyone able to help me out here?

Nilen2
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Nov 13, 2003 1:04 pm

Post by Nilen2 » Thu Nov 27, 2003 5:58 pm

Code: Select all

:Begin1
/target Ganbar
/echo GotHere
/if "$target(name,clean)"~~"Ganbar" /call DwarfUp1
/goto :Begin1
I tried this before but wouldn't work, but seems to work now after many trial and error guessing try to get it to work, pretty sure the (Name,Clean) couldn't be capitalized and had to be lowercase. Testing it now in EQ with /echo commands and $target(Name,Clean) only echoes that, while $target(name,clean) displays the targets name.

So I just forgot it should be all lowercase there :roll: . SOrry about the double post to.