Files
fc/server/tools/gen_proto/cfg/proto_282.erl
T

436 lines
16 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 年兽
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_282).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"年兽"
,["common.hrl", "holiday_nian.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 28200
,log_title = "基础数据信息"
,req_desc = "基础数据信息"
,req = []
,reply = [
{uint32, camp_id, "活动id 0表示没有活动"}
,{uint32, val, "当前进度值"}
,{uint32, max_val, "最大进度值"}
,{uint8, flag, "是否有限时年兽 是1 否0"}
,{uint32, end_time, "限时年兽过期时间戳 没有时为0"}
,{uint32, last_red_pacekt_num, "全服红包剩余数量"}
,{uint32, max_red_packet_num, "全服最大红包数量"}
,{uint32, look_id, "形象ID"}
,{array, single, list, "已激活形象列表", [
{uint32, id, "形象ID"}
]}
]
}
,#rpc{
code = 28201
,log_title = "格子数据信息"
,req_desc = "格子数据信息"
,req = []
,reply = [
{uint32, index, "当前所在格子"}
,{uint32, map_id, "地图id"}
,{array, nian_tile, tile_list, "格子列表",
[ {uint32, index, "格子序号"}
,{uint32, evtid, "事件ID(0:表示没有事件)"}
,{uint8, is_walk, "是否可行走0不可行走 1可行走 "}
,{uint32, res_id, "资源ID"}
]}
]
}
,#rpc{
code = 28202
,log_title = "移动进入指定格子,需接收到成功后方可移动"
,req_desc = "移动进入指定格子,需接收到成功后方可移动"
,req = [
{uint32, index, "目标格子"}
]
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, index, "进入目标格子"}
]
}
,#rpc{
code = 28203
,log_title = "操作指定格子事件"
,req_desc = "操作指定格子事件"
,req = [
{uint32, index, "格子"}
,{uint8, action, "操作类型(0:请求数据 1:确认操作处理)"}
,{array, tuple, ext_list, "额外参数(没有则不传 不同事件按约定传值即可 非常特殊事件独立其它协议处理)", [
{uint8, type, "参数类型(双方约定) 1战斗事件阵法 2战斗事件神器 3战斗事件自己的英雄 4是否跳过战斗"}
,{uint32, val1, "参数1"}
,{uint32, val2, "参数2"}
]}
]
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, index, "格子"}
,{uint8, action, "操作类型(0:请求数据 1:确认操作处理)"}
]
}
,#rpc{
code = 28204
,log_title = "进入地图"
,req_desc = "进入地图"
,req = []
,reply_desc = "进入地图"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
,{uint8, is_first, "是否第一次进入 是1 否0"}
]
}
,#rpc{
code = 28205
,log_title = "事件信息返回"
,req_desc = "事件信息返回"
,req = []
,reply_desc = "事件信息返回"
,reply = [
{uint32, index, "格子索引值"}
,{array, tuple, ext_list, "返回信息", [
{uint32, type, "事件类型 1告示牌id 2npc对话id 3可破坏障碍道具列表 4获得道具背包的道具"}
,{uint32, val1, "参数1"}
,{uint32, val2, "参数2"}
]}
]
}
,#rpc{
code = 28206
,log_title = "背包信息"
,req_desc = "背包信息"
,req = []
,reply_desc = "背包信息"
,reply = [
{array, holiday_nian_item, holiday_nian_item, "物品列表", [
{uint32, id, "位置id"}
,{uint32, base_id, "基础id"}
,{uint32, num, "数量"}
]}
]
}
,#rpc{
code = 28207
,log_title = "背包新增(更新)信息"
,req_desc = "背包新增(更新)信息"
,req = []
,reply_desc = "背包新增(更新)信息"
,reply = [
{array, tuple, update_item, "物品列表", [
{uint32, id, "位置id"}
,{uint32, base_id, "基础id"}
,{uint32, num, "数量"}
]}
]
}
,#rpc{
code = 28208
,log_title = "背包删除信息"
,req_desc = "背包删除信息"
,req = []
,reply_desc = "背包删除信息"
,reply = [
{array, single, delete_pos, "物品列表", [
{uint32, id, "位置id"}
]}
]
}
, #rpc{
code = 28209
,log_title = "战斗结果"
,req_desc = "战斗结果"
,req = []
,reply_desc = "战斗结果"
,reply = [
{uint8, type, "事件类型"}
,{uint32, all_dps, "总伤害"}
,{uint32, best_partner, "最佳伙伴唯一ID"}
,{uint32, bid, "最佳伙伴bid"}
,{uint16, lev, "最佳伙伴等级"}
,{uint8, star, "最佳伙伴星级"}
,{uint32, use_skin, "最佳伙伴皮肤id"}
,{string, target_role_name, "对方名字"}
,{array, tuple, hurt_statistics, "伤害统计", [
{uint8, type, "1:进攻方 2:被攻击方"}
,{array, partner_hurt, partner_hurts, "伤害统计", [
{tuple, master_id, [
{uint32, rid, "拥有者ID"}
,{string, srvid, "拥有者服务器id"}
]}
,{uint32, id, id, "英雄bid"}
,{uint32, bid, bid, "英雄bid"}
,{uint32, star, star, "星级"}
,{uint32, lev, lev, "等级"}
,{uint32, camp_type, camp_type, "英雄阵营"}
,{uint32, dps, dps, "英雄伤害"}
,{uint32, cure, cure, "英雄治疗量"}
,{array, tuple, ext_data, "额外参数", [
{uint32, key, "键(5:皮肤id"}
,{uint32, val, ""}
]}
,{uint32, be_hurt, be_hurt, "英雄承受伤害"}
]}
]}
,{uint32, evt_index, "当前战斗的格子索引值"}
,{array, tuple, reward, "奖励列表 其他类型时发空列表", [
{uint32, base_id, "物品Id"}
,{uint32, num, "数量"}
]}
,{uint8, result, "战斗结果(1:胜利 2:失败)"}
]
}
,#rpc{
code = 28210
,log_title = "获取对方阵容信息"
,req_desc = "获取对方阵容信息"
,req = []
,reply_desc = "获取对方阵容信息"
,reply = [
{uint32, unit_id, "怪物id"}
,{uint32, unit_lev, "怪物等级"}
,{uint32, power, "战力"}
]
}
,#rpc{
code = 28211
,log_title = "提交贡品"
,req_desc = "提交贡品"
,req = [
{uint32, num, "提交数量"}
]
,reply_desc = "提交贡品"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
]
}
,#rpc{
code = 28212
,log_title = "购买年兽挑战次数"
,req_desc = "购买年兽挑战次数"
,req = [
{uint8, type, "1限时年兽,2金色年兽"}
]
,reply_desc = "购买年兽挑战次数"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
]
}
, #rpc{
code = 28213
,log_title = "获得年兽排行榜"
,req_desc = "获得年兽排行榜"
,req = [
{uint8, type, "类型 1限时年兽 2金色年兽"}
,{uint8, num, "0:前三名, 1:全部"}
]
,reply_desc = "获得年兽排行榜"
,reply = [
{array, role_monster_rank, dps_list, "伤害排行榜", [
{tuple, r_id, [
{uint32, rid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{uint32, lev, "等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{string, name, "角色名"}
,{uint32, dps, "伤害量"}
,{uint32, power, "战力"}
,{uint32, rank, "排名"}
]}
]
}
, #rpc{
code = 28214
,log_title = "红包领取情况"
,req_desc = "红包领取情况"
,req = []
,reply_desc = "红包领取情况"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{uint32, last_num, "全服剩余个数"}
,{uint32, all_num, "全服总个数"}
,{uint32, role_num, "个人已领取个数"}
,{uint32, role_all_num, "个人可领取个数"}
,{array, tuple, information, "红包情况", [
{tuple, r_id, [
{uint32, rid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{array, tuple, reward_list, "奖励列表", [
{uint32, base_id, "物品id"}
,{uint32, num, "数量"}
]}
,{uint32, unixtime, "时间戳"}
]}
,{array, tuple, role_reward_list, "自身奖励列表", [
{uint32, role_base_id, "物品id"}
,{uint32, role_num, "数量"}
]}
]
}
,#rpc{
code = 28215
,log_title = "限时年兽和金色年兽战斗前界面"
,req_desc = "限时年兽和金色年兽战斗前界面"
,req = []
,reply_desc = "限时年兽和金色年兽战斗前界面"
,reply = [
{uint8, type, "事件类型"}
,{uint32, unit_id, "单位id"}
,{uint32, combat_time, "剩余挑战次数"}
,{uint32, buy_time, "剩余购买次数"}
,{uint32, last_time, "剩余时间(秒)"}
,{uint32, index, "目标格子"}
]
}
,#rpc{
code = 28216
,log_title = "集字兑换"
,req_desc = "集字兑换"
,req = [
{uint32, id, "序号"}
,{uint32, num, "兑换数量"}
]
,reply_desc = "集字兑换"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
]
}
,#rpc{
code = 28217
,log_title = "集字兑换界面"
,req_desc = "集字兑换界面"
,req = []
,reply_desc = "集字兑换界面"
,reply = [
{array, tuple, collection, "兑换情况", [
{uint32, id, "序号"}
,{uint32, last_num, "剩余数量"}
,{uint8, flag, "是否在兑换时间内 是1 否0"}
,{uint32, start_unixtime, "开始时间戳"}
,{uint32, end_unixtime, "结束时间戳"}
]}
]
}
,#rpc{
code = 28218
,log_title = "格子数据更新"
,req_desc = "格子数据更新"
,req = []
,reply = [
{array, nian_tile, tile_list, "格子列表",
[{uint32, index, "格子序号"}
,{uint32, evtid, "事件ID(0:表示没有事件)"}
,{uint8, is_walk, "是否可行走0不可行走 1可行走 "}
,{uint32, res_id, "资源ID"}
]}
]
}
,#rpc{
code = 28219
,log_title = "保存年兽表情"
,req_desc = "保存年兽表情"
,req = [
{array, tuple, face, "年兽表情", [
{uint8, order, "位置(1:主动发送 2:表情回应 3:烟花回应)"}
,{uint32, face_id, "表情id (未设置传0)"}
]}
]
,reply_desc = "保存年兽表情"
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 28220
,log_title = "个人年兽表情"
,req_desc = "个人年兽表情"
,req = []
,reply_desc = "个人年兽表情"
,reply = [
{array, tuple, face, "年兽表情", [
{uint8, order, "位置(1:主动发送 2:表情回应 3:烟花回应)"}
,{uint32, face_id, "表情id"}
]}
]
}
,#rpc{
code = 28221
,log_title = "使用烟花"
,req_desc = "使用烟花"
,req = []
,reply_desc = "使用烟花"
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{array, tuple, reward, "奖励列表", [
{uint32, base_id, "物品id"}
,{uint32, num, "数量"}
]}
]
}
,#rpc{
code = 28222
,log_title = "交互玩家数据"
,req_desc = "交互玩家数据"
,req = []
,reply = [
{array, player, player, "交互玩家数据",
[{tuple, r_id, [
{uint32, rid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint32, look_id, "形象id"}
,{uint32, honor_id, "称号Id"}
,{array, tuple, face, "表情", [
{uint8, order, "位置(1:主动发送 2:表情回应 3:烟花回应)"}
,{uint32, face_id, "表情id"}
]}
]}
]
}
,#rpc{
code = 28223
,log_title = "是否有红包事件"
,req_desc = "是否有红包事件"
,req = []
,reply = [
{uint8, flag, "是1 否0"}
]
}
,#rpc{
code = 28224
,log_title = "是否可挑战大年兽"
,req_desc = "是否可挑战大年兽"
,req = []
,reply = [
{uint8, timer_flag, "是否可挑战限时年兽是1 否0"}
,{uint8, gold_flag, "是否可挑战金色年兽是1 否0"}
]
}
].