endziu2222
Active Member
- Joined
- Nov 2, 2010
- Messages
- 167
- Solutions
- 1
- Reaction score
- 44
I have this function in source:
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?
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?