From 6fab461d51c93ec803e67f6fae2580e0e6e77b34 Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sun, 7 Jun 2020 18:32:18 -0300 Subject: [PATCH] fix some player position variables --- src/packet/messages.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index 077a34d..ec14310 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -124,12 +124,12 @@ pub struct PlayerChangedMap { #[pso_message(0x1F)] pub struct PlayerChangedMap2 { - unknown1: u32, + map_area: u32, } #[pso_message(0x20)] pub struct TellOtherPlayerMyLocation { - unknown1: u32, + map_area: u32, x: f32, y: f32, z: f32, @@ -212,9 +212,9 @@ pub struct AddItemToInventory { pub struct InitializeSpeechNpc { unknown1: u16, unknown2: u16, - location: u32, - location2: u32, - unknown3: u32, + x: f32, + z: f32, + unknown3: f32, } #[pso_message(0x2D)] @@ -295,8 +295,8 @@ pub struct PlayerLoadedIn { #[pso_message(0x40)] pub struct PlayerWalking { x: f32, - y: f32, z: f32, + unknown: f32, } #[pso_message(0x42)] @@ -402,9 +402,9 @@ pub struct TalkToNpc { #[pso_message(0x55)] pub struct PlayerWarped { + unknown1: u32, x: f32, y: f32, - z: f32, } #[pso_message(0x58)]