Machiavelli
New member
- Joined
- Nov 14, 2004
- RedCents
- 10¢
ONLY WORKS ON ZONES ADJACENT TO YOU. The zones have to be connected to each other, and if they're not, you'll get disconnected from the server.
I've used this for weeks at a time, no gm complaints, no warnings for me. I believe it to be fairly safe.
/gate
(takes you to your bindpoint from any zone. Just like gate!)
/zone (zonename)
You have to use the short name of the zone, the one that appears on /who
Here is a good list of those short names:
http://www.eqemulator.net/zones.php
And here is the mq2zone plugin
I've used this for weeks at a time, no gm complaints, no warnings for me. I believe it to be fairly safe.
/gate
(takes you to your bindpoint from any zone. Just like gate!)
/zone (zonename)
You have to use the short name of the zone, the one that appears on /who
Here is a good list of those short names:
http://www.eqemulator.net/zones.php
And here is the mq2zone plugin
Rich (BB code):
#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");
}


especially the devs.
to the DLL masters!