here is a script that will teleport the player who uses .mall to the coords depending on his faction
simply edit the coords to change it
Code:
//---------------------
// Name: Custom Player Mall port command
// Author: Mager1794
// This Script can not be released by anyone else other than me
//---------------------
#include "StdAfx.h"
#include "Setup.h"
static string mall = ".mall";
static bool bypassCombat = false;//Change this if you wish to allow them to port while in combat
void PlayerChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
{
if(Message == mall)
{
if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
if(pPlayer->getRace()== 10||pPlayer->getRace()== 2||pPlayer->getRace()== 6||pPlayer->getRace()== 8||pPlayer->getRace()== 5)
pPlayer->EventTeleport(1, 7367.040039, -1559.760010, 163.52295);
else
pPlayer->EventTeleport(0, -4828.089844, -982.234009, 464.709015);
else
pPlayer->BroadcastMessage("you cannot port to the mall while in combat");
}
}
void SetupCustomCommands(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &PlayerChat);
}