• 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 --->

Question about the MQ2Zone Source (1 Viewer)

FunWithUs

New member
Joined
Aug 21, 2005
RedCents
I am having a problem the the MQ2Zone source that is posted, and wanted to know if anyone else is having the same problem, and how it is fixed. What is happening is that when I type (For example:) "/zone overthere" from Plane of Knowledge, I am being sent to my bind point rather than being transported to The Overthere.

It has been suggested to me that I should just use a pre-compiled .dll file that was posted, and I have nothing against anyone here, but I would rather only use .dll files that I compiled myself. Besides the fact, it is more fun to know how it works.

Any help that anyone can offer to help me figure out why I am having this problem, please post to help me figure it out? If I had to guess, I would say that there is still something that needs to be edited to make it work correctly, but I don't know what that would be... Thanks!

First, I goto your eqdata.h and replace the following line:
Rich (BB code):
/* 0x12e0 */ BYTE Unknown0x12e0[0x14ec-0x12e0];

with
Rich (BB code):
/* 0x */ BYTE Unknown0xfd8[0x1f8]; 
/* 0x14d8 */ DWORD ZoneBoundId; 
/* 0x14dc */ BYTE field_0x14dc[0x10];

Here is the plugin source code I used for the MQ2Zone.cpp:
Rich (BB code):
#include "../MQ2Plugin.h" 

PreSetup("MQ2Zone"); 
#undef GateBind 
#undef ZoneShift 
#undef ZoneToGoTo 
VOID GateBind(PSPAWNINFO, PCHAR); 
VOID ZoneShift(PSPAWNINFO pChar, PCHAR szLine); 

VOID ZoneShift(PSPAWNINFO pChar, PCHAR szLine) 
{ 
   CHAR szMsg[MAX_STRING] = {0};      
   DWORD ZoneToGoTo; 
   ZoneToGoTo = GetZoneID(szLine); 
   if (ZoneToGoTo == -1) { 
      WriteChatColor("Wrong Zone.ShortName, aborting!!",CONCOLOR_RED); 
      return; 
   } 

   sprintf(szMsg,"Going to zone %s, id %d",szLine,ZoneToGoTo); 
   WriteChatColor(szMsg,USERCOLOR_DEFAULT); 
   GetCharInfo()->ZoneBoundId = ZoneToGoTo; 
   pChar->Type = SPAWN_CORPSE; 
} 

VOID GateBind(PSPAWNINFO pChar, PCHAR szLine) 
{       WriteChatColor ("Gating...",CONCOLOR_RED); 
       pChar->Type = SPAWN_CORPSE; 
} 

PLUGIN_API VOID InitializePlugin(VOID) 
{ 
AddCommand("/zone",ZoneShift); 
AddCommand("/gate",GateBind); 
} 


PLUGIN_API VOID ShutdownPlugin(VOID) 
{ 
DebugSpewAlways("Shutting down MQ2Zone"); 
RemoveCommand("/gate"); 
RemoveCommand("/zone"); 
}
 
It compiles perfectly. I have not tried it anywhere else other than PoK, I thought that would be the best test because I had used a previous version of MQ2Zone to make that same trip.

I will try again tonight when I get home from other locations and see if I get the same result.
 
I cant remember if u can use PoK or not its been awhile since i have used that plugin and i cant remember if PoK worked for me or not...i mean obvoiusly if u go to another zone and try to use it and it works then i guess it dont but u said u have made the trip before so i am kinda wondering what ure problem is..especially since it compiled fine
 
Question about the MQ2Zone Source

Users who are viewing this thread

Back
Top