summaryrefslogtreecommitdiffstats
path: root/src/account-server/serverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/serverhandler.cpp')
-rw-r--r--src/account-server/serverhandler.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index a6cf21f..106f582 100644
--- a/src/account-server/serverhandler.cpp
+++ b/src/account-server/serverhandler.cpp
@@ -562,10 +562,17 @@ void GameServerHandler::syncDatabase(MessageIn &msg)
int CharId = msg.readLong();
int CharPoints = msg.readLong();
int CorrPoints = msg.readLong();
- int AttribId = msg.readByte();
- int AttribValue = msg.readLong();
- storage->updateCharacterPoints(CharId, CharPoints, CorrPoints,
- AttribId, AttribValue);
+ storage->updateCharacterPoints(CharId, CharPoints, CorrPoints);
+ } break;
+
+ case SYNC_CHARACTER_ATTRIBUTE:
+ {
+ LOG_DEBUG("received SYNC_CHARACTER_ATTRIBUTE");
+ int charId = msg.readLong();
+ int attrId = msg.readLong();
+ double base = msg.readDouble();
+ double mod = msg.readDouble();
+ storage->updateAttribute(charId, attrId, base, mod);
} break;
case SYNC_CHARACTER_SKILL: