- Joined
- Oct 5, 2012
- RedCents
- 2,324¢
Another simple (honestly too simple) macro I made for my Monk in P2002. It literally leaves all the skill usage in MQ2Melee's hands, which is a bit dicey to say the least with what im working with. I don't have the skill yet to add anything for hybrids (spell usage, managing mana, when to even do that stuff, etc), so sorry for anyone wanting to use this for anything other than Rogues and Monks.
One annoying thing I noticed and don't really know how to put in is when the melee assists the MainAssist, it just stands where the monster died. This can get troublesome over the course of a couple pulls without manual intervention. Better this than nothing though I s'pose. I'll definitely revisit it once I find out how to add a return to camp type thing. I looked at kissassist to see if I could find what is used there and immediately regretted it. That thing is a monster and is scary.
Hope this helps anyone playing P2002 with me!
- - - Updated - - -
Thanks to This Macro Post I was able to add a few nifty things to this macro. Thank you kindly thez.
Thank you ctaylor22 you led me in the right direction here with this too.
One annoying thing I noticed and don't really know how to put in is when the melee assists the MainAssist, it just stands where the monster died. This can get troublesome over the course of a couple pulls without manual intervention. Better this than nothing though I s'pose. I'll definitely revisit it once I find out how to add a return to camp type thing. I looked at kissassist to see if I could find what is used there and immediately regretted it. That thing is a monster and is scary.
Hope this helps anyone playing P2002 with me!
Rich (BB code):
#include Spell_Routines.inc
#turbo 40
#event zoned "You have entered#*#"
#event makecamp "[MQ2] makecamp"
Sub Main
|++++++++++++++++++++++++++++++++
| Declares, Variables, and All That
|++++++++++++++++++++++++++++++++
/declare MainAssist string outer ${Target.CleanName}
/declare AssistAt int outer 96
/declare AssistAtDis int outer 100
/if (!${Defined[HomeY]}) /declare HomeY int outer 0
/if (!${Defined[HomeX]}) /declare HomeX int outer 0
/if (!${Defined[HomeHeading]}) /declare HomeHeading int outer
/if (!${Defined[CampTime]}) /declare CampTime int outer 0
/varset HomeHeading 0
/varset CampTime 0
/echo Basic Assist Macro has started
/echo Auto-Assisting ${MainAssist} @ ${AssistAt} % health
/echo makecamp
|+++++++++++++++++++++++++++++++++
| Main Loop
|+++++++++++++++++++++++++++++++++
:Mainloop
/doevents
/call WaitingForMobs
/call KillingMobs
/call GoHome
/goto :Mainloop
/return
|+++++++++++++++++++++++++++++++++
| Waiting For Mobs
|+++++++++++++++++++++++++++++++++
Sub WaitingForMobs
/if (!${Target.ID} || ${Target.Type.Equal[PC]} || ${Target.Type.Equal[CORPSE]} || ${Target.PctHPs} > ${AssistAt} || ${Target.Distance} > ${AssistAtDis}) {
/assist ${MainAssist}
/delay 7
}
/return
|+++++++++++++++++++++++++++++++++
| Killing Mobs
|+++++++++++++++++++++++++++++++++
Sub KillingMobs
/if (${Target.ID} && ${Target.Distance} < ${AssistAtDis} && ${Target.PctHPs} < ${AssistAt} && !${Me.Combat} && !${Target.Type.Equal[PC]} && !${Target.Type.Equal[CORPSE]}) {
/stick 50% behindonce
/delay 7
/killthis
}
/return
|+++++++++++++++++++++++++++++++++
| Return To Camp
|+++++++++++++++++++++++++++++++++
Sub GoHome
/if (${Me.Combat}) /return
/delay 5
/if (${Math.Distance[${HomeY},${HomeX}]}>10 && !${Me.Combat} && ${HomeX}!=0 && ${HomeY}!=0 && ${CampTime}==1) {
/echo Returning to camp!
/delay 5
/moveto loc ${HomeY} ${HomeX}
/delay 3s ${Me.Speed}==0
/face heading ${HomeHeading}
}
/return
|+++++++++++++++++++++++++++++++++
| Make Camp
|+++++++++++++++++++++++++++++++++
Sub event_makecamp
/if (${CampTime}==0) {
/varset CampTime 1
/echo Setting Camp here!
/if (${HomeY}==0 && ${HomeX}==0 && ${HomeHeading}==0) {
/varset HomeY ${Me.Y}
/varset HomeX ${Me.X}
/varset HomeHeading ${Me.Heading.Degrees}
}
/return
}
/if (${CampTime}==1) {
/varset CampTime 0
/echo No longer making camp!
/return
}
/return
|+++++++++++++++++++++++++++++++++
| Unexpected Zone
|+++++++++++++++++++++++++++++++++
Sub event_zoned
/echo Unexpected zoning encounterd. Macro ending.
/endmacro
/return
- - - Updated - - -
Thanks to This Macro Post I was able to add a few nifty things to this macro. Thank you kindly thez.
Thank you ctaylor22 you led me in the right direction here with this too.
Last edited:

