HK MM Macro

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

Moderator: MacroQuest Developers

M.D.
orc pawn
orc pawn
Posts: 19
Joined: Fri Nov 25, 2005 12:56 am

HK MM Macro

Post by M.D. » Sat Jan 07, 2006 5:54 pm

Updated 2/12/06 with the ability to auto-select Sentry (Warrior) and enter mission for you if you're still afk.

Code: Select all

#CHAT chat

#event HHK "You have entered High Keep#*#"
#event HHP "You have entered Highpass Hold#*#"
#event TT "#*#War Machines#*#0h:#1#m remaining#*#"
#event TTNONE "You do not currently have any task replay timers."
#event MONSTER "You have been assigned the task#*#"
#event ENTERING "#*#strange magical presence prevents#*#"

Sub Main
:Loopit	
	/doevents
	/if (${Me.Combat} && ${Me.State.NotEqual[STUN]}) {
		/if (${Me.AbilityReady["Kick"]}) {
		/delay 2
		/doability "Kick"
		/delay 2
		}
		/if (${Me.AltAbilityReady["Lesion"]}) {
		/delay 2
		/aa act Lesion
		/delay 5
		}
	}
/goto :Loopit
/return

Sub Event_HHK 
	/keypress V
	/delay 5
	/notify AAWindow AAW_LoadButton leftmouseup
	/delay 5
	/keypress V
	/unequip mainhand
	/unequip offhand
/return 

Sub Event_HHP
	/tasktimer
	/delay 1s
	/taskquit
/return

Sub Event_TT(int, Mns)
	/declare i int
	/for i 0 to 30 {
		/if (${Math.Calc[${Mns}-${i}]} > 0) {
		/echo You have ${Math.Calc[${Mns}-${i}]} minutes remaining on your task timer
		/delay 1m
		}
	/next i
	/echo You have less than 1 minute to go
	/popup You have less than 1 minute to go
	/beep loud
	/delay 20s
	/tasktimer
/return

Sub Event_TTNONE
	/echo You are ready for a new task
	/popup You are ready for a new task
	/beep loud
	/delay 1s
	/beep loud
/return

Sub Event_MONSTER
	/echo Choosing Sentry
	/delay 1s
	/notify TaskTemplateSelectWnd TaskTemplateSelectListOptional listselect 2 
	/delay 3s 
	/notify TaskTemplateSelectWnd TaskTemplateSelectAcceptButton leftmouseup
	/delay 2s
	/keypress esc
	/keypress esc
	/delay 11s
	/say set
/return

Sub Event_ENTERING
	/delay 6s
	/say set
/return
Last edited by M.D. on Fri Feb 17, 2006 9:49 pm, edited 2 times in total.

armysoldier
a hill giant
a hill giant
Posts: 189
Joined: Mon Jun 27, 2005 2:13 am
Location: Florida (Stationed at FT Carson CO)

Post by armysoldier » Sun Jan 08, 2006 11:31 am

have not tried this .. just noticed it

but .. a suggestion i have is to pop into the mission .. and sit for the 20-30min or whatever you would normally wait outside.. so that you don't look as obvious

8-)

army

BardsAreTooEasy
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sun Feb 27, 2005 3:01 pm

Post by BardsAreTooEasy » Sun Jan 08, 2006 11:40 am

Yea good idea army. This is a kewl macro bro, used it last night on a mission. Was almost hands free! Waiting inside would be nice though for those of us on the pvp server! I have a snippet that selects a monster template and enters a mission. If you want that you can have it.

BardsAreTooEasy
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sun Feb 27, 2005 3:01 pm

Post by BardsAreTooEasy » Sun Jan 08, 2006 11:41 am

Yea good idea army. This is a kewl macro bro, used it last night on a mission. Was almost hands free! Waiting inside would be nice though for those of us on the pvp server! I have a snippet that selects a monster template and enters a mission. If you want that you can have it.


M.D.
orc pawn
orc pawn
Posts: 19
Joined: Fri Nov 25, 2005 12:56 am

Post by M.D. » Sun Jan 08, 2006 9:36 pm

Used to play to a PvP server, couldn't imagine sitting around for the timer to finish. I just hated typing /tasktimer every 5 mins or so to check the time left. Also found it mind-numbing to hit kick and lesion every 10s or so. This also removes the embarassement of running your 100th mission and still having the sword/shield equipped. Not that I've done that...

methodx
a lesser mummy
a lesser mummy
Posts: 37
Joined: Mon Jan 16, 2006 10:57 am

Post by methodx » Mon Jan 16, 2006 10:58 am

I dont understand how you were able to use this command?

Code: Select all

/unequip offhand
Is it part of a custom plugin?

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Mon Jan 16, 2006 12:31 pm

methodx wrote:I dont understand how you were able to use this command?

Code: Select all

/unequip offhand
Is it part of a custom plugin?
Yes, that is part of exchange plugin in VIP.

M.D.
orc pawn
orc pawn
Posts: 19
Joined: Fri Nov 25, 2005 12:56 am

Post by M.D. » Mon Jan 16, 2006 12:35 pm

Sorry, posted macro here so more people might see it and use it. Forgot about VIP plugins that I use. My suggestion: donate!

methodx
a lesser mummy
a lesser mummy
Posts: 37
Joined: Mon Jan 16, 2006 10:57 am

Post by methodx » Mon Jan 16, 2006 12:51 pm

I do plan on donating but at the moment my credit card already has stuff on it that I dont have the to cash to clear - damn you christmas! =P Gonna have to wait till next paycheck whenever that will be.

Just getting into MQ at the moment and only have a little bit of programming experience - bit of VB, java, small bit of C++ but I find these code snippets extremely helpful in getting to grips with what's going on.

Anyway, this is the code I came up with to use to replace /unequip for mainhand and offhand with a bit of a safety check incase you somehow run it when not in the monster mission.

Code: Select all

	/itemnotify 13 leftmouseup
	/if (${Cursor.Name.Equal[Fine Steel Long Sword]}) {
		/itemnotify 24 leftmouseup
	} 
	/itemnotify 13 leftmouseup

	
	/itemnotify 14 leftmouseup
	/if (${Cursor.Name.Equal[Qeynos Kite Shield]}) {
		/itemnotify 25 leftmouseup
	} 
	/itemnotify 14 leftmouseup

AlphaBeta
a ghoul
a ghoul
Posts: 126
Joined: Sat Nov 09, 2002 12:35 am

Post by AlphaBeta » Sun Feb 12, 2006 4:39 pm

Ran into a problem last night with this macro. Once the timmer had ended it started the clock over again. then once inside the mission my AA's and weapon disarm failed to work. Anyone else have this happen? was after about my 4th or 5th mission.

M.D.
orc pawn
orc pawn
Posts: 19
Joined: Fri Nov 25, 2005 12:56 am

Post by M.D. » Sun Feb 12, 2006 6:05 pm

Updated first post slightly, still uses MQ2Exchange, but you can always use methodx's way of swapping weapons out if you don't have it. I wrote a snippet of code that would only unequip and load AA's on first zone in, can't find it now but if there's interest I'll update this again when I find it.

AB: Did you get any error msgs after zoning in?

AlphaBeta
a ghoul
a ghoul
Posts: 126
Joined: Sat Nov 09, 2002 12:35 am

Post by AlphaBeta » Mon Feb 13, 2006 4:31 pm

No there was no error message at all. Macro just started over from 22 min even tho /taskt showed no time remaining. Then on zone in it just refused to do anything. I didn't get a group right away so it managed to count down to like 13 min. I ended the macro as soon as I saw it wasn't doing anything and loaded AA's and unequiped myself then restarted it and it kicked and everything fine after that.

EQwhat
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sat Jun 18, 2005 6:55 pm
Location: UK

error

Post by EQwhat » Mon Feb 13, 2006 7:14 pm

did you swap toons? if you did it seams like it dont notice changing toons for timer.

Anyway i used this and it was great. onlt thing i noticed was when i use a caster toon it dont do the kicking even with hotbuttons created. I do the kicking manually. On my warrior it had no problems at all.

pw
a ghoul
a ghoul
Posts: 130
Joined: Sun Jan 02, 2005 5:59 am

Re: error

Post by pw » Tue Feb 14, 2006 3:30 am

EQwhat wrote: Anyway i used this and it was great. onlt thing i noticed was when i use a caster toon it dont do the kicking even with hotbuttons created. I do the kicking manually. On my warrior it had no problems at all.
You have to add the "Kick" ability to your abilities tab on the actions window (Ctrl+A) when using a caster type.

Macro works fine for me usually, I get the timer hiccup described elsewhere too - but, stopping and starting it up again fixes it. For me, it seems to be connected with slow zoning into HHK at the mission start.

EQwhat
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sat Jun 18, 2005 6:55 pm
Location: UK

kicking on casters

Post by EQwhat » Tue Feb 14, 2006 12:28 pm

as i said i do the kicking manually. (to do it manually i have to have a hotbutton)