summaryrefslogtreecommitdiff
path: root/src/game-server/accountconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/accountconnection.cpp')
-rw-r--r--src/game-server/accountconnection.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp
index bbdcdd13..6d6276d8 100644
--- a/src/game-server/accountconnection.cpp
+++ b/src/game-server/accountconnection.cpp
@@ -362,3 +362,19 @@ void AccountConnection::updateExperience(const int CharId, const int SkillId,
mSyncBuffer->writeLong(SkillValue);
syncChanges();
}
+
+void AccountConnection::updateOnlineStatus(const int CharId, const bool Online)
+{
+ mSyncMessages++;
+ mSyncBuffer->writeByte(SYNC_ONLINE_STATUS);
+ mSyncBuffer->writeLong(CharId);
+ if (Online)
+ {
+ mSyncBuffer->writeByte(0x01);
+ }
+ else
+ {
+ mSyncBuffer->writeByte(0x00);
+ }
+ syncChanges();
+}