Page 1 of 5

Simple magebot (any class with pet) macro

Posted: Sun Feb 13, 2005 4:06 am
by EasyModer
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!

Posted: Sun Feb 13, 2005 5:42 am
by Anger.Cola
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.

Posted: Sun Feb 13, 2005 6:53 am
by aChallenged1
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.

Posted: Sun Feb 13, 2005 9:29 am
by Anger.Cola
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.

Posted: Sun Feb 13, 2005 10:39 am
by aChallenged1
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.

Posted: Sun Feb 13, 2005 3:06 pm
by EasyModer
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.

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:07 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:08 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:09 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:10 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:12 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:13 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:14 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:15 pm
by xyilla

Re: Simple magebot (any class with pet) macro

Posted: Thu Apr 10, 2025 12:16 pm
by xyilla