• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - RTFM

Sevenmoons

Member
Joined
Aug 19, 2020
RedCents
181¢
Apologies if this has already been asked, or if the answer is glaringly obvious, but is there a basic beginners guide to some of the syntax for writing a macro?
I have read one when it discusses variable and how to use them, but what I am looking for is something along the lines of 'here are some basic move examples, here are targeting example... and so on
I wanted to create a basic dirty macro that moves my driud to a location, targets a set mob, casts a couple of spells, waits for a while and then moves to the next set mob
This is for simple things like the tainted barracuda camp in LOIO

I did try:
/moveto loc -984.43 -816.36 31.12
/target "a deepwater barracuda"
/cast 3
/delay 50

but all my druid did was move to the location and then slowly turn round in circles
Any help pointing me to the manual, would be greatly appreciated

Sevenmoons
 
Learn to write macros

So you want to learn all about MQ2 Macro Code?

ChatWithThisName put together a couple of resources to guide you along the way


Companion Video Here

Here is a link to the MQ2 Wiki:

TLOs on MQ2Wiki:
Wanna know how to find the ${things}?

Flow Control on MQ2Wiki:
This has info on things like - /if, /else, /while, statements
 
I should probably add this to our auto-reply template:

 
Thanks for these replies and I have watched these videos
and I understand the conditions and checking, What I am after are the commands that would follow
For example, what is the command to move to a location?
What is the command to target nearest spawn?
 
The commands are here: https://www.macroquest2.com/wiki/index.php/Macro_Reference under "slash commands". Typically slash commands DO something, the "TLO" (top level object, aka a Thing) will report on state. Things are generally named in a relatively obvious way (some quirks).

So to /target the nearest spawn you would need to read up on /target


and pass that the nearest spawn which you would get from:

Normally it's best to do things by ID number if it's available, rather than name.

Additionally, different plugins make new commands available e.g. Mq2Nav https://www.redguides.com/community/resources/mq2nav.146/ - that details all the commands it makes available on it's main page, as well as the TLO.

Best advice? Look at the macros that already exist and copy pasta/alter them, that's how most people learn. that way you get exposed to the kinds of checks you you need to do (like checking there is a path available to a location before moving to it)
 
Question - RTFM

Users who are viewing this thread

Back
Top
Cart