Autoassist

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

fujitsu
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat May 09, 2009 1:02 pm

Autoassist

Post by fujitsu » Sat Jul 11, 2009 11:34 am

I just need a very simple macro.

All i want is for it to do the following.

1) Set auto assist and % hp. Aka /autoassist Namikaze 97
2) then actually assist and turn attack on


I use mq2melee and it works great, but i get tired of tabing over, pressing assist and tabbing back.

User avatar
pms
a grimling bloodguard
a grimling bloodguard
Posts: 663
Joined: Mon Jan 31, 2005 5:20 pm
Location: Internet, Earth
Contact:

Post by pms » Sat Jul 11, 2009 12:05 pm

Code: Select all

Sub Main
/declare CharName string outer   EditYourCharacterNameOutOfYourPostAndReplaceThisWithIt
/declare AssistAt int    outer   97
/if (${Defined[Param0]}) {
 /varset AssistAt ${Param0}
}

/echo ${Macro} - Auto-Assisting ${CharName} @ ${AssistAt} % health

:mainloop

/if (${Me.State.Equal[HOVER]}) {
	/delay 10
	/goto :mainloop
}

/if (!${Target.ID} || ${Target.Type.Equal[PC]} || ${Target.Type.Equal[CORPSE]}) {
	/assist ${CharName}
	/delay 10
}

/if (${Target.ID} && ${Target.PctHPs} < ${AssistAt} && !${Me.Combat} && !${Target.Type.Equal[PC]} && !${Target.Type.Equal[CORPSE]}) {
	/attack on
	/delay 10
}

/delay 1
/goto :mainloop
/return
/macro whateveryounamethis
-auto-assists at 97

/macro whateveryounamethis 90
-auto-assists at 90 or any other number you provide

take note of where you need to change your char name (both places)


consider donating for VIP access.

fujitsu
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat May 09, 2009 1:02 pm

Post by fujitsu » Sat Jul 11, 2009 12:09 pm

I have vip access, and thank you again for the help ;-)

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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 2:19 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 2:20 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 2:57 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 2:58 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 2:59 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:36 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:38 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:39 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:40 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:42 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:43 pm


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

Re: Autoassist

Post by xyilla » Thu Sep 11, 2025 3:44 pm