|
@ -766,6 +766,11 @@ pub struct CreateItem { |
|
|
unknown: u32,
|
|
|
unknown: u32,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[pso_message(0xBF)]
|
|
|
|
|
|
pub struct GiveCharacterExp {
|
|
|
|
|
|
exp: u32,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//#[pso_message(0xC0)]
|
|
|
//#[pso_message(0xC0)]
|
|
|
//pub struct PlayerSoldItem {
|
|
|
//pub struct PlayerSoldItem {
|
|
|
// client_id: u16,
|
|
|
// client_id: u16,
|
|
@ -1056,6 +1061,7 @@ pub enum GameMessage { |
|
|
//TeamInvite(TeamInvite),
|
|
|
//TeamInvite(TeamInvite),
|
|
|
//AcceptTeamInvite(AcceptTeamInvite),
|
|
|
//AcceptTeamInvite(AcceptTeamInvite),
|
|
|
CreateItem(CreateItem),
|
|
|
CreateItem(CreateItem),
|
|
|
|
|
|
GiveCharacterExp(GiveCharacterExp),
|
|
|
DropCoordinates(DropCoordinates),
|
|
|
DropCoordinates(DropCoordinates),
|
|
|
SortItems(SortItems),
|
|
|
SortItems(SortItems),
|
|
|
PlayerUsedMedicalCenter(PlayerUsedMedicalCenter),
|
|
|
PlayerUsedMedicalCenter(PlayerUsedMedicalCenter),
|
|
@ -1219,6 +1225,7 @@ impl PSOPacketData for GameMessage { |
|
|
//TeamInvite::CMD => Ok(GameMessage::TeamInvite(TeamInvite::from_bytes(&mut cur)?)),
|
|
|
//TeamInvite::CMD => Ok(GameMessage::TeamInvite(TeamInvite::from_bytes(&mut cur)?)),
|
|
|
//AcceptTeamInvite::CMD => Ok(GameMessage::AcceptTeamInvite(AcceptTeamInvite::from_bytes(&mut cur)?)),
|
|
|
//AcceptTeamInvite::CMD => Ok(GameMessage::AcceptTeamInvite(AcceptTeamInvite::from_bytes(&mut cur)?)),
|
|
|
CreateItem::CMD => Ok(GameMessage::CreateItem(CreateItem::from_bytes(&mut cur)?)),
|
|
|
CreateItem::CMD => Ok(GameMessage::CreateItem(CreateItem::from_bytes(&mut cur)?)),
|
|
|
|
|
|
GiveCharacterExp::CMD => Ok(GameMessage::GiveCharacterExp(GiveCharacterExp::from_bytes(&mut cur)?)),
|
|
|
DropCoordinates::CMD => Ok(GameMessage::DropCoordinates(DropCoordinates::from_bytes(&mut cur)?)),
|
|
|
DropCoordinates::CMD => Ok(GameMessage::DropCoordinates(DropCoordinates::from_bytes(&mut cur)?)),
|
|
|
SortItems::CMD => Ok(GameMessage::SortItems(SortItems::from_bytes(&mut cur)?)),
|
|
|
SortItems::CMD => Ok(GameMessage::SortItems(SortItems::from_bytes(&mut cur)?)),
|
|
|
PlayerUsedMedicalCenter::CMD => Ok(GameMessage::PlayerUsedMedicalCenter(PlayerUsedMedicalCenter::from_bytes(&mut cur)?)),
|
|
|
PlayerUsedMedicalCenter::CMD => Ok(GameMessage::PlayerUsedMedicalCenter(PlayerUsedMedicalCenter::from_bytes(&mut cur)?)),
|
|
@ -1384,6 +1391,7 @@ impl PSOPacketData for GameMessage { |
|
|
//GameMessage::TeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::TeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::AcceptTeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::AcceptTeamInvite(data) => data.as_bytes(),
|
|
|
GameMessage::CreateItem(data) => data.as_bytes(),
|
|
|
GameMessage::CreateItem(data) => data.as_bytes(),
|
|
|
|
|
|
GameMessage::GiveCharacterExp(data) => data.as_bytes(),
|
|
|
GameMessage::DropCoordinates(data) => data.as_bytes(),
|
|
|
GameMessage::DropCoordinates(data) => data.as_bytes(),
|
|
|
GameMessage::SortItems(data) => data.as_bytes(),
|
|
|
GameMessage::SortItems(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerUsedMedicalCenter(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerUsedMedicalCenter(data) => data.as_bytes(),
|
|
|