brokeback warrior v1.1

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

Moderator: MacroQuest Developers

.null
decaying skeleton
decaying skeleton
Posts: 3
Joined: Wed Jul 26, 2006 9:26 pm

brokeback warrior v1.1

Post by .null » Thu Aug 03, 2006 7:52 pm

hi this is my warriors macro
this is not a warrior tank
this is a warrior dps
note that taunt is commented out

/mac warrior Tanksname <<<<< name needs capital at beginning
~ Current Version 1.1 ~
______________________________________
Version 1.1 |
~added defensive |
~fixed some strange targetting problems |
~added some variables |
______________________________________|

Code: Select all

|
| BrokeBack Warrior Version 1.1
| Run this file by typing /mac warrior Mainassist 


#turbo 40

Sub Main
/declare gettarget bool outer 1
/declare targetdead bool outer 1
/declare targetid int outer 
/declare mainassist string outer
/varset mainassist ${Param0}
/echo who will answer the cries
/if (${Defined[Param0]}) {
/echo My main assist is set to ${mainassist}
} else {
/echo This Macro needs a Main assist to run ... try /mac warrior Tanksname .... case counts
/end
}
/squelch /assist off
:warriorloop
/doevents
/if (${Me.AbilityReady[Forage]}) {
	/squelch /stand
	/doability Forage	
	/delay ${Math.Rand[3+1]}s
	/autoinventory
}

/if (${gettarget}) {
/call gettarg
}

/if (${targetid}==${Target.ID}) {
/call killtarg
}
/goto :warriorloop

Sub gettarg
/echo Attempting to get a Target
:getloop
/doevents
/delay ${Math.Rand[2+1]}s
/squelch /assist ${mainassist}
/if (${Target.Type.Equal["NPC"]} && ${Target.Distance}<90 && ${Target.PctHPs}<98) {
/varset targetid ${Target.ID}
/echo My target is now ${Target.CleanName}
/varset gettarget 0
/varset targetdead 0 
/return
} else { 
/goto :getloop
}

Sub killtarg
:killloop
/doevents
/if (${Me.PctHPs}<30 && ${Me.CombatAbilityReady["Defensive Discipline"]}) {
/doability "Defensive Discipline"
}
/if (${Target.Type.Equal["NPC"]}) {
/stick -12 behind
/attack on
/squelch /doability "Kick"
|/squelch /doability "Taunt"
/goto :killloop
} else {
/varset targetdead 1
/varset gettarget 1
/attack off
/stick off
}
/return
Last edited by .null on Mon Aug 07, 2006 8:08 pm, edited 1 time in total.

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

Post by aChallenged1 » Thu Aug 03, 2006 10:26 pm

When will people learn to use the CODE brackets when posting code?
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!


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

Re: brokeback warrior v1.1

Post by xyilla » Sat Jan 10, 2026 9:34 am