• 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

Question - Fade Plugin for EQEmu

jmac

Member
Joined
Sep 12, 2004
RedCents
106¢
I play on eqemu, my access has ran out and I am low on cash. Does redguides still grant temporary access for content submission?
 
Re: Submission for Level 2 Access

Ok well this is for eqemu strictly, dunno if that matters. I do not see a working fade for the SoD client. I even see a post under eqemu for someone looking for a working /zone, I am in the process of working on that. In the mean time here is my submission, it's /fade. This was written with the help of the old mq2piggyzone.

Rich (BB code):
#include "../MQ2Plugin.h"

PreSetup("MQ2Zone");

#define LocalCEverQuest__DoTheZone 0x4FABE0 // SoD EMU



class LocalCEverQuest;
class LocalCEverQuest
{
public:
__declspec(dllexport) char * LocalCEverQuest::DoTheZone(int,char *,int,int,float,float,float,int);
};


#ifdef LocalCEverQuest__DoTheZone
FUNCTION_AT_ADDRESS(char * LocalCEverQuest::DoTheZone(int,char *,int,int,float,float,float,int),0x4FABE0); //SoD EMU
#endif

LocalCEverQuest **ppLEQ;
#define pLEQ (*ppLEQ)


VOID Fade(PSPAWNINFO pChar, PCHAR szLine);

float X,Y,Z;
int Heading;
int DestZone;
int DestType; // 0=use supplied coords 1=succorpoint
int ZoneReason;

VOID Fade(PSPAWNINFO pChar, PCHAR szLine)
{
	CHAR szMsg[MAX_STRING] = {0};
	if (pChar->Instance != 0)
	{
		DestZone = *((int *)(&(pChar->Instance)-1));
	}
	else
	{
		DestZone = pChar->Zone;
	}
	sprintf(szMsg,"Fading...");
	WriteChatColor(szMsg,USERCOLOR_DEFAULT);
	DestType=0;
	ZoneReason=0;
	Y=pChar->Y;
	X=pChar->X;
	Z=pChar->Z;
	Heading =(int)pChar->Heading;
	char aa[100]="test";
	pLEQ->DoTheZone(DestZone,aa,DestType,ZoneReason,Y,X,Z,Heading);
	return;
}

// Called once, when the plugin is to initialize
PLUGIN_API VOID InitializePlugin(VOID)
{
	ppLEQ=(LocalCEverQuest**)pinstCEverQuest;
	DebugSpewAlways("Initializing MQ2Zone");
	AddCommand("/fade",Fade);
}

// Called once, when the plugin is to shutdown
PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shutting down MQ2Zone");
	RemoveCommand("/fade");
}

If this does not grant access, please delete this post Maskoi. thank you

ps I can post the compiled version if anyone asks.
 
I'd like to see a compiled version. RedCent added - will get you a month after I test the compiled one.
 
You're in. You can keep this thread in public knowledge, or move it to our private EMU forum. Up to you - you can move your own thread using the tools above.
 
Question - Fade Plugin for EQEmu

Users who are viewing this thread

Back
Top
Cart