Nesting If's in Razor
Posted: Fri Oct 21, 2011 7:32 pm
Here's a macro I'm doing, trying to raise my magery. What it's supposed to do is try to meditate several times, and upon a successful attempt wait until my mana reaches 100, but for some reason sometimes after successfully meditating, it stops, waits 10 seconds then tries to meditate again
Exec: Gate Travel
Pause 1.00 sec
Wait for Target
Absolute Target
Pause 1.00 sec
If Mana <= 55
Exec: Meditation
If sys message "focus"
Pause 10.00 sec
Exec: Meditation
If Sysmessage "focus"
Exec: Meditation
Pause 10.00 sec
Exec: Meditation
If Sysmessage "focus"
Pause 10.00 sec
Exec: Meditation
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
I originally had 5 end if's with no wait for mana >=100 lines, I thought that might be the problem
Exec: Gate Travel
Pause 1.00 sec
Wait for Target
Absolute Target
Pause 1.00 sec
If Mana <= 55
Exec: Meditation
If sys message "focus"
Pause 10.00 sec
Exec: Meditation
If Sysmessage "focus"
Exec: Meditation
Pause 10.00 sec
Exec: Meditation
If Sysmessage "focus"
Pause 10.00 sec
Exec: Meditation
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
End If
Wait for Mana >=100
I originally had 5 end if's with no wait for mana >=100 lines, I thought that might be the problem