Page 1 of 2

HK MM Macro

Posted: Sat Jan 07, 2006 5:54 pm
by M.D.
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

Posted: Sun Jan 08, 2006 11:31 am
by armysoldier
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

Posted: Sun Jan 08, 2006 11:40 am
by BardsAreTooEasy
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.

Posted: Sun Jan 08, 2006 11:41 am
by BardsAreTooEasy
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.


Posted: Sun Jan 08, 2006 9:36 pm
by M.D.
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...

Posted: Mon Jan 16, 2006 10:58 am
by methodx
I dont understand how you were able to use this command?

Code: Select all

/unequip offhand
Is it part of a custom plugin?

Posted: Mon Jan 16, 2006 12:31 pm
by SwiftyMUSE
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.

Posted: Mon Jan 16, 2006 12:35 pm
by M.D.
Sorry, posted macro here so more people might see it and use it. Forgot about VIP plugins that I use. My suggestion: donate!

Posted: Mon Jan 16, 2006 12:51 pm
by methodx
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

Posted: Sun Feb 12, 2006 4:39 pm
by AlphaBeta
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.

Posted: Sun Feb 12, 2006 6:05 pm
by M.D.
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?

Posted: Mon Feb 13, 2006 4:31 pm
by AlphaBeta
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.

error

Posted: Mon Feb 13, 2006 7:14 pm
by EQwhat
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.

Re: error

Posted: Tue Feb 14, 2006 3:30 am
by pw
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.

kicking on casters

Posted: Tue Feb 14, 2006 12:28 pm
by EQwhat
as i said i do the kicking manually. (to do it manually i have to have a hotbutton)