I just don't know

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

Moderator: MacroQuest Developers

Still_a_newb
orc pawn
orc pawn
Posts: 27
Joined: Sun Apr 25, 2004 9:36 pm

I just don't know

Post by Still_a_newb » Fri May 14, 2004 10:23 pm

This event to identify when the spell Malosinia is resisted to recast, is just not matching...

Code: Select all

#Event maloresist "#*#Your target resisted the Malosinia spell.#*#"
With...

Code: Select all

Sub Event_maloresist
  /varset MaloCast 0
  /call cast "Malosinia"
  /echo Malosinia resisted, trying again
/return

Where do I flaw?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Fri May 14, 2004 10:28 pm

nm... show your whole macro

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Recursion

Post by Chill » Fri May 14, 2004 10:56 pm

This is an awful lot like my slow macro, you could try it with recursion.

Assuming youre using SpellCast.inc, you could make use of its return values and call your malo function again from within the function if it resists:

Code: Select all

Sub Malo
  /call cast "Malosinia"
  /if (${Macro.Return.Equal["CAST_SUCCESS"]}) { 
    /echo ${Target.Name} maloed. 
    /return MALOED 
  } else /if (${Macro.Return.Equal["CAST_RESISTED"]}) {
    /delay 2s
    /call Malo
  } else 
    /echo check malo logic
  } 
/return MALOED
Get rid of the event, event sub, and add the above sub. Call it from your main macro in place of the first malo cast.

Still_a_newb
orc pawn
orc pawn
Posts: 27
Joined: Sun Apr 25, 2004 9:36 pm

Post by Still_a_newb » Fri May 14, 2004 11:01 pm

Thanks A lot Chill