Code: Select all
| Canni.mac
| Autocanni and heal for a 65 with Q and C4
| Usage: /macro canni.mac
| By MoonRaver
#include SpellCast.mac
Sub Main
:loopstart
| If your hp are less than 35% start a heal first.
/newif ( ${Me.PctHPs}<35 ) /call CastHeal
| If your mana is more than 5%, and hp are between 25 and 50%, heal.
/newif ( ${Me.PctMana}>5 && ${Me.PctHPs}>25 && ${Me.PctHPs}<50 ) /call CastHeal
| If hp are more than 40% and mana is under 90%, canni.
/newif ( ${Me.PctHPs}>40 && ${Me.PctMana}<90 ) /call CastCanni
| If your done canni'ing stop the macro.
/newif ( ${Me.PctMana}>90 ) /call AllDone
/doevents
/delay 1
/goto :loopstart
/return
Sub CastCanni
:tryagain
/delay 1
/newif (!${Me.SpellReady[Cannibalize IV]}) /goto :tryagain
/sit off
/call Cast "Cannibalize IV"
/if ( ${Macro.Return.Equal[CAST_RESTART]} ) /goto :tryagain
/if ( ${Macro.Return.Equal[CAST_SUCCESS]} ) /goto :success
/call ErrorTrap
:success
/sit on
/delay 1
/return
Sub CastHeal
:tryagain
/delay 1
/newif (!${Me.SpellReady[Quiescence]}) /goto :tryagain
/sit off
/target myself
/call Cast "Quiescence"
/if ( ${Macro.Return.Equal[CAST_RESTART]} ) /goto :tryagain
/if ( ${Macro.Return.Equal[CAST_SUCCESS]} ) /goto :success
/call ErrorTrap
:success
/delay 1
/sit on
/delay 90
/return
Sub ErrorTrap
/echo Something went wrong with casting. Killing macro now.
/endmacro
/return
Sub AllDone
/delay 1
/sit off
/echo Cannidance done.
/endmacro
/return
exactly as is...
and i have the updated spellcast include that works with the new system. Here's the deal, best I can make it work, it looks like it runs, but does nothing...
Playing with it, I can make it say it doesn't have integers... and I can't find a good how to use the new system with the different parts of the structures. I know this isn't a big macro, but it's the primary one I use, and if i can get this one working, my other more intricate ones can be fixed. Basically, I can't find a good source of info on how to correctly use the new system. Any help is appreciated.
Edited with new rendition




