WIP; buff doesn't seem to full work; need to fix op_action

This commit is contained in:
KimLS
2024-12-07 19:42:40 -08:00
parent 7083a74b31
commit 13f57f3c5d
3 changed files with 48 additions and 10 deletions
+19 -6
View File
@@ -2938,6 +2938,7 @@ namespace Laurion
ENCODE(OP_BeginCast)
{
ENCODE_LENGTH_EXACT(BeginCast_Struct);
SETUP_DIRECT_ENCODE(BeginCast_Struct, structs::BeginCast_Struct);
OUT(spell_id);
@@ -3034,6 +3035,19 @@ namespace Laurion
}
}
ENCODE(OP_ManaChange) {
ENCODE_LENGTH_EXACT(ManaChange_Struct);
SETUP_DIRECT_ENCODE(ManaChange_Struct, structs::ManaChange_Struct);
OUT(new_mana);
OUT(stamina);
OUT(spell_id);
OUT(keepcasting);
OUT(slot);
FINISH_ENCODE();
}
// DECODE methods
DECODE(OP_EnterWorld)
@@ -3238,14 +3252,13 @@ namespace Laurion
SETUP_DIRECT_DECODE(CastSpell_Struct, structs::CastSpell_Struct);
emu->slot = static_cast<uint32>(LaurionToServerCastingSlot(static_cast<spells::CastingSlot>(eq->slot)));
//We need to figure out the x y z position stuff
IN(spell_id);
emu->inventoryslot = LaurionToServerSlot(eq->inventory_slot);
emu->inventoryslot = -1;
IN(target_id);
//IN(y_pos);
//IN(x_pos);
//IN(z_pos);
IN(y_pos);
IN(x_pos);
IN(z_pos);
FINISH_DIRECT_DECODE();
}