• 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

Plugin: MQ2Bind

Xabob2

New member
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
Cart