Post your completed (working) macros here. Only for macros using MQ2Data syntax!
Moderator: MacroQuest Developers
-
TheWarden
- a hill giant

- Posts: 253
- Joined: Sat Dec 27, 2003 3:51 pm
- Location: In your bushes...
Post
by TheWarden » Mon Jun 21, 2004 5:53 pm
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
Last edited by
TheWarden on Thu Aug 26, 2004 5:52 pm, edited 3 times in total.
[img]http://img.photobucket.com/albums/v629/Deevious/SigPics/KristinKreukSig01.jpg[/img]
-
BlackTooth
- a lesser mummy

- Posts: 50
- Joined: Mon Dec 08, 2003 10:32 am
Post
by BlackTooth » Mon Jun 21, 2004 10:47 pm
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
-
SukMage
- a ghoul

- Posts: 88
- Joined: Fri Jun 04, 2004 5:08 pm
Post
by SukMage » Mon Jun 21, 2004 11:19 pm
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!
-
Ketamine
- orc pawn

- Posts: 18
- Joined: Thu Feb 26, 2004 4:12 pm
Post
by Ketamine » Thu Aug 26, 2004 11:13 am
I'm getting a 'Failed to parse /if condition '(51<69)', non-numeric encountered' error...
-
Ketamine
- orc pawn

- Posts: 18
- Joined: Thu Feb 26, 2004 4:12 pm
Post
by Ketamine » Thu Aug 26, 2004 11:29 am
Fixed it. Changed "/if (${Target.PctHPs}<69) {" to "/if (${Target.PctHPs}<=69) {"

-
TheWarden
- a hill giant

- Posts: 253
- Joined: Sat Dec 27, 2003 3:51 pm
- Location: In your bushes...
Post
by TheWarden » Thu Aug 26, 2004 5:53 pm
I fixed it(it didn't have the < symbol)
[img]http://img.photobucket.com/albums/v629/Deevious/SigPics/KristinKreukSig01.jpg[/img]
-
digital_hex
- decaying skeleton

- Posts: 3
- Joined: Mon Aug 30, 2004 4:34 pm
Post
by digital_hex » Mon Aug 30, 2004 4:42 pm
Works perfectly, thanks for this macro.
-
KentyMac
- a lesser mummy

- Posts: 44
- Joined: Sat Sep 11, 2004 1:28 am
- Location: Auburn, AL
-
Contact:
Post
by KentyMac » Fri Sep 17, 2004 4:09 pm
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!
KentyMac
-
Wite
- orc pawn

- Posts: 23
- Joined: Tue Mar 16, 2004 6:49 pm
Post
by Wite » Thu Oct 28, 2004 3:51 am
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.
-
DryGnome
- orc pawn

- Posts: 25
- Joined: Tue Sep 14, 2004 4:45 pm
Post
by DryGnome » Sun Nov 07, 2004 11:56 am
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...
-
DryGnome
- orc pawn

- Posts: 25
- Joined: Tue Sep 14, 2004 4:45 pm
Post
by DryGnome » Sun Nov 07, 2004 12:13 pm
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