Page 1 of 1

I just don't know

Posted: Fri May 14, 2004 10:23 pm
by Still_a_newb
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?

Posted: Fri May 14, 2004 10:28 pm
by wassup
nm... show your whole macro

Recursion

Posted: Fri May 14, 2004 10:56 pm
by Chill
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.

Posted: Fri May 14, 2004 11:01 pm
by Still_a_newb
Thanks A lot Chill