Post Reply Home » Forums » EverQuest 1 » EQ1 EverQuest 1 Submissions

Mp2 plugin zone : EQ1 EverQuest 1 Submissions

Posted: February 1st, 2005
tault_xabob

Code: Select all

#include "../MQ2Plugin.h" 

PreSetup("MQ2Zone"); 

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); 
   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"); 
} 
/zone (shortname)
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 10 guests