From e7e7b48afb23ebec4cf9cd3d983557e021ff5d38 Mon Sep 17 00:00:00 2001 From: Yuuki <6851027-yukiz@users.noreply.gitlab.com> Date: Wed, 3 Jul 2024 17:30:46 +0800 Subject: [PATCH] fix level up avatar --- deobf.proto | 8 ++++---- proto/AvatarPromoteReq.proto | 7 ++++--- proto/AvatarPromoteRsp.proto | 10 +++++----- proto/AvatarUpgradeReq.proto | 8 ++++---- proto/AvatarUpgradeRsp.proto | 14 +++++++------- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/deobf.proto b/deobf.proto index 907f9e2a..e546dba5 100644 --- a/deobf.proto +++ b/deobf.proto @@ -7649,7 +7649,7 @@ message FBJMKLAOICH { } // CmdId: 24626 -message BGKBHCBDMCD { +message AvatarUpgradeReq { repeated ItemParam item_param_list = 6; uint64 avatar_guid = 7; } @@ -8290,7 +8290,7 @@ enum EnterCustomDungeonType { } // CmdId: 24717 -message BLLMLEOCFDA { +message AvatarUpgradeRsp { uint32 old_level = 1; uint64 avatar_guid = 2; uint32 cur_level = 12; @@ -21833,7 +21833,7 @@ message FACDMKCFPGC { } // CmdId: 20328 -message PJPDLMEIEKL { +message AvatarPromoteRsp { uint64 guid = 1; int32 retcode = 12; } @@ -30792,7 +30792,7 @@ message LOHMCJFCLLE { } // CmdId: 20441 -message GIOBHMNCNGA { +message AvatarPromoteReq { uint64 guid = 11; } diff --git a/proto/AvatarPromoteReq.proto b/proto/AvatarPromoteReq.proto index c86e7673..43374864 100644 --- a/proto/AvatarPromoteReq.proto +++ b/proto/AvatarPromoteReq.proto @@ -1,8 +1,9 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; -// 4.6.0 -// CmdId: 2232 +// 4.7.0 +// CmdId: 20441 +// GIOBHMNCNGA message AvatarPromoteReq { - uint64 guid = 14; + uint64 guid = 11; } diff --git a/proto/AvatarPromoteRsp.proto b/proto/AvatarPromoteRsp.proto index ff2b50d9..0acceaae 100644 --- a/proto/AvatarPromoteRsp.proto +++ b/proto/AvatarPromoteRsp.proto @@ -1,10 +1,10 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; -//AvatarPromoteRsp -// 4.6.0 -// CmdId: 3564 +// 4.7.0 +// CmdId: 26563 or 21074 or 29410 or 20328 (t1) or 26699 +// PJPDLMEIEKL message AvatarPromoteRsp { - uint64 guid = 13; - int32 retcode = 15; + uint64 guid = 1; + int32 retcode = 12; } \ No newline at end of file diff --git a/proto/AvatarUpgradeReq.proto b/proto/AvatarUpgradeReq.proto index 791d9dce..20213126 100644 --- a/proto/AvatarUpgradeReq.proto +++ b/proto/AvatarUpgradeReq.proto @@ -4,10 +4,10 @@ option java_package = "emu.grasscutter.net.proto"; import "ItemParam.proto"; -// CmdId: 2937 -// Version: 4.6.0 -// Obfs: HFANJCHEDHC +// CmdId: 24626 +// Version: 4.7.0 +// Obfs: BGKBHCBDMCD message AvatarUpgradeReq { repeated ItemParam item_param_list = 6; - uint64 avatar_guid = 15; + uint64 avatar_guid = 7; } \ No newline at end of file diff --git a/proto/AvatarUpgradeRsp.proto b/proto/AvatarUpgradeRsp.proto index 4bc196ac..af2aa693 100644 --- a/proto/AvatarUpgradeRsp.proto +++ b/proto/AvatarUpgradeRsp.proto @@ -1,12 +1,12 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; -// 4.6.0 -// CmdId: 6374 -// maybe +// 4.7.0 +// CmdId: 24717 +// BLLMLEOCFDA message AvatarUpgradeRsp { - int32 retcode = 2; - uint32 old_level = 8; - uint64 avatar_guid = 10; - uint32 cur_level = 11; + int32 retcode = 13; + uint32 old_level = 1; + uint64 avatar_guid = 2; + uint32 cur_level = 12; } \ No newline at end of file