81 {
83
84 if (!player)
85 {
86 return false;
87 }
88
91
93 {
97
98 if (result)
99 {
100 Field* fields = result->Fetch();
111
112 handler->
PSendSysMessage(
"Health: |cff00ffff{}|r - Stamina: |cff00ffff{}|r", MaxHealth, Stamina);
113 handler->
PSendSysMessage(
"Strength: |cff00ffff{}|r - Agility: |cff00ffff{}|r", Strength, Agility);
114 handler->
PSendSysMessage(
"Intellect: |cff00ffff{}|r - Spirit: |cff00ffff{}|r", Intellect, Spirit);
115 handler->
PSendSysMessage(
"AttackPower: |cff00ffff{}|r - SpellPower: |cff00ffff{}|r", AttackPower, SpellPower);
116 handler->
PSendSysMessage(
"Armor: |cff00ffff{}|r - Resilience: |cff00ffff{}|r", Armor, Resilience);
117 }
118 }
119
120 return true;
121 }
std::uint32_t uint32
Definition: Define.h:107
std::int16_t int16
Definition: Define.h:104
@ CONFIG_MIN_LEVEL_STAT_SAVE
Definition: IWorld.h:349
@ CHAR_SEL_CHAR_STATS
Definition: CharacterDatabase.h:449
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: DatabaseEnvFwd.h:45
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
#define sWorld
Definition: World.h:443
Definition: PreparedStatement.h:157
Class used to access individual fields of database query result.
Definition: Field.h:98
std::enable_if_t< std::is_arithmetic_v< T >, T > Get() const
Definition: Field.h:112
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition: PreparedStatement.h:77
Player * getSelectedPlayerOrSelf() const
Definition: Chat.cpp:417
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
LowType GetCounter() const
Definition: ObjectGuid.h:145
Definition: Player.h:1081
std::string GetPlayerName()
Definition: Player.cpp:16327
float GetAverageItemLevel()
Definition: Player.cpp:15754