265 std::string nameTarget;
266 std::string zoneName;
267 const char* onlineState =
"";
270 ObjectGuid parseGUID = ObjectGuid::Create<HighGuid::Player>(strtoull(args,
nullptr, 10));
276 guidTarget = parseGUID;
279 else if (!handler->
extractPlayerTarget((
char*)args, &playerTarget, &guidTarget, &nameTarget))
287 groupTarget = playerTarget->GetGroup();
296 groupTarget =
sGroupMgr->GetGroupByDbStoreId((*resultGroup)[0].GetUInt32());
315 for (Group::MemberSlotList::const_iterator itr = members.begin(); itr != members.end(); ++itr)
329 flags.append(
"MainTank");
336 flags.append(
"MainAssist");
347 onlineState =
"online";
348 phase = (!p->IsGameMaster() ? p->GetPhaseMask() : -1);
361 zoneName =
"<ERROR>";
362 onlineState =
"Offline";
368 zoneName.c_str(), phase, slot.
guid.
ToString().c_str(), flags.c_str(),
uint8 roles
Definition: Group.h:201
Definition: DBCStructure.h:37
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
bool isRaidGroup() const
Definition: Group.cpp:2509
std::list< MemberSlot > MemberSlotList
Definition: Group.h:204
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Language.h:950
ObjectGuid guid
Definition: Group.h:196
bool extractPlayerTarget(char *args, Player **player, ObjectGuid *player_guid=NULL, std::string *player_name=NULL)
Definition: Chat.cpp:945
Definition: PreparedStatement.h:74
Definition: Language.h:953
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTablefmt)
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
Definition: Language.h:952
std::string GetRolesString(uint8 roles)
Definition: LFG.cpp:40
uint32_t uint32
Definition: Define.h:150
#define sGroupMgr
Definition: GroupMgr.h:59
uint8 flags
Definition: Group.h:200
char * AreaName_lang
Definition: DBCStructure.h:51
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
std::string name
Definition: Group.h:197
uint32 ParentAreaID
Definition: DBCStructure.h:41
MemberSlotList const & GetMemberSlots() const
Definition: Group.h:294
Definition: CharacterDatabase.h:69
static bool GetPlayerNameByGUID(ObjectGuid const &guid, std::string &name)
Definition: ObjectMgr.cpp:2258
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
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
Definition: ObjectGuid.h:189
uint8 flags
Definition: DisableMgr.cpp:44
std::string ToString() const
Definition: ObjectGuid.cpp:99
LowType GetCounter() const
Definition: ObjectGuid.h:221