From 9b5321c1064dfc8c053349ab7df8f2f9bddccba9 Mon Sep 17 00:00:00 2001 From: Akbar Yahya Date: Wed, 23 Nov 2022 22:01:21 +0800 Subject: [PATCH] Add proto: * DropHintNotify * WorldChestOpenNotify For purpose: Implement new drop system. Full chest drop support. #1951 https://github.com/Grasscutters/Grasscutter/pull/1951/files --- proto/DropHintNotify.proto | 30 ++++++++++++++++++++++++++++++ proto/WorldChestOpenNotify.proto | 29 +++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 proto/DropHintNotify.proto create mode 100644 proto/WorldChestOpenNotify.proto diff --git a/proto/DropHintNotify.proto b/proto/DropHintNotify.proto new file mode 100644 index 00000000..bd88fb87 --- /dev/null +++ b/proto/DropHintNotify.proto @@ -0,0 +1,30 @@ +// Proto has been converted from Sorapointa to Grasscutter format +// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa. +// Copyright (C) 2022 Sorapointa 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 . + +syntax = "proto3"; + +import "Vector.proto"; + +option java_package = "emu.grasscutter.net.proto"; + +// CmdId: 650 +// EnetChannelId: 0 +// EnetIsReliable: true +message DropHintNotify { + Vector position = 7; + repeated uint32 item_id_list = 14; +} diff --git a/proto/WorldChestOpenNotify.proto b/proto/WorldChestOpenNotify.proto new file mode 100644 index 00000000..1e054fa3 --- /dev/null +++ b/proto/WorldChestOpenNotify.proto @@ -0,0 +1,29 @@ +// Proto has been converted from Sorapointa to Grasscutter format +// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa. +// Copyright (C) 2022 Sorapointa 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 . + +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +// CmdId: 3295 +// EnetChannelId: 0 +// EnetIsReliable: true +message WorldChestOpenNotify { + uint32 group_id = 6; + uint32 scene_id = 9; + uint32 config_id = 12; +}