I wish I had done it long ago, but I never added an event handler to stop a macro at a particular skill, or simply stop upon gaining a skillup. I often have a limited supply of high trivial items and don't want to keep going until I run out, rather I stop when I doubt I'll get another increase with the remaining supplies and keep them till I have more stockpiled. I just put in a delay and watch for an increase and stop the macro manually. So, would just adding:
#event COMBINE_Skillup "You have become better at"
at the head. and
Sub Event_COMBINE_Skillup
/end keep keys
to my Sub's work? Here's a simple example:
| - mephit.mac -
|
#event COMBINE_Skillup "You have become better at"
Sub Main
:MakeStuff
/sendkey down ctrl
/finditem "mephit meat"
/if "$cursor()"=="NULL" /call Exit
/click left enviro 0
/finditem "dressing"
/if "$cursor()"=="NULL" /call Exit
/click left enviro 1
/finditem "loaf of breaet"
/if "$cursor()"=="NULL" /call Exit
/click left enviro 2
/autoinventory
/delay 7
/autoinventory
/goto :MakeStuff
/return
Sub Event_COMBINE_Skillup
/sendkey up ctrl
/end keep keys
Sub Exit
/sendkey up ctrl
/end keep keys

