• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Plugin: MQ2Bind (1 Viewer)

Xabob2

New member
Joined
Jan 28, 2005
RedCents
10¢
I wrote this and i am geting a wierd error and its late so i will post it here if anyone wants to Debug it

This is the error
Rich (BB code):
MQ2Bind\MQ2Bind.cpp(9) : error C2065: 'GetZoneId' : undeclared identifierCODE] 


This is the code...Duh

	
	





	



	











Rich (BB code):
#include "../MQ2Plugin.h"
PreSetup("MQ2Bind")
VOID SetBind (PSPAWNINFO, PCHAR);
 
VOID SetBind (PSPAWNINFO pChar, PCHAR szLine)
{
	CHAR szMsg[MAX_STRING] = {0};
	DWORD SetBind;
	SetBind = GetZoneId(szLine);
	GetCharInfo()->ZoneBoundId = SetBind;
	printf("You have been bound to %s id %d",szLine,SetBind);
 
 
}
PLUGIN_API VOID IntializePlugin(VOID)
{
	DebugSpewAlways("Enabling your abbility to set your bind point");
		AddCommand("/Setbind",SetBind);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shuting Down MQ2Bind");
	RemoveCommand("/Setbind");
}
 
Last edited:
i think that the main problem will be that the server won't be saving your bind id... need to figure out how to send that to the server and have it accept it.
 
Try just moving the whole set bind function to the bottom that should do it.

your code is out of order
Rich (BB code):
#include "../MQ2Plugin.h"
PreSetup("MQ2Bind")

VOID SetBind (PSPAWNINFO, PCHAR);
 

PLUGIN_API VOID IntializePlugin(VOID)
{
	DebugSpewAlways("Enabling your abbility to set your bind point");
		AddCommand("/Setbind",SetBind);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shuting Down MQ2Bind");
	RemoveCommand("/Setbind");
}

VOID SetBind (PSPAWNINFO pChar, PCHAR szLine)
{
	CHAR szMsg[MAX_STRING] = {0};
	DWORD SetBind;
	SetBind = GetZoneId(szLine);
	GetCharInfo()->ZoneBoundId = SetBind;
	printf("You have been bound to %s id %d",szLine,SetBind);
 
 
}

That should work, not at home so can't test it for you
 
Last edited:
Plugin: MQ2Bind

Users who are viewing this thread

Back
Top