Orbis
Orbis - A new Adventure A New World
- Joined
- Dec 26, 2013
- Messages
- 16
- Reaction score
- 3
Hi Guys!
I know in TFS 0.4 we find in protocollogin.cpp "bool" to send data to character list but in TFS 1.3 i don't know how i can send player information to characterlist.
Example:
How i can put this into protocollogin? Or which other any file?
Thanks in Advance!
I know in TFS 0.4 we find in protocollogin.cpp "bool" to send data to character list but in TFS 1.3 i don't know how i can send player information to characterlist.
Example:
C++:
// outfit
Database& db = Database::getInstance();
std::ostringstream query;
query << "SELECT `id`, `account_id`, `group_id`, `deletion`, `level`, `vocation`, `balance`, (SELECT `type` FROM `accounts` WHERE `accounts`.`id` = `account_id`) AS `account_type`";
DBResult_ptr result = db.storeQuery(query.str());
if (!result) {
return false;
}
result->getNumber<uint32_t>("level");
result->getNumber<uint32_t>("balance");
result->getNumber<uint32_t>("vocation");
return true;
How i can put this into protocollogin? Or which other any file?
Thanks in Advance!