ISXEQ.h
Code: Select all
*** C:/Documents and Settings/Rewind/Desktop/MQ2-200803072/MQ2Main/ISXEQ/ISXEQ.h Fri Feb 29 19:34:28 2008
--- C:/Documents and Settings/Rewind/Desktop/MQ2-20080307/MQ2Main/ISXEQ/ISXEQ.h Thu Mar 13 14:58:43 2008
***************
*** 90,95 ****
--- 90,96 ----
#define printf pISInterface->Printf
extern unsigned int ChatEventID;
+ extern unsigned int ZoneEventID;
extern HISXSERVICE hChatService;
extern HISXSERVICE hUIService;
extern HISXSERVICE hGamestateService;
Code: Select all
*** C:/Documents and Settings/Rewind/Desktop/MQ2-200803072/MQ2Main/ISXEQ/ISXEQ.cpp Fri Feb 29 19:34:28 2008
--- C:/Documents and Settings/Rewind/Desktop/MQ2-20080307/MQ2Main/ISXEQ/ISXEQ.cpp Thu Mar 13 14:58:08 2008
***************
*** 40,45 ****
--- 40,46 ----
HISXSERVICE hSpawnService;
HISXSERVICE hZoneService;
unsigned int ChatEventID=0;
+ unsigned int ZoneEventID=0;
unsigned int PersistentPointerClass=0;
// Forward declarations of callbacks
***************
*** 235,240 ****
--- 236,242 ----
hZoneService=pISInterface->RegisterService(this,"EQ Zone Service",0);
ChatEventID = pISInterface->RegisterEvent("EQ Chat");
+ ZoneEventID = pISInterface->RegisterEvent("EQ Zone");
PersistentPointerClass = pISInterface->RegisterPersistentClass("EQ Objects");
}Code: Select all
*** C:/Documents and Settings/Rewind/Desktop/MQ2-200803072/MQ2Main/ISXEQ/ISXEQServices.cpp Fri Feb 29 19:34:30 2008
--- C:/Documents and Settings/Rewind/Desktop/MQ2-20080307/MQ2Main/ISXEQ/ISXEQServices.cpp Thu Mar 13 14:56:45 2008
***************
*** 214,224 ****
--- 214,228 ----
{
pISInterface->ServiceBroadcast(pExtension,hZoneService,ZONESERVICE_BEGINZONE,0);
gbInZone=false;
+ char *argv[] = { "BEGIN_ZONE" };
+ pISInterface->ExecuteEvent(ZoneEventID,0,1,argv);
}
EQLIB_API VOID PluginsEndZone(VOID)
{
pISInterface->ServiceBroadcast(pExtension,hZoneService,ZONESERVICE_ENDZONE,0);
gbInZone=true;
+ char *argv[] = { "END_ZONE" };
+ pISInterface->ExecuteEvent(ZoneEventID,0,1,argv);
}
EQLIB_API VOID PluginsZoned()
{
***************
*** 230,234 ****
--- 234,240 ----
char Temp[256]={0};
sprintf(Temp,"EQ-%s",((PZONEINFO)pZoneInfo)->ShortName);
pISInterface->RunCommandFile(Temp);
+ char *argv[] = { "ZONED" };
+ pISInterface->ExecuteEvent(ZoneEventID,0,1,argv);
}
