Why is this not working?

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

Banannaboy
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Apr 13, 2004 9:59 pm

Why is this not working?

Post by Banannaboy » Wed Apr 28, 2004 12:32 am

I have this in my macro

Code: Select all

  /newif (!${Me.Buff[Shield of Maelin].ID}) {
    /newif (${String[${Me.Gem[Shield of Maelin]}].Equal[NULL]}) {
      /echo Memming
      /memspell 1 "Shield of Maelin"
      /delay 10s
    }
    /echo Casting Shield of Maelin
    /cast "Shield of Maelin"
    /delay 5
    /doevents
  }
But, what am I doing wrong? If I do not have "Shield of Maelin" memmed, the code thinks I do and it trys to cast it bu then says "You do not have that spell memorized". Am I missing something?

Code: Select all

${String[${Me.Gem[Shield of Maelin]}].Equal[NULL]}
is equal to true when I type it in game, so it should then go on to

Code: Select all

      /echo Memming
      /memspell 1 "Shield of Maelin"
      /delay 10s

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 28, 2004 12:43 am

You can just do
/if (!${Me.Gem[Shield of Maelin]})

NULL is 0.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0