Mage macro?

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

AEbard
a lesser mummy
a lesser mummy
Posts: 43
Joined: Fri Jan 30, 2004 10:53 am

Mage macro?

Post by AEbard » Tue Oct 05, 2004 1:56 pm

Anyone got a macro that assists tank, sends in pet, and nukes?

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Tue Oct 05, 2004 2:04 pm

<3 advbot
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Tue Oct 05, 2004 2:43 pm

working on one will post later today after i fix one issue I am having with it.

AEbard
a lesser mummy
a lesser mummy
Posts: 43
Joined: Fri Jan 30, 2004 10:53 am

Post by AEbard » Fri Oct 08, 2004 8:39 am

so where is it?

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Fri Oct 08, 2004 10:05 am

Code: Select all

|Usage  /macro mage <Tank> <Nuke Spell> <Nuke Percent>
|By Jimjohnson
|Assist Tank Nukes with set spell at X percent
|Backs pet off at 15 % then resends at 6 % to avoid most enraged mobs

#turbo 
#Include spell_routines.inc 

 
#Chat #tell 

Sub Main 

/declare Tank string outer
/declare Nuke string outer
/declare NukePercent int outer

/varset Tank ${Param0} 
/varset Nuke ${Param1}
/varset NukePercent ${Param2}


:MainLoop 
	/call GetTarget 
	/if (${Target.Type.Equal["NPC"]} && ${Target.Distance}<150) { 
		/call Pet
		/call Nuke 
		/call Petoff
		/call Nuke2
		/call Pet
		/call Nuke3
		/doevents Chat
  } 
/goto :MainLoop 

/endmacro



Sub GetTarget
/assist ${Tank}

/return



Sub Pet
/pet attack 
  
/return 

Sub Petoff
/pet back off
/pet hold



Sub Nuke 
:nuke1 
	/call GetTarget
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}<${NukePercent} && ${Target.Distance}<150) && ${Me.PctMana}>5) { 
	/if (${Me.SpellReady["${Nuke"]}) /call cast "${Nuke}" gem8 nodismount
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}>15) /doevents Chat
	/goto :nuke1
  } 
  
/return 



Sub Nuke2
:nuke2 
	/call GetTarget
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}<${NukePercent} && ${Target.Distance}<150) && ${Me.PctMana}>5) { 
	/if (${Me.SpellReady["${Nuke"]}) /call cast "${Nuke}" gem8 nodismount
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}>6) /doevents Chat
	/goto :nuke2
  } 
  
/return


Sub Nuke3
:nuke3 
	/call GetTarget
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}<${NukePercent} && ${Target.Distance}<150) && ${Me.PctMana}>5) { 
	/if (${Me.SpellReady["${Nuke"]}) /call cast "${Nuke}" gem8 nodismount
	/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}>0) /doevents Chat
	/goto :nuke3
  } 
  
/return


Sub Event_Chat(string ChatType,string Sender,string ChatText) 
	/if (${ChatText.Equal["rod"]}) { 
		/target ${Sender}
		/call cast "Rod of Mystical Transvergance"  gem5 nodismount
		}

/return
Had not fixed the issue so didnt post what i wanted to add in bussy last few days could show little more gratitude when asking for something dickweed

AEbard
a lesser mummy
a lesser mummy
Posts: 43
Joined: Fri Jan 30, 2004 10:53 am

Post by AEbard » Fri Oct 08, 2004 12:35 pm

thanks...hows that?

Lum
a lesser mummy
a lesser mummy
Posts: 68
Joined: Thu Sep 16, 2004 10:12 am

Post by Lum » Fri Oct 08, 2004 3:53 pm

Code: Select all

/if (${Me.SpellReady["${Nuke"]}) /call cast "${Nuke}" gem8 nodismount
Why do you have /cast spell name as well as the gem? I thought the point of doing /cast "name" was to not have to have it memmed ina certain spot :P

edit: nevermind, Ms. Newb didnt read through the inc file before :P

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

Post by TheAFKBard » Fri Oct 08, 2004 4:07 pm

/call cast will mem a spell into a given slot if it's not otherwise memmed, or cast it by name if it is. It's a function of spellroutines.inc

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Sat Oct 09, 2004 5:21 pm

did that work for you? didnt test so dont know how well it works as it wasnt the one i wanted to post