Simple magebot (any class with pet) macro

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

Moderator: MacroQuest Developers

EasyModer
decaying skeleton
decaying skeleton
Posts: 7
Joined: Wed Feb 09, 2005 3:56 am

Simple magebot (any class with pet) macro

Post by EasyModer » Sun Feb 13, 2005 4:06 am

Hey, this will make your mage(or whatever) initiate combat at 99% or less. He will send in pet and cast 2 spells then sit. For me its malo and mage DoT. Next it will nuke at 38%, but stops at 20% then he will sit. This is for indoor fighting, aka, no mount check. Good for anyone who 2 boxes with a mage. Be careful of not to target anything between 95 and 99 percent health, as well as 21 to 37 percent health, or he will cast. Not the best by far, but hey gets the job done. I hope at least 1 person finds this as useful as I do. Easily tweakable to fit your needs.

Code: Select all

#chat group
| Don't think included is needed, but I could be wrong.
#include spellcast.inc

#Event incoming  "#*#incoming#*#"
#Event pethaste  "#*#pet's Burnout V spell#*#"
#Event nukeaway  "#*#nuke#*#"
#Event manaregen "Your phantasmal protection fades."
#Event damageshield "#*#DS please#*#"

Sub Main 

:loop 
/if (${Me.Casting.ID}) /goto :loop
/doevents
/goto :loop



Sub event_incoming
	/assist <insert name>
	/delay 1s
	/pet attack
	/delay 10
	/cast 1
	/delay 65
	/cast 2
	/delay 75 
	/sit
/return

Sub event_pethaste
	/cast 8
	/delay 7s
	/sit
/return

Sub event_nukeaway
	/assist <insert name>
	/delay 1s
	/cast 4
	/delay 7s
	/sit
/return

Sub event_manaregen
	/cast 7
	/delay 6s
	/sit
/return

Sub event_damageshield
	/target <insert name>
	/cast 5
	/delay 6s
	/sit
/return
edit: Better version for 2/3 boxers. Lets you directly control mage in imperfect situations. Cast DS when told to. Cast his mana regen when it wears off, and cast his pet haste. I can add his shield if needed I don't even cast it, lol. Just request. Not too shabby if you ask me. Enjoy!
Last edited by EasyModer on Sat Feb 19, 2005 1:34 am, edited 3 times in total.

Anger.Cola
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Feb 12, 2005 9:51 am

Post by Anger.Cola » Sun Feb 13, 2005 5:42 am

Would be easy to add a check to see if he has a target before casting... in your part that says

Code: Select all

/if (${Target.PctHPs}<20) /goto :loop 
add a bit:

Code: Select all

/if (${Target.PctHPs}<20 && !${Target.Equal[NULL]}) /goto :loop 
Basically if target returns null (no target) it'll fail the if statement.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Sun Feb 13, 2005 6:53 am

A working mage macro. So what if it isn't the Uber "I do it all while afk for 96hours" variety. Great first post, imo.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Anger.Cola
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Feb 12, 2005 9:51 am

Post by Anger.Cola » Sun Feb 13, 2005 9:29 am

Wasn't saying it was bad or anything... just suggesting a quick addition for something he wanted to add and viewed as a problem. I think it is pretty good as it, just wanted to help out.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Sun Feb 13, 2005 10:39 am

Wasn't implying that you were Anger. I just thought it was wonderful to see a complete and working macro posted as a first post.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

EasyModer
decaying skeleton
decaying skeleton
Posts: 7
Joined: Wed Feb 09, 2005 3:56 am

Post by EasyModer » Sun Feb 13, 2005 3:06 pm

Good tip, Anger. I will definaltey add that in with mine. Thanks for the kind replies.

edit: Anger I believe that code is redundant. If there is no target the percent is less than 20, therefore, fails the test. Course I could be wrong.

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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:07 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:08 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:09 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:10 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:12 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:13 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:14 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:15 pm


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

Re: Simple magebot (any class with pet) macro

Post by xyilla » Thu Apr 10, 2025 12:16 pm