Goto page 1, 2  Next General auto attack target
Reply
auto attack target
Is there a way to set up for this? Basically I want what ever attacks me for me to attack back without pushing a button. Anyway to do this?
Tue Nov 27, 2012 1:19 pm
you can create an event in a macro to do this for you.


Macro
More +
| Auto Attack Example




#event Agro         "#*#hits YOU for#*#"
#event Agro         "#*#slashes YOU for#*#"
#event Agro         "#*#crushes YOU for#*#"
#event Agro         "#*#bashes YOU for#*#"
#event Agro         "#*#kicks YOU for#*#"
#event Agro         "#*#smashes YOU for#*#"
#event Agro         "#*#mauls YOU for#*#"
#event Agro         "#*#gores YOU for#*#"
#event Agro         "#*#pierces YOU for#*#"
#event Agro         "#*#kicks YOU for#*#"
#event Agro         "#*#bashes YOU for#*#"  
#event Agro         "#*#missed YOU#*#"

#turbo
Sub Main

:MyMainLoop
   /if (${Me.Casting.ID}) /goto :MyMainloop
   /doevents

/return







Sub Event_Agro
  :AttackLoop
     /if (${Target.Type.Equal[NPC]}) {
            /stick 10
            /attack on
            /goto :AttackLoop
            /attack off
      } Else {
      }
/return
Tue Nov 27, 2012 2:27 pm
Listen to This Guy
Guess I'm going to have to learn how to make+install macros then. Thanks a bunch. Would this be a direct copy paste?
Tue Nov 27, 2012 5:28 pm
You could also use MQ2Events to turn on auto attack using a similar syntax.
Assuming you have MQ2Melee set up, it will handle the rest.
_________________
Sorvani
Tue Nov 27, 2012 6:58 pm
Senior Project Member
Thank you for the help I will try this tonight/tomorrow and report my findings.
Tue Nov 27, 2012 8:12 pm
is mq2events similar to mq2melee? as in did it come with the download? so I would just have to do /plugin mq2events

I have mq2melee set up.
Tue Nov 27, 2012 11:34 pm
Also, just for next time experience... is there a howto for dummies for macros?
Tue Nov 27, 2012 11:35 pm
is mq2events similar to mq2melee?


They are both plugins.... That's about as similar as they get.

did it come with the download?


Yes.

so I would just have to do /plugin mq2events


Type "/plugin list" to see if it's loaded. If you don't see it in the list, type "/plugin MQ2Events" to load it.

is there a howto for dummies for macros?


Not really. The scope and breadth that is MQ2 macros isn't something that a howto or for dummies article can successfully cover. The MQ2 wiki has "368 pages that are probably legitimate content pages" out of over 1900 pages total. Only one is a Macro Reference and that doesn't do the topic justice. Editing Existing Macros is always a good read and probably the best route to learning to write macros.
Wed Nov 28, 2012 1:15 am
Senior Project Member
So here's where I'm at.

I took the macro that was listed in the 2nd post and pasted it to a txt file. Then I renamed the text file agro.mac

I put that file into my mq2 folder and loaded up

got in game and typed /mac agro

I keep getting "couldn't open C://documents/macros/agro.mac"

I'm stumped.

As far as "events" it's not like I can do a list of like...agro=1 for attack or what ever like you can with the melee plugin.

I just want to exp while I'm at work because I'm constantly at work and don't feel like grinding out AA's when I actually get to play... I want to do fun stuff!
Wed Nov 28, 2012 1:26 am
Type /macro agro.mac
Wed Nov 28, 2012 2:21 am
Put agro.mac into the Macro folder of your MQ2 directory.

edit:
Don't put your MQ2 directory into any "special" operating system folder like Documents/MyDocuments. MQ2 doesn't like junctions.
Wed Nov 28, 2012 4:31 am
Senior Project Member
typing /mac agro.mac gives the same result.
Wed Nov 28, 2012 8:56 am
$20 says it is
Macro
More +
/mac agro.mac.txt

_________________
Sorvani
Wed Nov 28, 2012 2:16 pm
Senior Project Member
no, in the description preview windows 7 thingy it says "mq2 macro" or something to that effect.
Wed Nov 28, 2012 10:56 pm
Ok so dumb it down for me barney style. How would I use mq2events to set up what I want to do?
Wed Nov 28, 2012 11:03 pm
Goto page 1, 2  Next General auto attack target
Reply