Page 1 of 1

brokeback warrior v1.1

Posted: Thu Aug 03, 2006 7:52 pm
by .null
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

Posted: Thu Aug 03, 2006 10:26 pm
by aChallenged1
When will people learn to use the CODE brackets when posting code?

Re: brokeback warrior v1.1

Posted: Sat Jan 10, 2026 9:31 am
by xyilla

Re: brokeback warrior v1.1

Posted: Sat Jan 10, 2026 9:34 am
by xyilla