Mage auto-bandage macro

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

Kay7
orc pawn
orc pawn
Posts: 17
Joined: Sat Sep 18, 2004 9:54 pm

Mage auto-bandage macro

Post by Kay7 » Mon Oct 16, 2006 12:34 am

This is my first macro that I've felt worth posting, so please bear with it.

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 :P).

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
Last edited by Kay7 on Mon Oct 16, 2006 5:40 pm, edited 2 times in total.

ascii38
a grimling bloodguard
a grimling bloodguard
Posts: 506
Joined: Sat Jul 17, 2004 8:06 pm

Post by ascii38 » Mon Oct 16, 2006 3:53 am

Don't use [quote] and [/quote] tags. Use [code] and [/code] when you are posting scripts. It will retain whitespace.

FrankJScott
naggy
naggy
Posts: 2128
Joined: Sun Feb 19, 2023 7:11 am

Handy Suggestions For Deciding On Automated Trading

Post by FrankJScott » Wed Mar 08, 2023 4:41 am

In reply to the person talking about program that automatically buys and sells stocks, cfd auto trading, best crypto platform for day trading, day trade crypto robinhood, best auto stock trader, metatrader 4 cryptocurrency, I highly suggest this linked here for crypto trading tips or autotrading forex, swap crypto, day trading chat rooms free, elite traders reddit, rakuten trade forum, best crypto platform, alongside all this read full article on crypto trading details and don't forget trading for a living forum, coinbase pro automation, best crypto trading app reddit, best app to trade in cryptocurrency, penny stock chat rooms free, zulutrade forum, on top of this view website for forex trading advice which is as good as invest in cryptocurrency app, automated stock trading software free, best crypto to buy on robinhood, best crypto buying platform, best sites to buy cryptocurrency, best cryptocurrency platform, . Also, have a look at this i loved this on automated trading info and don't forget best coin to trade today, coffee traders forum, blockfi trade fees, profit forex robot, ibkr auto invest, best day trade chat rooms, not to mention this find out more for automated trading forum as well as top automated trading systems, amibroker automated trading, best crypto on robinhood, futures binance, cryptocurrency trading app, binary auto trading software, not to mention funny post on forex trading site which is also worth a look and don't forget ig automated trading, automated crypto trading reddit, forex auto trading signals, best platform for buying cryptocurrency, best platform for buying crypto, automated forex trading software for beginners, also. I also recommend this enquiry for crypto trading link alongside all binance us margin trading, tradestation algo trading, top crypto platforms, automate buying and selling stocks, profitable automated trading system, best platform to day trade crypto, and don't forget this linked here on forex trading site alongside all robinhood day trade crypto, forex crypto, crypto margin trading, wunderbit binance futures, best automated futures trading system, best platform to buy and sell cryptocurrency, alongside all helpful site for crypto trading url on top of forex trading discussion forum, best brokerage for crypto, crypto forex trading platform, free auto trading software, webull crypto reddit, car trade forum, which is also great. Finally, have a look at this i loved this on forex trading link with best crypto site for day trading, binance futures trading, automated trading software for stocks, binance buy crypto fees, reputable crypto exchanges, binance trading platform, for good measure. Check more @ Good Advice For Choosing Download Microsoft Programs Free 89a61d1

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mage auto-bandage macro

Post by xyilla » Fri Aug 01, 2025 6:17 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mage auto-bandage macro

Post by xyilla » Fri Aug 01, 2025 6:19 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: Mage auto-bandage macro

Post by xyilla » Fri Aug 01, 2025 6:20 pm