• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Set Idle when Training.

endziu2222

Active Member
Joined
Nov 2, 2010
Messages
167
Solutions
1
Reaction score
44
I have this function in source:

Lua:
void Player::setTraining(bool value) {
    for (const auto &[key, player] : g_game().getPlayers()) {
        if (!this->isInGhostMode() || player->isAccessPlayer()) {
            player->notifyStatusChange(this, value ? VIPSTATUS_TRAINING : VIPSTATUS_ONLINE, false);
        }
    }
    this->statusVipList = VIPSTATUS_TRAINING;
    setExerciseTraining(value);
}

I wonder if I can actually modify it so when player does indeed training his status is changed to : onIdleStatus(); I just do not know how to bite it.

I have tried something like this but it does not work, but when I die It shows on my site that player is AFK and when he enters the world he is back online.

Do I also have to modify my AAC by slaw? to work with that? or or or? anybody?
 
Back
Top