fix unlock avatar skill

This commit is contained in:
Yuuki
2024-07-03 15:15:10 +08:00
parent beb971f6ff
commit eea7861a01
7 changed files with 69 additions and 79 deletions

View File

@@ -1,13 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// 4.6.0
// CmdId: 854
// 4.7.0
// CmdId: 9268
// BHMAKOIEFJM
message AvatarSkillChangeNotify {
uint32 skill_depot_id = 1;
uint32 old_level = 2;
uint32 avatar_skill_id = 5;
uint32 cur_level = 6;
uint32 entity_id = 10;
uint64 avatar_guid = 11;
uint32 skill_depot_id = 11;
uint32 old_level = 3;
uint32 avatar_skill_id = 1;
uint32 cur_level = 13;
uint32 entity_id = 12;
uint64 avatar_guid = 8;
}

View File

@@ -2,14 +2,16 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 25636
// 4.7.0
// CmdId: 568
// HKHPJBNDJAD
message AvatarSkillDepotChangeNotify {
uint32 entity_id = 3;
uint32 core_proud_skill_level = 5;
map<uint32, uint32> proud_skill_extra_level_map = 7;
uint64 avatar_guid = 8;
map<uint32, uint32> skill_level_map = 9;
repeated uint32 proud_skill_list = 11;
repeated uint32 talent_id_list = 12;
uint32 skill_depot_id = 14;
uint32 entity_id = 11;
uint32 core_proud_skill_level = 6;
map<uint32, uint32> proud_skill_extra_level_map = 8;
uint64 avatar_guid = 13;
map<uint32, uint32> skill_level_map = 1;
repeated uint32 proud_skill_list = 12;
repeated uint32 talent_id_list = 9;
uint32 skill_depot_id = 3;
}

View File

@@ -3,9 +3,9 @@ option java_package = "emu.grasscutter.net.proto";
import "AvatarSkillInfo.proto";
// 4.6.0
// CmdId: 28799
// 4.7.0
// CmdId: 28706
message AvatarSkillInfoNotify {
map<uint32, AvatarSkillInfo> skill_map = 2;
uint64 guid = 4;
uint64 guid = 1;
}

View File

@@ -1,25 +1,10 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 22843
// Obf: MIPDHBPHHBA
// 4.7.0
// CmdId: 9198
// Obf: LPOHNDHLKFF
message AvatarSkillMaxChargeCountNotify {
uint32 skill_id = 15;
uint32 max_charge_count = 4;
uint64 avatar_guid = 7;
uint32 skill_id = 12;
uint32 max_charge_count = 11;
uint64 avatar_guid = 6;
}

View File

@@ -1,10 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// 4.6.0
// CmdId: 3446
// 4.7.0
// CmdId: 22618
// CCDGPIJIJGE
message AvatarSkillUpgradeReq {
uint64 avatar_guid = 5;
uint32 old_level = 12;
uint32 avatar_skill_id = 14;
uint64 avatar_guid = 14;
uint32 old_level = 4;
uint32 avatar_skill_id = 3;
}

View File

@@ -1,12 +1,13 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// 4.6.0
// CmdId: 119
// 4.7.0
// CmdId: 26538
// NMPDAEHOGGB
message AvatarSkillUpgradeRsp {
uint32 old_level = 6;
uint64 avatar_guid = 8;
int32 retcode = 9;
uint32 cur_level = 10;
uint32 avatar_skill_id = 15;
uint32 old_level = 13;
uint64 avatar_guid = 10;
int32 retcode = 11;
uint32 cur_level = 9;
uint32 avatar_skill_id = 8;
}