• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Learning To Writing Macros?

OBI

New member
Hey guys, I'd like to start to learn how to write macros and what not, I would like any help or a point in the right direction. I want to start by dissecting someone else's macro, but I'm not sure where to start. Is there a website or book I can look into? Where can I learn what does what? Is there a program involved in? Thanks a bunch. I'm not asking for anyone to hold my hand lol just a nudge in the right direction please:)
 
OBI,

There are numerous macros our there to learn from. I'd start with tradeskill macros. Reason I say that is because they generally have everything in them, conditonal statements, use of an INI file, user interface interaction.

If you are interested in macros that do quest ... here is one I did back in the day to automate the Task Master quests. http://forums.notaddicted.com/showthread.php?t=11471&highlight=advtask

For syntax you can weed through the MQ2 Wiki http://www.macroquest2.com/wiki/index.php/Main_Page or simply ask in this form.

-Alatyami
 
The way I learned to write macros was first by customizing already existing macros to do something I want, then building further and changing entire subroutines.

Then I got to the point I could write from scratch.

Other people may learn differently but really it's all about studying what each command does and how it works, writing a bunch of shitty code realizing it's shitty and unshityfying it (new word I made it up!) so that it actually runs and does what you want.
 
Once we get warp/zone/etc all working again I'll be getting a macro together that does as many commands as possible and yet is also useful. Basically I'll be commenting it line by line so that people can understand how macros work, but the active hacks are priority #1 atm.
 
just some tips

use /goto as little as possible
too Bad Mq2Bucles is not built into MQ2 directly (Better Looping)

break things into subs when you can

Comment

Comment

Comment

Comment
 
Yeah but you should sid, I do just so someone can look at my code and find the broke part for me easier. I know yours doesn't break like mine but the comments help the rest of us who must customize to fit our needs
 
Learning To Writing Macros?

Users who are viewing this thread

Back
Top
Cart