|
|
@ -187,7 +187,7 @@ pub struct PlayerFeedMag { |
|
|
|
}
|
|
|
|
|
|
|
|
#[pso_message(0x29)]
|
|
|
|
pub struct PlayerSplitItemStack {
|
|
|
|
pub struct PlayerNoLongerHasItem {
|
|
|
|
item_id: u32,
|
|
|
|
amount: u32,
|
|
|
|
}
|
|
|
@ -970,7 +970,7 @@ pub enum GameMessage { |
|
|
|
PlayerUseItem(PlayerUseItem),
|
|
|
|
PlayerFeedMag(PlayerFeedMag),
|
|
|
|
PlayerDropItem(PlayerDropItem),
|
|
|
|
PlayerSplitItemStack(PlayerSplitItemStack),
|
|
|
|
PlayerNoLongerHasItem(PlayerNoLongerHasItem),
|
|
|
|
AddItemToInventory(AddItemToInventory),
|
|
|
|
InitializeSpeechNpc(InitializeSpeechNpc),
|
|
|
|
FinishSpeechNpc(FinishSpeechNpc),
|
|
|
@ -1134,7 +1134,7 @@ impl PSOPacketData for GameMessage { |
|
|
|
PlayerUseItem::CMD => Ok(GameMessage::PlayerUseItem(PlayerUseItem::from_bytes(&mut cur)?)),
|
|
|
|
PlayerFeedMag::CMD => Ok(GameMessage::PlayerFeedMag(PlayerFeedMag::from_bytes(&mut cur)?)),
|
|
|
|
PlayerDropItem::CMD => Ok(GameMessage::PlayerDropItem(PlayerDropItem::from_bytes(&mut cur)?)),
|
|
|
|
PlayerSplitItemStack::CMD => Ok(GameMessage::PlayerSplitItemStack(PlayerSplitItemStack::from_bytes(&mut cur)?)),
|
|
|
|
PlayerNoLongerHasItem::CMD => Ok(GameMessage::PlayerNoLongerHasItem(PlayerNoLongerHasItem::from_bytes(&mut cur)?)),
|
|
|
|
AddItemToInventory::CMD => Ok(GameMessage::AddItemToInventory(AddItemToInventory::from_bytes(&mut cur)?)),
|
|
|
|
InitializeSpeechNpc::CMD => Ok(GameMessage::InitializeSpeechNpc(InitializeSpeechNpc::from_bytes(&mut cur)?)),
|
|
|
|
FinishSpeechNpc::CMD => Ok(GameMessage::FinishSpeechNpc(FinishSpeechNpc::from_bytes(&mut cur)?)),
|
|
|
@ -1300,7 +1300,7 @@ impl PSOPacketData for GameMessage { |
|
|
|
GameMessage::PlayerUseItem(data) => data.as_bytes(),
|
|
|
|
GameMessage::PlayerFeedMag(data) => data.as_bytes(),
|
|
|
|
GameMessage::PlayerDropItem(data) => data.as_bytes(),
|
|
|
|
GameMessage::PlayerSplitItemStack(data) => data.as_bytes(),
|
|
|
|
GameMessage::PlayerNoLongerHasItem(data) => data.as_bytes(),
|
|
|
|
GameMessage::AddItemToInventory(data) => data.as_bytes(),
|
|
|
|
GameMessage::InitializeSpeechNpc(data) => data.as_bytes(),
|
|
|
|
GameMessage::FinishSpeechNpc(data) => data.as_bytes(),
|
|
|
|