mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 16:12:27 +00:00
Update shareddb.cpp
This commit is contained in:
parent
fd8b00928b
commit
22867259fa
@ -122,16 +122,6 @@ bool SharedDatabase::SetGMFlymode(uint32 account_id, uint8 flymode)
|
||||
return a.id > 0;
|
||||
}
|
||||
|
||||
uint32 SharedDatabase::GetTotalTimeEntitledOnAccount(uint32 AccountID) {
|
||||
uint32 EntitledTime = 0;
|
||||
const std::string query = StringFormat("SELECT `time_played` FROM `character_data` WHERE `account_id` = %u", AccountID);
|
||||
auto results = QueryDatabase(query);
|
||||
for (auto& row = results.begin(); row != results.end(); ++row) {
|
||||
EntitledTime += Strings::ToUnsignedInt(row[0]);
|
||||
}
|
||||
return EntitledTime;
|
||||
}
|
||||
|
||||
void SharedDatabase::SetMailKey(uint32 character_id, int ip_address, int mail_key)
|
||||
{
|
||||
std::string full_mail_key;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user