• 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

Request - Advanced guides

madix1

New member
Joined
Dec 2, 2018
RedCents
Hey Guys,

I am a long time “selfish” programmer (I work IT, so efficiency means more “me time”). With about 15 years and and a shit ton of programming languages behind me. Is there a quick and dirty guide that I could look at? I have looked at the TLO’s which seem to be extremely well planed, but looking through a lot of macros, the code seems to be shit. Before I offend to many, I have not looked at the longer macros because of the formatting/compression/readability.

If there is a segment of code that you wrote that could assist others, would you mind posting it below? The idea is to see how far code can push the limits - yes scary to post, but only growth can be made here. Please post the code, and a couple sentences about what it does.


I am looking to improve the community (love how you can combine my compassion for mmorpgs and coding). Most of my scripting has been procedural based. If there is someone that is willing to teach more of the core of mq2, I think several other would be really interested. I would be will to host the webex’s.

-Mad
 
Hey Guys,

I am a long time “selfish” programmer (I work IT, so efficiency means more “me time”). With about 15 years and and a shit ton of programming languages behind me. Is there a quick and dirty guide that I could look at? I have looked at the TLO’s which seem to be extremely well planed, but looking through a lot of macros, the code seems to be shit. Before I offend to many, I have not looked at the longer macros because of the formatting/compression/readability.

If there is a segment of code that you wrote that could assist others, would you mind posting it below? The idea is to see how far code can push the limits - yes scary to post, but only growth can be made here. Please post the code, and a couple sentences about what it does.


I am looking to improve the community (love how you can combine my compassion for mmorpgs and coding). Most of my scripting has been procedural based. If there is someone that is willing to teach more of the core of mq2, I think several other would be really interested. I would be will to host the webex’s.

-Mad
Howdy Madix,

@ChatWithThisName has this awesome tutorial/guide on conditionals HERE with a matching youtube video HERE

The DISCORD is very active and we help each other out writing code all day long.

@kaen01 is frequently around and always helping people write code (me included !)
 
Howdy Madix,

@ChatWithThisName has this awesome tutorial/guide on conditionals HERE with a matching youtube video HERE

The DISCORD is very active and we help each other out writing code all day long.

@kaen01 is frequently around and always helping people write code (me included !)
Howdy Madix,

@ChatWithThisName has this awesome tutorial/guide on conditionals HERE with a matching youtube video HERE

The DISCORD is very active and we help each other out writing code all day long.

@kaen01 is frequently around and always helping people write code (me included !)
Appreciate the response Sic! I have been on the forms for about a month, and your posts/responses on various subjects has helped a lot with my growing pains. I have looked at Chat’s conditional thread, but I am looking for something that is a bit more advanced/to the point. I am looking for fast and efficient coding vs trail and error in my own attempts. Show off your code here please! :). If there is a better way of doing something, please quote and post your suggestion.
 
Appreciate the response Sic! I have been on the forms for about a month, and your posts/responses on various subjects has helped a lot with my growing pains. I have looked at Chat’s conditional thread, but I am looking for something that is a bit more advanced/to the point. I am looking for fast and efficient coding vs trail and error in my own attempts. Show off your code here please! :). If there is a better way of doing something, please quote and post your suggestion.
Thank you for the kind words - unfortunately for that I am not your man :( I wrote my first conditional in like march, and only recently made my own macro. I spend a lot of time looking at code, however to see how different people approach different problems - there are still some questions that I'm not able to get the answer to because either A: there isn't an answer or B: I'm unable to articulate the question in a way that would get me the answer I'm looking for =p

Macroquest2.com is pretty much your best bet for specifics - I spend a lot of time here as well

HERE is the macro reference page on the wiki

Operators
Subs and Functions
Flow Control

Hopefully we can get some others to chime in during daylight hours with some insight - there are some incredibly talented coders around here and I'm sure someone can get you goin
 
Pretty noobish with mq2 myself, found that by looking at kissassist.mac was the best way to learn. I will be redoing the hatchery.mac that is currently timer driven with events soonish.

Binds and Events !

Event driven, skip the loop/delay nonsense waiting for an event to happen.
As EQ is basically a text game with some prettyish graphics everything should come into the chatbox

If you look in kissassist.mac you will see:
#Event CAST_BEGIN "You begin singing#*#"
#Event CAST_BEGIN "Your #1# begins to glow."

Sub Event_CAST_BEGIN(line,CBItem)
DEBUGCAST Event_CAST_BEGIN \awEnter
DEBUGCAST Event_CAST_BEGIN \aw${line}
/varset castReturn CAST_SUCCESS
DEBUGCAST Event_CAST_BEGIN \awLeave
/return

Adding slash commands
#bind AddAFriend /addfriend
#bind AddMezImmune /addimmune
 
Start by getting your IDE setup. I recommend VSCode with this extension: https://www.redguides.com/community/resources/mq2macro-extension-for-vscode.1078/

Both KISSAssist (https://www.redguides.com/community/resources/kissassist.4/) and core (https://www.redguides.com/community/resources/core.920/) are heavily used and pretty good macros to learn from. They use different practices and between them you can find most examples of what to do.

The MacroQuest wiki is a bit out of date and hard to find exactly what you're looking for, but it's still useful: https://macroquest2.com/wiki/index.php/Main_Page . Shin Noir also put in some time updating the GitHub wiki with TLOs: https://github.com/macroquest/macroquest2/wiki

MacroQuest2's macro script is its own language and there are some quirks to it, so of you're familiar with any other language I would suggest figuring out what you want to do in pseudocode and then porting that into the language. Though, as you're just getting started, just start trying stuff to see if it works in game.

Everyone has their own design principles, but here are mine:
- Minimize redundancy: If you find yourself writing something over and over, abstract it into a function (in macro language that's a sub). Copypasta is bad.
- Incs are your friend: If you write something you'd use elsewhere, extract it into an inc so you can maintain it in one place. Copypasta is bad.
-Be Self Contained: Outside of the inc file, users shouldn't have to look elsewhere for information. Either automate it for them or put it in your help command.
- In general: Automation belongs in macros, features belong in plugins

Plugins are done in C++ and they are all GPL so you should be able to reference the code for specific plugin TLOs or other information.

Then, there is always Discord and posting questions here.
 
Request - Advanced guides

Users who are viewing this thread

Back
Top
Cart