From 6c551b0902a8ee4ce4bda18b97fef47f1121b751 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 5 Jun 2020 22:20:04 -0600 Subject: [PATCH] exp gain pkt --- src/packet/messages.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index 5dee9e3..077a34d 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -766,6 +766,11 @@ pub struct CreateItem { unknown: u32, } +#[pso_message(0xBF)] +pub struct GiveCharacterExp { + exp: u32, +} + //#[pso_message(0xC0)] //pub struct PlayerSoldItem { // client_id: u16, @@ -1056,6 +1061,7 @@ pub enum GameMessage { //TeamInvite(TeamInvite), //AcceptTeamInvite(AcceptTeamInvite), CreateItem(CreateItem), + GiveCharacterExp(GiveCharacterExp), DropCoordinates(DropCoordinates), SortItems(SortItems), PlayerUsedMedicalCenter(PlayerUsedMedicalCenter), @@ -1219,6 +1225,7 @@ impl PSOPacketData for GameMessage { //TeamInvite::CMD => Ok(GameMessage::TeamInvite(TeamInvite::from_bytes(&mut cur)?)), //AcceptTeamInvite::CMD => Ok(GameMessage::AcceptTeamInvite(AcceptTeamInvite::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)?)), SortItems::CMD => Ok(GameMessage::SortItems(SortItems::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::AcceptTeamInvite(data) => data.as_bytes(), GameMessage::CreateItem(data) => data.as_bytes(), + GameMessage::GiveCharacterExp(data) => data.as_bytes(), GameMessage::DropCoordinates(data) => data.as_bytes(), GameMessage::SortItems(data) => data.as_bytes(), GameMessage::PlayerUsedMedicalCenter(data) => data.as_bytes(),