472 char* zoneX = strtok((
char*)args,
" ");
473 char* zoneY = strtok(
NULL,
" ");
474 char* tail = strtok(
NULL,
"");
478 if (!zoneX || !zoneY)
481 float x = (float)atof(zoneX);
482 float y = (float)atof(zoneY);
485 if ((x == 0.0f && *zoneX !=
'0') || (y == 0.0f && *zoneY !=
'0'))
488 uint32 areaId =
id ? (
uint32)atoi(
id) : player->GetZoneId();
492 if (x < 0 || x > 100 || y < 0 || y > 100 || !areaEntry)
522 if (player->IsInFlight())
524 player->GetMotionMaster()->MovementExpired();
525 player->CleanupAfterTaxiFlight();
529 player->SaveRecallPosition();
533 player->TeleportTo(zoneEntry->
MapID, x, y, z, player->GetOrientation());
Definition: DBCStructure.h:37
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
float GetHeight(float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const
Definition: Map.cpp:2314
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Language.h:297
uint32 MapID
Definition: DBCStructure.h:40
Definition: Language.h:296
Player * GetPlayer() const
Definition: WorldSession.h:927
T max(const T &x, const T &y)
Definition: g3dmath.h:320
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTablefmt)
uint32 GetId(void) const
Definition: Map.h:325
Definition: Language.h:295
float GetWaterLevel(float x, float y) const
Definition: Map.cpp:2582
G3D::int16 z
Definition: Vector3int16.h:46
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
char * AreaName_lang
Definition: DBCStructure.h:51
uint32 ParentAreaID
Definition: DBCStructure.h:41
static bool IsValidMapCoord(uint32 mapid, float x, float y)
Definition: MapManager.h:83
#define sMapMgr
Definition: MapManager.h:194
WorldSession * GetSession()
Definition: Chat.h:59
uint32 ID
Definition: DBCStructure.h:39
#define ASSERT
Definition: Errors.h:55
bool Instanceable() const
Definition: Map.h:394
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37
#define MAX_HEIGHT
Definition: Map.h:247
char * extractKeyFromLink(char *text, char const *linkType, char **something1=NULL)
Definition: Chat.cpp:641
const char * GetMapName() const
Definition: Map.cpp:2644
void Zone2MapCoordinates(float &x, float &y, uint32 worldMapAreaId)
Definition: DBCStores.cpp:668