BoxTeam macro

Xeniaz

MQ2 Guru
Joined
Dec 7, 2006
Messages
424
Reaction score
2
Points
18
This macro is what I used when I am boxing multiple characters. I've provided some examples to get you started, but I think most of it is fairly self explanatory. Here's the code. I've also attached the macro to this post.
Code:
|  ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
| ** This macro was created by Xeniaz of MMOBUGS.com and is not to be redistributed
| ** Without my permission.
| ** The problem with starting macros in macros is that the macro called will have its
| ** First line skipped. To fix this, look for Sub Main in the called macro and then
| ** Directly under that, add the following line.
| ** /echo This line will be skipped by mac.mac
| ** You will have to create your own custom if statement to start your macro.
| ** Use the examples below to base yours off of.
| ** The purpose of this macro is to call macros for each person on Box Chat
| ** Without having to manually send each one a custom command.
| ** Call it like this /bct ChannelName //mac mac MainAssist AssistPct
| ** Or to everyone on BC /bca //mac mac MainAssist AssistPct
| ** Note, that both of the above lines will result in the macro being started
| ** On all of the toons in the appropriate channel except for yourself.
| **
|  ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
Sub Main
/echo If this macro doesn't start yours properly, read the comments in the mac.mac file.
/bc MainAssist is now set to ${Param0}. Activating Macro!
/declare MainAssist string outer ${Param0}
/declare AssistPct int outer ${Param1}
/declare HealPct int outer ${Param2}

/if (!${Param0.Length}) {
	/declare MainAssist string outer PreferedMA
	/echo First parameter is the name of the main assist, using default tank : ${MainAssist}.
}
/if (!${Param1.Length}) {
	/declare AssistPct int outer 98
	/echo Second parameter is the percentage to assist at, using default pct : ${AssistPct}.
}
/if (!${Param2.Length}) {
	/declare HealPct int outer 70
	/echo Third parameter is the heal pct, using default pct: ${HealPct}
}
/declare MACRO string outer

| Melee
/varset MACRO Assist ${MainAssist} ${AssistPct}
| The above line will be blanked out when we reach caster section. This is for melee characters.
/if (${Me.CleanName.Equal[Melee1]} ) {
	/delay 2
	/macro ${MACRO}
}
/if (${Me.CleanName.Equal[Melee2]} ) {
	/delay 2
	/macro ${MACRO}
}

| Casters
/varset MACRO
/if (${Me.CleanName.Equal[Healer1]} ) {
	/varset MACRO afcleric ${HealPct} "Devout Light Rk. II"
	/target ${MainAssist}
	/delay 2
	/macro ${MACRO}
}
/if (${Me.CleanName.Equal[Shaman1]} ) {
	/target ${MainAssist}
	/varset MACRO shambot ${MainAssist}
	/macro ${MACRO}
}
/if (${Me.CleanName.Equal[Wizard1]} ) {
	/target ${MainAssist}
	/varset MACRO wizzy
	/macro ${MACRO}
}
/echo Action Performed, Ending now!
/return
 

Attachments