Browse Source

Merge pull request 'map_area' (#37) from map_area into master

Reviewed-by: jake <jake@sharnoth.com>
pull/3/head
jake 4 years ago
parent
commit
0ef5e6a1ba
  1. 31
      src/packet/messages.rs

31
src/packet/messages.rs

@ -124,12 +124,14 @@ pub struct PlayerChangedMap {
#[pso_message(0x1F)]
pub struct PlayerChangedMap2 {
map_area: u32,
map_area: u16,
_unknown1: u16,
}
#[pso_message(0x20)]
pub struct TellOtherPlayerMyLocation {
map_area: u32,
map_area: u16,
_unknown1: u16,
x: f32,
y: f32,
z: f32,
@ -163,7 +165,7 @@ pub struct PlayerTeleported {
#[pso_message(0x25)]
pub struct PlayerEquipItem {
item_id: u32,
variety: u8,
sub_menu: u8,
unknown1: u16,
}
@ -193,7 +195,7 @@ pub struct PlayerSplitItemStack {
#[pso_message(0x2A)]
pub struct PlayerDropItem {
unknown1: u16,
area: u16,
map_area: u16,
item_id: u32,
x: f32,
y: f32,
@ -277,7 +279,8 @@ pub struct PlayerSpawnedIntoArea {
#[pso_message(0x3E)]
pub struct PlayerStopped {
unknown1: u32,
unknown2: u32,
area: u16,
room: u16,
x: f32,
y: f32,
z: f32,
@ -416,7 +419,7 @@ pub struct LobbyEmote {
pub struct RemoveItemFromFloor {
client_id: u8,
unknown: u8,
area: u8,
map_area: u8,
unknown2: u8,
item_id: u32,
}
@ -424,12 +427,10 @@ pub struct RemoveItemFromFloor {
#[pso_message(0x5A)]
pub struct PickupItem {
item_id: u32,
area: u8,
map_area: u8,
unknown: [u8; 3],
}
// this name may be a bit incorrect, it differs from ItemDrop only in that
// it does not have a y as DropCoordinates only specifies an xz
#[pso_message(0x5D)]
pub struct DropSplitStack {
pub map_area: u8,
@ -455,7 +456,7 @@ pub struct DropSplitStack {
#[pso_message(0x5F)]
pub struct ItemDrop {
pub area: u8,
pub map_area: u8,
pub variety: u8,
pub unknown: u16,
pub x: f32,
@ -469,7 +470,7 @@ pub struct ItemDrop {
#[pso_message(0x60)]
pub struct RequestItem {
area: u8,
map_area: u8,
pt_index: u8,
enemy_id: u16,
x: f32,
@ -531,12 +532,13 @@ pub struct WordSelect {
#[pso_message(0x75)]
pub struct PlayerChangedFloor {
map: u32,
data: [u8; 4],
}
#[pso_message(0x76)]
pub struct KillMonster {
data: [u8; 4],
map_area: u16,
data: [u8; 2],
}
//#[pso_message(0x77)]
@ -791,7 +793,8 @@ pub struct GiveCharacterExp {
#[pso_message(0xC3)]
pub struct DropCoordinates {
map_area: u32,
map_area: u16,
room: u16,
x: f32,
z: f32,
item_id: u32,

Loading…
Cancel
Save