Moderator: MacroQuest Developers



Code: Select all
/assist Bob
/pause 10
/autofire onCode: Select all
|Simple Assist Macro v2.1
|Ripped from Various Macro's
|By HardOne
|Edited by Liaohowie 2009.07.28
|Edited by vsab 09/10/2012 *UNTESTED*
#event ImDead "#*#You have been slain by#*#"
#event ImDead "Returning to home point, please wait..."
#event ImDead "#*#Returning to Bind Location#*#"
Sub Main
|SYSTEM VARS - DO NOT MODIFY.
|vsab-oops I modified it
/declare maintank string outer ${Param0}
/declare attackat int outer ${Param1}
/declare attackid int outer
/declare Camp_Zone int outer ${Zone.ID}
/if (!${Param0.Length} && !${Param1.Length}) {
/echo You must start the macro including the main assist's name and the percent to attack after.
/echo i.e.:
/echo /mac assist Ubertank 90
/end
}
/echo AFK AssistTank Running. Assisting ${Param0} at ${Param1}%
/delay 2s
/squelch /target clear
/squelch /assist off
:mainloop
/if (!${SpawnCount[${maintank}]}) {
/echo Maintank Dead/Missing. Delaying 30 seconds and restarting.
/delay 30s
/goto :mainloop
}
/assist ${maintank}
/delay 1s
/if (!${Target.ID} || !${Target.Type.Equal[NPC]}) /goto :mainloop
/if (${Target.ID} && ${Target.Type.Equal[NPC]} && ${Target.PctHPs}<${attackat}) /call Attacking
/doevents
/goto :mainloop
/end
Sub Attacking
/echo Attacking ${Target.CleanName}!
/varset attackid ${Target.ID}
:attackloop
/if (!${Target.ID}) /goto :endcombat
/if (${Target.ID}!=${attackid}) /goto :newtarget
/if (!${Me.Combat}) {
/face fast
/delay 5
/autofire on
}
/doevents
/goto :attackloop
:newtarget
/echo Somehow got new target. Re-assisting maintank.
/squelch /target clear
:endcombat
/varset attackid 0
/delay 2s
/return
Sub Event_ImDead
/doevents
/keypress forward
/keypress back
/keypress Left
/keypress Right
/delay 2s
/echo I've been Killed! Going into Sleep Mode...
/beep
/beep
:deathSleep
/doevents
/delay 5s
/if (${Me.State.Equal[HOVER]} || ${Zone.ID} != ${Camp_Zone}) /goto :deathSleep
/return
Code: Select all
/autofire on
/autofire offCode: Select all
/autofire