I've tried to create several event triggers to get the macro to end, but none of them seem to fire. Can anyone help me get this working?
Code: Select all
|Simple imbue macro
#event alldone "You are missing some required components."
#event alldone "You are missing#*#"
#event alldone "Your spell is interrupted."
#Include SpellCast.inc
Sub Main
/declare i int outer 0
/declare SpellName string outer Mass Enchant Gold
/if (${Defined[Param0]}) {
/varset SpellName ${Param0}
} else {
/for i 9 downto 1
/if (${Me.Gem[${i}].Name.Find[Mass]} || ${Me.Gem[${i}].Name.Find[Enchant]} || ${Me.Gem[${i}].Name.Find[Imbue]} || ${Me.Gem[${i}].Name.Find[Mana]}) /varset SpellName ${Me.Gem[${i}].Name}
/next i
}
/echo Chain casting ${SpellName}
:Loop
/if (${Cursor.ID}) {
/autoinventory
/goto :Loop
} else {
/if (${Me.SpellReady[${SpellName}]}) /call cast ${SpellName}
/delay 2s
/if (${Me.CurrentMana}<${Spell[${SpellName}].Mana}) {
/if (!${Me.Mount.ID} && !${Me.Sitting}) /sit
/autoinventory
/delay 10m ${Me.PctMana}>90
}
/doevents
/goto :Loop
}
/return
Sub Event_alldone
/echo out of supplies..
/if (${Me.Mount.ID}) /dismount
/if (!${Me.Sitting}) /sit
/beep
/endmacro
/return
P.S. I added an Event section to the wiki at: http://www.macroquest2.com/wiki/index.p ... est2:Using





