Files
2026-05-23 22:10:14 +08:00

201 lines
6.9 KiB
Erlang
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%%----------------------------------------------------
%% 大富翁
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_274).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"大富翁"
,["monopoly_maps.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27400
,log_title = "活动状态"
,req_desc = "活动状态"
,req = []
,reply_desc = "活动状态"
,reply = [
{uint8, flag, "是否开始"}
,{uint32, end_time, "活动结束时间戳"}
,{array, tuple, stage, "阶段信息", [
{uint32, id, "阶段id"}
,{uint32, lock, "是否上锁"}
,{uint32, develop, "探索值"}
,{uint32, guild_develop, "公会探索值"}
]}
]
}
,#rpc{
code = 27401
,log_title = "进入地图"
,req_desc = "进入地图"
,req = [
{uint32, id, "阶段id"}
]
,reply_desc = "进入地图"
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
,{rec, stage, stage, [
{uint8, id, "阶段id"}
,{uint32, map_id, "地图id"}
,{uint32, pos, "位置id"}
,{uint32, develop, "探索值"}
,{array, tuple, events, "事件列表", [
{uint32, pos, "位置id"}
,{uint32, type, "事件类型"}
]}
]}
,{uint8, now_type, "当前触发事件类型,0没有触发事件"}
,{uint32, guild_develop, "公会探索值"}
,{uint32, look_id, "形象ID"}
]
}
,#rpc{
code = 27403
,req_desc = "合服目标信息"
,log_title = "合服目标信息"
,req = [
{uint8, type, "类型 1:骰子,2秘籍"}
,{uint32, num, "指定步数, 骰子填0"}
]
,reply_desc = "扔骰子"
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
,{uint32, num, "实际步数"}
,{uint32, pos, "位置id"}
,{uint32, develop, "探索值"}
,{uint8, now_type, "当前触发事件类型,0没有触发事件"}
,{uint32, id, "阶段id"}
,{uint32, guild_develop, "公会探索值"}
]
}
,#rpc{
code = 27404
,log_title = "触发事件"
,req_desc = "触发事件"
,req = [
{array, tuple, args, "额外参数", [
{uint8, type, "参数类型 1阵法类型 2英雄信息 3神器信息 4猜拳选项 5神秘事件, 6flag"}
,{uint32, arg1, "参数1"}
,{uint32, arg2, "参数2"}
]}
]
,reply_desc = "触发事件"
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
,{uint32, pos, "变换的位置id"}
,{uint32, type, "变换之后的事件类型"}
, {uint32, id, "阶段id"}
]
}
,#rpc{
code = 27405
,log_title = "猜拳结果"
,req_desc = "猜拳结果"
,req = []
,reply_desc = "猜拳结果"
,reply = [
{uint32, id, "阶段id"}
,{uint8, choice, "选择值(1:拳 2:布 3:剪"}
,{uint8, system_choice, "系统值(1:拳 2:布 3:剪"}
,{uint8, ret, "结果( 1:胜 2:败 3:平" }
]
}
,#rpc{
code = 27406
,log_title = "第一次对话的问题id"
,req_desc = "第一次对话的问题id"
,req = []
,reply_desc = "第一次对话的问题id"
,reply = [
{uint8, type, "类型"}
]
}
,#rpc{
code = 27407
,log_title = "第一次对话答题"
,req_desc = "第一次对话答题"
,req = [
{uint8, type, "类型"}
,{uint8, choice, "选项"}
]
,reply_desc = "第一次对话答题"
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
]
}
,#rpc{
code = 27408
,log_title = "大富翁buff情况"
,req_desc = "大富翁buff情况"
,req = [
{uint32, id, "阶段id"}
]
,reply_desc = "大富翁buff情况"
,reply = [
{uint32, id, "阶段id"}
,{array, tuple, buffs, "buff列表", [
{uint8, type, "类型 1 伤害加成Buff 2战斗胜利buff 3奖励翻倍buff 4flag"}
,{uint32, num, "数量,flag事件则为选择的步数"}
]}
]
}
,#rpc{
code = 27409
,log_title = "弹tips加奖励"
,req_desc = "弹tips加奖励"
,req = []
,reply_desc = "弹tips加奖励"
,reply = [
{uint32, id, "阶段id"}
,{array, single, buffs, "buff列表", [
{uint8, type, "类型 2战斗胜利buff 3奖励翻倍buff 4flag"}
]}
,{array, tuple, reward, "奖励列表", [
{uint32, base_id, "物品id"}
,{uint32, num, "数量"}
]}
]
}
,#rpc{
code = 27410
,log_title = "获取对方阵容信息"
,req_desc = "获取对方阵容信息"
,req = [
{uint32, id, "阶段id"}
]
,reply_desc = "获取对方阵容信息"
,reply = [
{uint32, id, "阶段id"}
,{uint32, rid, "角色ID"}
,{string, srv_id, "角色服务器ID"}
,{string, name, "名称"}
,{uint32, face, "头像"}
,{uint8, lev, "等级"}
,{uint32, power, "战力"}
,{array, tuple, guards, "战将信息", [
{uint8, pos, "位置"}
,{uint32, bid, "BID"}
,{uint16, lev, "等级"}
,{uint8, star, "星数"}
,{array, tuple, ext_data, "额外参数", [
{uint32, key, "键(5:皮肤id"}
,{uint32, val, ""}
]}
]}
]
}
].