Simple Spell Cap macro

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

Moderator: MacroQuest Developers

osirous
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 18, 2010 5:32 pm

Simple Spell Cap macro

Post by osirous » Tue Apr 24, 2012 5:11 am

I realize that there are other macros already that do this but with the addition by sony to not have to train at a class trainer you now can specialize in a skill you dont want to by accident. I made this really fast when plvling some new toons and thought I would share.

Updated 5/20/2013

Code: Select all

|===========================================================|
| Spell Skill Specialization by Osirous
|  Updated 5/20/2013						
|															
|   Type /mac s3 to run.									
|															
|	The purpose of this macro is to cap the spell skill		
|	that you want to have your specialization in before		
|	you run another spell capping mac.						
|															
|	The only reason this is necessary is because you no		
|	longer have to go to your class trainer to train		
|	skills, so if you do run another mac then you will		
|	end up causing your specialization to be in whatever	
|	the top casting skill is for the class set in			
|	that macro.												
|															
|	Mem the lowest lvl spell with the skill you want to		
|	max. Mem it in gem 1 and start the mac.					
|													
|===========================================================|

Sub Main

:mainloop

/if (${Me.PctHPs}<10) {
	/goto :Heal 
	} else {
	/goto :continue1
	}
:Heal
   /if (!${Me.Sitting} && !${Me.Mount.ID}) /sit
   /delay 1s
   /if (${Me.PctHPs}<95) {
   /delay ${Math.Rand[5]}s
   /goto :Heal
   } else {
	/goto :continue1
	}
:continue1  	  
	/if (${Me.PctMana}<10) { 
	/goto :Med
	} else {
	/goto :continue2
	}
:Med
   /if (${Me.Standing} && !${Me.Mount.ID}) /sit
   /delay 1s
   /if (${Me.PctMana}<95) { 
   /delay ${Math.Rand[5]}s
	/goto :Med
	} else {
	/goto :continue2
	}
:continue2	
	/target myself
:wait
   /if (!${Cast.Ready[1]}) {
   /delay 1s
   /goto :wait
   }
	/cast 1

	/goto :mainloop
/return
Attachments
s3.mac
(1.56 KiB) Downloaded 133 times

osirous
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 18, 2010 5:32 pm

Re: Simple Spell Cap macro

Post by osirous » Mon May 20, 2013 8:06 pm

updated