• 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

MQ2InstanceKill -- Drops Whole Group from Instances

zippzipp

Member
Joined
Nov 17, 2006
RedCents
51¢
This is a very simple plugin that i coded up in like 5 mins but its very useful to me so i hope its useful to others.

Edited this to include the changes that TP made a few posts down.

Rich (BB code):
/////////////////////////////////////////////////
//   MQ2InstanceKill.cpp by Zippzipp
//   (and a few fixes by TeachersPet!)
//   created on: 18 Jan 2007
// 
//   This Plugin empties your expedition
//   You do not dzquit or taskquit unless you put
//   "all" after your command.
//
/////////////////////////////////////////////////
#include "../MQ2Plugin.h"


PreSetup("MQ2InstanceKill");

VOID taskKill(PSPAWNINFO pChar, PCHAR szLine){
	TASKMEMBER *member;
	CHAR echo[MAX_STRING];
	int i = 0;

	member = pTaskMember;

	while(member) {
		if(strcmpi(GetCharInfo()->Name,member->Name)) {
			sprintf(echo,"/taskremove %s",member->Name);
			DoCommand(pChar,echo);
		}
		
		member = member->pNext;
	}
	
	if(!strcmpi(szLine,"all"))
		DoCommand(pChar,"/taskquit");

}

VOID dzKill(PSPAWNINFO pChar, PCHAR szLine) {
	DZMEMBER *member;
	CHAR echo[MAX_STRING];
    int i = 0;

	member = pDynamicZone->pMemberList;

	while(member) {
		if(strcmpi(GetCharInfo()->Name,member->Name)) {
			sprintf(echo,"/dzremove %s",member->Name);
			DoCommand(pChar,echo);
		}

		member = member->pNext;
	}

	if(!strcmpi(szLine,"all"))
		DoCommand(pChar,"/dzquit");

}

PLUGIN_API VOID InitializePlugin(VOID) {
	AddCommand("/dzkill",dzKill);
	AddCommand("/taskkill",taskKill);
}

PLUGIN_API VOID ShutdownPlugin(VOID) {
	RemoveCommand("/dzkill");
	RemoveCommand("/taskkill");
}

Enjoy!!

--Zippzipp

(like my stuff vote for me here: http://www.redguides.com/community/showthread.php?t=15311)
 
Last edited:
Simple question...does this require you to be the task leader or grp leader to work?
 
Good...means I dont have to worry about someone being zealous/stupid and using this in the wrong way.
 
Luna2006 said:
Good...means I dont have to worry about someone being zealous/stupid and using this in the wrong way.

Not implying anyone is..just merely stating an opinion. ;)
 
Very nice work, not useful in all situations, but I am sure it will go to good use and a good thing to have lying around. RedCent for joo!
 
This is awesome for a raid leader. I dont know how many times a RL will say all drop task and you have to wait for that one afk guy.
 
This is much better plugin design zippzipp. My only thing is that you forgot to add in the initialization for the char "echo" and that it's possible to pull directly from the dynamic zone window all of the names. They're kind of a pain in the ass but I'll have something posted by the end of today.
 
I made a few personal tweaks as well. Only quits you if you add "all" to your command.

Note: I haven't tested /taskkill but /dzkill works fine.
Rich (BB code):
/////////////////////////////////////////////////
//   MQ2InstanceKill.cpp by Zippzipp
//   (and a few fixes by TeachersPet!)
//   created on: 18 Jan 2007
// 
//   This Plugin empties your expedition
//   You do not dzquit or taskquit unless you put
//   "all" after your command.
//
/////////////////////////////////////////////////
#include "../MQ2Plugin.h"


PreSetup("MQ2InstanceKill");

VOID taskKill(PSPAWNINFO pChar, PCHAR szLine){
	TASKMEMBER *member;
	CHAR echo[MAX_STRING];
	int i = 0;

	member = pTaskMember;

	while(member) {
		if(strcmpi(GetCharInfo()->Name,member->Name)) {
			sprintf(echo,"/taskremove %s",member->Name);
			DoCommand(pChar,echo);
		}
		
		member = member->pNext;
	}
	
	if(!strcmpi(szLine,"all"))
		DoCommand(pChar,"/taskquit");

}

VOID dzKill(PSPAWNINFO pChar, PCHAR szLine) {
	DZMEMBER *member;
	CHAR echo[MAX_STRING];
    int i = 0;

	member = pDynamicZone->pMemberList;

	while(member) {
		if(strcmpi(GetCharInfo()->Name,member->Name)) {
			sprintf(echo,"/dzremove %s",member->Name);
			DoCommand(pChar,echo);
		}

		member = member->pNext;
	}

	if(!strcmpi(szLine,"all"))
		DoCommand(pChar,"/dzquit");

}

PLUGIN_API VOID InitializePlugin(VOID) {
	AddCommand("/dzkill",dzKill);
	AddCommand("/taskkill",taskKill);
}

PLUGIN_API VOID ShutdownPlugin(VOID) {
	RemoveCommand("/dzkill");
	RemoveCommand("/taskkill");
}
 
Last edited:
Thanks yea thats a lil better. That should work for raid too. And i didnt even notice that i didnt intialize echo, i went ahead and edited the top post to include your changes.

--Zippzipp
 
Last edited:
This is a handy plugin. One thing to note is that "/dzkill all" doesn't work, you need to use "/dzkill -all". This may have been obvious to others, but it tripped me up for a few minutes.
 
I might have screwed up on the comparison. I'll tweak it and reupload/paste in my post, if you want to update the main post zippzipp, go ahead.
 
Same here, /dzkill with two others in group actually boots me twice, leaving them.
 
Roguish said:
Same here, /dzkill with two others in group actually boots me twice, leaving them.


Yeah, had the same problem with this last night using /dzkill, /dzkill all, and /dzkill -all.

Anthrax
 
I just took the source and re-compiled it with the new compiles, so try this and let me know if it works.

BTW, let me know if this is alright to do or not, do not want to overstep my bounds in here.
 
OK , I tried the newly compiled version last night, and it seemed to work as advertised. I only tried it on a DZ, not a Task though. On an anguish raid aftermath, it removed all 8 people left in the DZ except for myself, then when I ran it with the all command it removed me from the DZ also. Let me know if it does or doesn't work for others also.
 
Nightmare327 said:
OK , I tried the newly compiled version last night, and it seemed to work as advertised. I only tried it on a DZ, not a Task though. On an anguish raid aftermath, it removed all 8 people left in the DZ except for myself, then when I ran it with the all command it removed me from the DZ also. Let me know if it does or doesn't work for others also.

Will try it out tonight, thanks.

Anthrax
 
MQ2InstanceKill -- Drops Whole Group from Instances

Users who are viewing this thread

Back
Top
Cart