125 std::string target_name;
129 if (strcmp(teleStr,
"$home") == 0)
132 target->TeleportTo(target->m_homebindMapId, target->m_homebindX, target->m_homebindY, target->m_homebindZ, target->GetOrientation());
141 Field* fieldsDB = resultDB->Fetch();
142 WorldLocation loc(fieldsDB[0].GetUInt16(), fieldsDB[2].GetFloat(), fieldsDB[3].GetFloat(), fieldsDB[4].GetFloat(), 0.0f);
146 Player::SavePositionInDB(loc, zoneId, target_guid, dummy);
168 std::string chrNameLink = handler->
playerLink(target_name);
170 if (target->IsBeingTeleported() ==
true)
182 if (target->IsInFlight())
184 target->GetMotionMaster()->MovementExpired();
185 target->CleanupAfterTaxiFlight();
189 target->SaveRecallPosition();
199 std::string nameLink = handler->
playerLink(target_name);
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Position.h:228
std::string name
Definition: ObjectMgr.h:132
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
Class used to access individual fields of database query result.
Definition: Field.h:56
float orientation
Definition: ObjectMgr.h:130
float position_x
Definition: ObjectMgr.h:127
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: ObjectMgr.h:125
Definition: CharacterDatabase.h:386
bool extractPlayerTarget(char *args, Player **player, ObjectGuid *player_guid=NULL, std::string *player_name=NULL)
Definition: Chat.cpp:945
Definition: PreparedStatement.h:74
bool HasLowerSecurity(Player *target, ObjectGuid guid, bool strong=false)
Definition: Chat.cpp:77
float position_z
Definition: ObjectMgr.h:129
virtual std::string GetNameLink() const
Definition: Chat.h:101
Definition: Language.h:70
Definition: Language.h:134
Definition: Language.h:195
uint32_t uint32
Definition: Define.h:150
uint16 GetUInt16() const
Definition: Field.h:108
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
float position_y
Definition: ObjectMgr.h:128
Definition: Language.h:135
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
uint32 mapId
Definition: ObjectMgr.h:131
virtual char const * GetTrinityString(uint32 entry) const
Definition: Chat.cpp:67
#define sMapMgr
Definition: MapManager.h:194
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
void extractOptFirstArg(char *args, char **arg1, char **arg2)
Definition: Chat.cpp:998
Definition: ObjectGuid.h:189
Definition: Language.h:126
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
virtual bool needReportToTarget(Player *chr) const
Definition: Chat.cpp:1056
std::string playerLink(std::string const &name) const
Definition: Chat.h:132
LowType GetCounter() const
Definition: ObjectGuid.h:221
GameTele const * extractGameTeleFromLink(char *text)
Definition: Chat.cpp:853
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58