Page 1 of 1

bw.mac (Bind Wound)

Posted: Mon Jun 21, 2004 5:53 pm
by TheWarden
It's a macro, it binds your wounds... what else can I say?

[edit] Changed it so if target is too far away you will target yourself to check if you need bandaged.
[edit2] Left out a /return, works perfectly now.

Code: Select all

|---bw.mac 
| 
|---Written by TheWarden 
|      
|---This macro binds your wounds until you hit 70% HP 



#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 #*#"

Sub Main 
  :Loop 
     /if (${Me.Combat}) { 
         /echo In combat is NOT the best time to Bind Wounds! 
         /endmacro 
     } 
     /if (!${Target.ID}) { 
         /echo No target selected to Bind Wounds! Targeting self. 
         /target 
     } 
     /if (${Target.PctHPs}<69) { 
         /if (${Me.AbilityReady[Bind Wound]}) { 
         /delay 3 
         /do "Bind Wound" 
         } 
     /doevents 
     } 
     /if (${Target.PctHPs}>=70) { 
         /echo Target has 70%hp or more! Ending Macro. 
         /endmacro 
     } 
     /goto :Loop 
/return 

Sub Event_bandaid 
     /echo No bandages! Ending Macro. 
     /endmacro 

Sub Event_player 
     /echo You have an NPC targeted! Targeting self. 
     /target 
/return

Sub Event_toofar 
     /echo Target too far away.  Targeting self. 
     /target 
/return

kewl

Posted: Mon Jun 21, 2004 10:47 pm
by BlackTooth
oh kewl ty

I had a BW macro before MQ2 new params were introduced and fergot to remake in new format...

Gonna try this tonight... Thanks

Posted: Mon Jun 21, 2004 11:19 pm
by SukMage
Thanks:) Was just about to sniff the codes and snipets for making one out of boredom. AEing myself to practice bw on a boring camp. Works great!

Posted: Thu Aug 26, 2004 11:13 am
by Ketamine
I'm getting a 'Failed to parse /if condition '(51<69)', non-numeric encountered' error...

Posted: Thu Aug 26, 2004 11:29 am
by Ketamine
Fixed it. Changed "/if (${Target.PctHPs}<69) {" to "/if (${Target.PctHPs}<=69) {"

:D

Posted: Thu Aug 26, 2004 4:36 pm
by Night Hawk
/cheer

Posted: Thu Aug 26, 2004 5:53 pm
by TheWarden
I fixed it(it didn't have the < symbol)

Posted: Mon Aug 30, 2004 4:42 pm
by digital_hex
Works perfectly, thanks for this macro.

Posted: Fri Sep 17, 2004 4:09 pm
by KentyMac
I can't ever seem to get this macro to work. I start it and it will say:
No target selected to Bind Wounds! Targeting self.
And then it just sits there and never actually starts binding wounds.

If I'm over 70% it recognizes that and stops the macro.

Here's the code as I copied it directly from here in case something got messed up by the boards.
|---bw.mac
|
|---Written by TheWarden
|
|---This macro binds your wounds until you hit 70% HP



#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 #*#"

Sub Main
:Loop
/if (${Me.Combat}) {
/echo In combat is NOT the best time to Bind Wounds!
/endmacro
}
/if (!${Target.ID}) {
/echo No target selected to Bind Wounds! Targeting self.
/target
}
/if (${Target.PctHPs}<69) {
/if (${Me.AbilityReady[Bind Wound]}) {
/delay 3
/do "Bind Wound"
}
/doevents
}
/if (${Target.PctHPs}>=70) {
/echo Target has 70%hp or more! Ending Macro.
/endmacro
}
/goto :Loop
/return

Sub Event_bandaid
/echo No bandages! Ending Macro.
/endmacro

Sub Event_player
/echo You have an NPC targeted! Targeting self.
/target
/return

Sub Event_toofar
/echo Target too far away. Targeting self.
/target
/return
Thanks for your help! :D

KentyMac

Posted: Thu Oct 28, 2004 3:51 am
by Wite
try making bind wound a hotkey, right click in skills and set it. that fixed my prob similar to this. hope it helps if not, post more details.

Posted: Sun Nov 07, 2004 11:56 am
by DryGnome
Works fine on self but when you BW others their HP spikes to 100% for a sec or two then returns to normal but the problem is that the macro checks their HP during this spike and stops. You should probably add a delay after each BW but this would really slow the mac down...

Posted: Sun Nov 07, 2004 12:13 pm
by DryGnome
The guy slightly modded it it work but then it doesn't stop at 70% so.... But it works on others.

Code: Select all

|---bw2.mac 
| 
|---Written by TheWarden 
|    Slightly Modded by aj2k8  
|---This macro binds your wounds until you hit 70% HP 



#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 #*#" 

Sub Main 
  :Loop 
     /if (${Me.Combat}) { 
         /echo In combat is NOT the best time to Bind Wounds! 
         /endmacro 
     } 
     /if (!${Target.ID}) { 
         /echo No target selected to Bind Wounds! Targeting self. 
         /target 
     } 
         /if (${Me.AbilityReady[Bind Wound]}) { 
         /delay 3 
         /do "Bind Wound" 
     /doevents 
     } 

     /goto :Loop 
/return 

Sub Event_bandaid 
     /echo No bandages! Ending Macro. 
     /endmacro 

Sub Event_player 
     /echo You have an NPC targeted! Targeting self. 
     /target 
/return 

Sub Event_toofar 
     /echo Target too far away.  Targeting self. 
     /target 
/return