mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Implemented RoF2 encoder for OP_CrystalCountUpdate (0x467f)
This commit is contained in:
parent
73e91be281
commit
3e25a3df5c
@ -4389,6 +4389,19 @@ namespace RoF2
|
|||||||
delete in;
|
delete in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ENCODE(OP_CrystalCountUpdate)
|
||||||
|
{
|
||||||
|
ENCODE_LENGTH_EXACT(CrystalCountUpdate_Struct);
|
||||||
|
SETUP_DIRECT_ENCODE(CrystalCountUpdate_Struct, structs::CrystalCountUpdate_Struct);
|
||||||
|
|
||||||
|
OUT(CurrentRadiantCrystals);
|
||||||
|
OUT(CareerRadiantCrystals);
|
||||||
|
OUT(CurrentEbonCrystals);
|
||||||
|
OUT(CareerEbonCrystals);
|
||||||
|
|
||||||
|
FINISH_ENCODE();
|
||||||
|
}
|
||||||
|
|
||||||
// DECODE methods
|
// DECODE methods
|
||||||
|
|
||||||
DECODE(OP_AdventureMerchantSell)
|
DECODE(OP_AdventureMerchantSell)
|
||||||
|
|||||||
@ -141,6 +141,7 @@ E(OP_ZoneEntry)
|
|||||||
E(OP_ZonePlayerToBind)
|
E(OP_ZonePlayerToBind)
|
||||||
E(OP_ZoneServerInfo)
|
E(OP_ZoneServerInfo)
|
||||||
E(OP_ZoneSpawns)
|
E(OP_ZoneSpawns)
|
||||||
|
E(OP_CrystalCountUpdate)
|
||||||
// Begin RoF Decodes
|
// Begin RoF Decodes
|
||||||
D(OP_AdventureMerchantSell)
|
D(OP_AdventureMerchantSell)
|
||||||
D(OP_AltCurrencySell)
|
D(OP_AltCurrencySell)
|
||||||
|
|||||||
@ -5081,6 +5081,15 @@ struct MercenaryMerchantResponse_Struct {
|
|||||||
/*0004*/
|
/*0004*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Sent by Server to update character crystals.
|
||||||
|
struct CrystalCountUpdate_Struct
|
||||||
|
{
|
||||||
|
/*000*/ uint32 CurrentRadiantCrystals;
|
||||||
|
/*004*/ uint32 CareerRadiantCrystals;
|
||||||
|
/*008*/ uint32 CurrentEbonCrystals;
|
||||||
|
/*012*/ uint32 CareerEbonCrystals;
|
||||||
|
};
|
||||||
|
|
||||||
}; /*structs*/
|
}; /*structs*/
|
||||||
|
|
||||||
}; /*RoF2*/
|
}; /*RoF2*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user