Combat Macros for a monk

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Combat Macros for a monk

Post by morannon » Mon Nov 18, 2002 5:08 am

I havent really delved too deeply into the macro side of MQ, but has anyone any idea if its possible to :

- check if auto attack is on
- if so, every 2 seconds active the epic
- every 3 seconds do a FK

I guess the epic use is out of the question cos i use the new UI, but FK can be done with /doability

Whilst the macro is running, is it possible to use the client for /gu, /tell etc ?

loadingpleasewait
a snow griffon
a snow griffon
Posts: 332
Joined: Sat Sep 14, 2002 8:46 am

Post by loadingpleasewait » Mon Nov 18, 2002 9:13 am

I Probably should just tell you to go read the readme as this is a very simple macro to make, however I am feeling generous this morning. I am at work so I cant test it, but this should work.

Code: Select all

 

|monkattack.mac

Sub main
     :recheck
     /if $combat==TRUE /call fighting
     /goto :recheck

Sub Fighting
     /doability "Flying Kick"     | dont know the name the ability goes by so this may need to be changed
     /delay 3s
     /return


I dont suggest using the new UI and macroing as I ran into the item loss bug associated with it, however if you insist on using it, then the /click needed to make the epic work is out of the question (also didnt include that in the mac). just run this and it should always watch for you to be in autoattack.

Happy MQing
LOADING PLEASE WAIT...

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Post by morannon » Mon Nov 18, 2002 9:23 am

LOL Thanks - much simpler than I had expected =/

I had started to write something using Events ...

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Mon Nov 18, 2002 9:29 am

In fact it can be done a lot better :-)

Code: Select all


|monkattack.mac 

Sub main 
     :recheck 
     /if $combat==TRUE /call MonkAbilities 
     /goto :recheck 

Sub MonkAbilities 
     /if $char(ability,"Flying Kick")>0 /doability "Flying Kick" 
/return
 
the /if checks that the ability is available first before trying to do it.
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Post by morannon » Mon Nov 18, 2002 10:05 am

Well, this is what I ended up with - thanks for the help !

Code: Select all

|monkattack.mac 

#event Killed "You have been slain"

Sub main 
     :recheck 
     /if $combat==TRUE {
       /doevents
       /call MonkAbilities 
       /goto :recheck
       } else {
       /endmacro
       }

Sub MonkAbilities 
     /if $char(ability,"Flying Kick")>0 /doability "Flying Kick"
/return

Sub Event_Killed
  /endmacro
/return
I read somewhere that the item loss occurs when zoning or something ? Since the only time I'll be zoning when i'm attacking is when Im dead, Ive put an event in to end the macro in the event I die.

icon
Official loudmouth
Official loudmouth
Posts: 158
Joined: Fri Jun 14, 2002 2:59 pm
Location: ...
Contact:

Post by icon » Mon Nov 18, 2002 1:16 pm

I could be looking at it wrong, but after you die, wont the macro automatically redo Flying Kick anyway? If that's true, and for some reason (lots of ways) you automatically target a guard or other NPC... wont you Flying Kick them a few times? Probably getting yourself killed OR lose faction.

Oh wait, it /endmacro's when you die so that's not possible, but what about after you kill the mob? Combat is no longer true, yet you are still Kicking.

I dunno, just seems a bit sloppy to me to have kicking in a different area then autoattack. The kludge fix of course is to add the same :recheck to Flying Kick, but that's still sloppy.

I'm overtrained.

- icon
In memory of [b][color=darkblue]MasTerKeyZ[/b][/color].

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Post by morannon » Mon Nov 18, 2002 1:21 pm

FK is only called if you are in combat, ie have auto attack on...

When the mob dies, you are not in auto attack, so are not in combat, so no FKs

serberus
a lesser mummy
a lesser mummy
Posts: 58
Joined: Tue Nov 19, 2002 5:04 am

Post by serberus » Tue Nov 19, 2002 6:06 am

I don't understand the nature of the monk epic but if it needs to be right clicked for the effect to happen why not just place that inventory slot in a hotkey bank and then use the "/press <hotkey number>" command, that would work.

Am I missing something?

Serberus

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Post by morannon » Tue Nov 19, 2002 8:13 am

Thats what I ended up doing - latest version :

Code: Select all

|monkattack.mac 

#event Killed "You have been slain"
#event TooFar "Your target is too far away"
#event CannotSee "You cannot see your target"
#event Enrage "has become ENRAGED"

#define EpicCount v50

Sub main
  /varset EpicCount 0
  /press 2
  :recheck 
  /if $combat==TRUE {
    /face
    /doevents
    /call MonkAbilities 
    /goto :recheck
  } else {
    /endmacro
  }

Sub MonkAbilities 
  /if $char(ability,"Flying Kick")> /doability "Flying Kick"
  /varadd EpicCount 1
  /if $EpicCount==15.00 {
    /varset EpicCount 0
    /press 2
    }
  /delay 2
  /return

Sub Event_Killed
  /endmacro
  /return

Sub Event_TooFar
  /face
  /press up
  /press up
  /return

Sub Event_CannotSee
  /face
  /return

Sub Event_Enrage
  /attack off
  /return

Rather than constantly spam it, since it lasts 12 seconds, I refresh it every 3 seconds (due to lag etc. this is nearer 9 on raids)

Just pressing it every time the macro runs thru a loop makes using the chat part of the client impossible, since it will fill up quickly with the no.2 (where my epic is hotkeyed to)