-Exp update almost works, but inital at zonein is broken

-MoveItem has opcode now but is not translating correctly.
This commit is contained in:
KimLS
2024-12-02 23:36:13 -08:00
parent af8f85cfd9
commit 32a1d7c43e
4 changed files with 14 additions and 10 deletions
+11
View File
@@ -2671,6 +2671,17 @@ namespace Laurion
FINISH_ENCODE();
}
ENCODE(OP_ExpUpdate)
{
SETUP_DIRECT_ENCODE(ExpUpdate_Struct, structs::ExpUpdate_Struct);
//later we should change the underlying server to use this more accurate value
//and encode the 330 in the other patches
eq->exp = emu->exp * 100000 / 330;
FINISH_ENCODE();
}
// DECODE methods
DECODE(OP_EnterWorld)
+1
View File
@@ -31,6 +31,7 @@ E(OP_Damage)
E(OP_Animation)
E(OP_Death)
E(OP_MoveItem)
E(OP_ExpUpdate)
//list of packets we need to decode on the way in:
D(OP_EnterWorld)
D(OP_ZoneEntry)