1499 std::string targetName;
1503 ObjectGuid parseGUID = ObjectGuid::Create<HighGuid::Player>(strtoull(args,
nullptr, 10));
1509 targetGuid = parseGUID;
1562 int64 muteTime = -1;
1573 uint8 raceid, classid = 0;
1577 uint32 totalPlayerTime = 0;
1593 uint8 guildRankId = 0;
1594 std::string guildName;
1595 std::string guildRank;
1597 std::string officeNote;
1607 accId = target->GetSession()->GetAccountId();
1608 money = target->GetMoney();
1609 totalPlayerTime = target->GetTotalPlayedTime();
1610 level = target->getLevel();
1611 latency = target->GetSession()->GetLatency();
1612 raceid = target->getRace();
1613 classid = target->getClass();
1614 muteTime = target->GetSession()->m_muteTime;
1615 mapId = target->GetMapId();
1616 areaId = target->GetAreaId();
1619 phase = target->GetPhaseMask();
1636 Field* fields = result->Fetch();
1637 totalPlayerTime = fields[0].
GetUInt32();
1663 Field* fields = result->Fetch();
1676 uint32 ip = inet_addr(lastIp.c_str());
1684 Field* fields2 = result2->Fetch();
1685 lastIp.append(
" (");
1686 lastIp.append(fields2[0].GetString());
1706 std::string nameLink = handler->
playerLink(targetName);
1722 Field* fields = result2->Fetch();
1723 banTime =
int64(fields[1].GetUInt64() ? 0 : fields[0].GetUInt32());
1735 Field* fields = result4->Fetch();
1748 Field* fields5 = result5->Fetch();
1752 guildRankId = fields5[3].
GetUInt8();
1764 if (target && target->IsGameMaster())
1805 if (target && !target->IsGameMaster())
1832 if (!guildName.empty())
1838 if (!officeNote.empty())
1852 Field* fields = result6->Fetch();
Definition: DBCStructure.h:37
Definition: SharedDefines.h:231
Definition: Language.h:828
uint32 Realm
Definition: Realm.h:53
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
int8_t int8
Definition: Define.h:148
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
uint64 GetUInt64() const
Definition: Field.h:184
Definition: CharacterDatabase.h:382
std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly)
Definition: Util.cpp:109
Definition: Language.h:827
AccountTypes GetSecurity() const
Definition: WorldSession.h:921
int64_t int64
Definition: Define.h:145
Realm realm
Definition: World.cpp:3485
Definition: Language.h:1107
Class used to access individual fields of database query result.
Definition: Field.h:56
Definition: LoginDatabase.h:95
Definition: Language.h:832
#define UI64LIT(N)
Definition: Define.h:138
Definition: DBCStructure.h:830
Definition: LoginDatabase.h:86
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Language.h:820
#define sWorld
Definition: World.h:887
char const * GetRaceName(uint8 race, uint8)
Definition: DBCStores.cpp:587
uint64 LowType
Definition: ObjectGuid.h:199
bool extractPlayerTarget(char *args, Player **player, ObjectGuid *player_guid=NULL, std::string *player_name=NULL)
Definition: Chat.cpp:945
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: Language.h:831
Definition: PreparedStatement.h:74
char const * GetClassName(uint8 class_, uint8)
Definition: DBCStores.cpp:593
bool HasLowerSecurity(Player *target, ObjectGuid guid, bool strong=false)
Definition: Chat.cpp:77
Definition: Language.h:833
Definition: Language.h:819
Definition: Language.h:826
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTablefmt)
Definition: Language.h:836
LoginDatabaseWorkerPool LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
Definition: UpdateFields.h:198
uint8 GetUInt8() const
Definition: Field.h:70
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
Definition: Language.h:821
Definition: Language.h:815
void EndianConvertReverse(T &)
Definition: ByteConverter.h:49
Definition: Language.h:79
Battlenet::RealmHandle Id
Definition: Realm.h:86
Definition: Language.h:70
Definition: CharacterDatabase.h:383
Definition: Language.h:1101
Definition: Language.h:838
uint32_t uint32
Definition: Define.h:150
AccountTypes
Definition: Common.h:106
Definition: Language.h:823
Definition: LoginDatabase.h:87
Definition: Language.h:817
char * AreaName_lang
Definition: DBCStructure.h:51
uint16 GetUInt16() const
Definition: Field.h:108
Definition: Language.h:1106
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
Definition: SharedDefines.h:232
Definition: Language.h:1096
void setInt32(const uint8 index, const int32 value)
Definition: PreparedStatement.cpp:151
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
uint32 ParentAreaID
Definition: DBCStructure.h:41
Definition: Language.h:824
int64_t int64
Definition: g3dmath.h:169
Definition: Language.h:822
Definition: Language.h:816
static bool GetPlayerNameByGUID(ObjectGuid const &guid, std::string &name)
Definition: ObjectMgr.cpp:2258
Definition: Language.h:835
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
DBCStorage< MapEntry > sMapStore(Mapfmt)
Definition: Language.h:818
Definition: Language.h:422
virtual char const * GetTrinityString(uint32 entry) const
Definition: Chat.cpp:67
uint32 GetUInt32() const
Definition: Field.h:146
int32_t int32
Definition: g3dmath.h:167
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
WorldSession * GetSession()
Definition: Chat.h:59
uint8_t uint8
Definition: Define.h:152
Definition: Language.h:829
Definition: Language.h:834
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
char * MapName_lang
Definition: DBCStructure.h:838
virtual LocaleConstant GetSessionDbcLocale() const
Definition: Chat.cpp:1062
Definition: ObjectGuid.h:189
uint32_t uint32
Definition: g3dmath.h:168
Definition: CharacterDatabase.h:385
Definition: Language.h:421
Definition: Language.h:830
Definition: CharacterDatabase.h:107
std::string GetString() const
Definition: Field.h:276
Definition: Language.h:78
virtual bool HasPermission(uint32 permission) const
Definition: Chat.h:100
std::string ToString() const
Definition: ObjectGuid.cpp:99
std::string playerLink(std::string const &name) const
Definition: Chat.h:132
Definition: CharacterDatabase.h:384
Definition: Language.h:839
LowType GetCounter() const
Definition: ObjectGuid.h:221
Definition: Language.h:825