Bandages target whenever it falls below 69%, automatically replenishes bandages and recasts DS. Perfect for PLing your alts, especially now that mages aren't capped at 100 Bind Wound. :)
Thanks to TheWarder for his bw.mac, which served as the foundation. I've also used the SpellCast.inc module, any version should work, easy enough to find (so many macros use it, and I'm too lazy to dig up a link
Issues:
If you're not a mage, it's gonna act up and crash as soon as you're below 20 bandages, if not sooner. Comment the /call cast lines to stop the crashes. If somebody else wants to modify this to work with Anizok's Gauze Press, or other similar devices, go for it.
It's hardcoded to Shield of Lava. I haven't figured out how to pass the buff used to SpellCast.inc, I'll do that later (or not, as I've mentioned, I'm lazy). You can just change the name of the DS in the two places it appears.
When replenishing bandages, it won't bandage the target, even if it has bandages. I've tried to minimize how often this happens by replenishing before it runs out but... Don't overdo your pulls! You can modify how many bandages it replenishes to easily enough.
BW range trick needs testing and tweaking, I haven't had it kick in too much yet.
*EDIT* Sorry for the lack of tabs, for some reason the forum parsed out all the white space...
*EDIT* 16/10/06 Fixed the toofar sub, it seems to be working now. Also changed the post to use the appropriate command.
Code: Select all
|MageBW.mac
|
|Written by Kay7
|
|Core based on bw.mac by TheWarden
|
|This macro automatically binds your target's wounds as needed.
|Intended for mages, makes PLing with a mage a lot easier.
|Requirements: the Summon Bandages spell, or a LOT of bandages.
|If used by a non-mage, it will crash out when attempting to summon bandages.
|
|Automatically summons bandages when you run out
|Will summon more bandages until over 20 bandages while the target is over 70%
|Will recast damage shield when it wears off.
|Provides feedback to the target.
#Include Spellcast.inc
#Event player "#*#You must target a player to bandage.#*#"
#Event bandaid "#*#You can't bandage without bandages, go buy some.#*#"
#Event toofar "#*#You must be closer to bandage #*#"
#Event lostds "#*#Your Shield of Lava spell has worn off of #2#."
Sub Main
/echo Starting Bandage
:Loop
/if (${Target.PctHPs}<69) {
/if (${Me.AbilityReady[Bind Wound]}) {
/do "Bind Wound"
}
}
/if (${Target.PctHPs}>71) {
/if (${FindItemCount["Bandages"]}<20) {
/tt Stocking up on bandaids
/call cast "Summon Bandages"
/autoinventory
}
}
/doevents
/goto :Loop
/return
Sub Event_bandaid
/echo No bandages! Ending Macro.
/tt Out of band-aids! Making more...
/call cast "Summon Bandages"
/autoinventory
/sit
/return
Sub Event_player
/echo No target
/end
/return
Sub Event_toofar
/tt Come closer
:rangeloop
/doevents
/if (${Target.Distance}>10) /goto :rangeloop
/tt That's close enough
/return
Sub Event_lostds(string SpellText, string SpellName, string TargetName)
/tt Redoing Shield of Lava
/call cast "Shield of Lava"
/sit
/return


