• 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

MQ2InstanceKill -- Drops Whole Group from Instances

zippzipp

Member
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:
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 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.
 
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