Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!
Moderator: MacroQuest Developers
-
taman
- decaying skeleton

- Posts: 6
- Joined: Thu Jan 15, 2004 4:59 am
Post
by taman » Thu Jan 15, 2004 11:06 am
First of all, I would like to apologize in advance if this post is in the wrong forum. I am posting it here mainly because if it can be done in a macro form, which I don't think it can, I would like it done via macro as it seems easier to create vs a plugin.
Is there a way to parse through the players in the raid window? Basically I want to be able to step through the raid window player at a time, check if it's a certain class and then cast a spell on them. I would also like to step through the raid list and if a group leader, cast a spell on them.
I searched through the manual and found no reference to any raid variables.
I searched through the forums and found about 4 posts in the macros section with the word "raid" in them. I also found 4 posts in the plugins section. Nothing matched what I'm looking for.
I searched through the code and found reference to a CRaidWnd class. I assume there's a Raid struct also. This makes me believe that the information is available but a plugin would have to be created to access it and make the information available. Am I understanding the plugin architecture correctly?
I did find a reference to a DS macro which allows you to add tanks to a list and then have the macro run through the list and casting DS on them. Using the same methods from this macro I know the "target pc, goto pc, cast spell on pc" is possible, but the tank management just isn't feasible for me because of the many melee on each raid... not to mention people joining and leaving. It would just be a hassle to manage that way.
Also, would anyone else use this functionality?
Thanks in advance!
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Thu Jan 15, 2004 11:59 am
It should be possible to write a macro to go through a dump from the raid window, find the information you are looking for, and then make "decisions" based on that info. Your macro would have to find and read in the raid dump, which is in a tab delimited format text file in your EQ directory, and then extract what you wanted.
If you want to interact directly with the raid window itself you'll need a plugin.
-
TI994a
- a ghoul

- Posts: 87
- Joined: Mon Oct 13, 2003 12:25 pm
Post
by TI994a » Thu Jan 15, 2004 12:32 pm
Mckorr, as of right now, there isn't a provision within MQ2 that allows reading in a text file such as the raid dump, is there? We have the ability to read ini files, but those files have a specific structure which differs from the delimited file structure of a raid dump.
- TI
-
taman
- decaying skeleton

- Posts: 6
- Joined: Thu Jan 15, 2004 4:59 am
Post
by taman » Thu Jan 15, 2004 3:00 pm
Thanks! I did find the ini file functions, and I knew that wouldn't work for the raid window dump.
Can you issue a raid dump from MQ2? I don't recall seeing this functionality anywhere. I'm thinking that if I can issue a raid dump at a somewhat regular interval, I may be able to parse the raid dump from a plugin using Win32. That would get me somewhat "real time" data, but as we all know, file access = slow response times typically.
Maybe all I need then is a MQ2FileParser plugin... although, this would not be extensible for a group... only a raid. I wonder if such a thing would be usefull at all elsewhere.
-
J-Squared
- orc pawn

- Posts: 22
- Joined: Wed Nov 19, 2003 11:02 am
Post
by J-Squared » Fri Jan 16, 2004 10:16 am
Take a look here. It's a basic start:
http://macroquest2.com/phpBB2/viewtopic.php?t=4143
But IMHO it's too much work and too screwed up doing all those steps to get this info.
I was my impression that the Raid window struts where not done or avalable yet. Once they are I'm sure we will see all kinds of macros and a plugin or two steming from it. (I know I can think of a few very useful things to do with it.. your idea is one of them)
Someone correct me if I'm wrong. I dont' think the struts are avalable yet.
Untill then the above thread is an example of a macro that (with modifications) should be able to do what you seek.
J
-
taman
- decaying skeleton

- Posts: 6
- Joined: Thu Jan 15, 2004 4:59 am
Post
by taman » Thu Jan 22, 2004 6:57 pm
Thanks J! It's a start... I agree with ya that its not as clean as it could be, but if it works, great! Thanks for the starting point!