Files

508 lines
16 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%-----------------------------------------
%%
%%
%%-----------------------------------------
-module(proto_127).
-export([
info/0
,cfg/0
]
).
-include("protocol.hrl").
info() -> {
""
,["say.hrl"]
}.
cfg() ->
[
#rpc{
code = 12700
,log_title = "聊天框列表"
, req_desc = "聊天框列表"
, req = []
, reply_desc = "聊天框列表"
, reply =
[{uint32, say_frame_bid, "当前使用的聊天框"}
, {array, say_frame, say_frame, "聊天框列表", ?p_g_set(say_frames,
[{uint32, base_id, "聊天框基础Id"}
, {uint32, expire_time, "过期时间"}
])
}
]
}
, #rpc{
code = 12701
,log_title = "使用聊天框"
, req_desc = "使用聊天框"
, req = [{uint32, base_id, "头像框基础Id"}]
, reply_desc = "使用聊天框"
, reply =
[{uint32, base_id, "聊天框基础Id"}]
}
, #rpc{
code = 12702
,log_title = "更新聊天框数据"
, req_desc = "更新聊天框数据"
, req = []
, reply_desc = "更新头像框数据"
, reply =
[{array, say_frame, say_frame, "头像框列表", ?p_g_get(say_frames)}]
}
, #rpc{
code = 12703
, req_desc = "激活聊天框"
,log_title = "激活聊天框"
, req = [{uint32, base_id, "基础Id"}]
, reply_desc = "激活聊天框"
, reply =
[{array, say_frame, say_frame, "聊天框列表", ?p_g_get(say_frames)}]
}
, #rpc{
code = 12704
,log_title = "推送禁言或封号账号用于清除聊天"
, req_desc = "推送禁言或封号账号用于清除聊天"
, req = []
, reply_desc = "推送禁言或封号账号用于清除聊天"
, reply = [
{uint32, rid, "对方角色id"},
{string, srv_id, "对方服务器id"}
]
}
, #rpc{
code = 12720
,log_title = "私聊"
,req_desc = "私聊"
,req = [
{uint32, to_rid, "to角色id"},
{string, to_srv_id, "to服务器id"},
{uint8, len, "标识,客户端用"},
{string, msg, "消息"}
]
,reply_desc = "私聊返回结果"
,reply = [
{uint8, code, "返回代码;0:提取失败;"},
{string, msg, "返回消息;"}
]
},
#rpc{
code = 12721
,log_title = "推送私聊"
,req_desc = "推送私聊"
,reply_desc = "推送私聊返回结果"
,reply = [
{uint8, flag, "1:我对B说;2:B对我说;11:我对B说,B不在线"},
{uint32, rid, "对方角色id"},
{string, srv_id, "对方服务器id"},
{string, name, "对方角色名称"},
{uint8, lev, "对方等级"},
{uint16, career, "职业"},
{uint32, face_id, "对方头像id"},
{uint8, len, "标识,客户端用"},
{string, msg, "消息"},
{uint8, sex, "性别"},
{uint8, vip_lev, "说话者vip等级"},
{uint8, capacity, "0玩家 1GM 2新手指导员"},
{uint32, head_bid, "头像框BID"},
{uint32, bubble_bid, "聊天气泡Bid"},
{uint32, tick, "时间戳"},
{uint32, face_update_time, "对方自定义头像更新时间"},
{string, face_file, "对方自定义头像"},
{array, tuple, ext_list, "附加信息", [
{uint8, type, "类型"}
,{uint32, val, ""}
]}
]
},
#rpc{
code = 12722
,log_title = "登录推送离线消息"
,req_desc = "登录推送离线消息"
,reply_desc = "登录推送离线消息返回结果"
,reply = [
{array, say_send, offline_list, "消息列表", [
{tuple, id, [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"}
]},
{string, name, "角色名称"},
{uint8, lev, "等级"},
{uint16, career, "职业"},
{uint32, face_id, "头像id"},
{uint8, sex, "性别"},
{uint8, vip_lev, "说话者vip等级"},
{uint8, capacity, "0玩家 1GM 2新手指导员"},
{uint32, head_bid, "头像框BID"},
{uint32, chat_bubble, "聊天气泡Bid"},
{array, say_msg, msg_list, "消息角色", [
{uint8, len, "标识,客户端用"},
{string, msg, "消息"},
{uint32, tick, "时间戳"}
]
},
{uint32, face_update_time, "自定义头像更新时间"},
{string, face_file, "自定义头像"}
]
}
]
},
#rpc{
code = 12723
,log_title = "通知客户端已读消息"
,req_desc = "通知客户端已读消息"
,req = [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"}
]
,reply_desc = "通知客户端已读消息返回结果"
},
#rpc{
code = 12725
,log_title = "语音信息"
,req_desc = "语音信息"
,req = [
{byte, voice, "语音信息"},
{uint16, voice_len, "语音长度"},
{uint8, time, "时长(秒)"},
{uint8, type, "类型"}
]
,reply_desc = "语音信息返回结果"
,reply = [
{uint8, flag, "是否成功"},
{string, srv_id, "角色srv_id"},
{uint32, voice_id, "缓存ID"},
{string, msg, "提示信息"}
]
},
#rpc{
code = 12726
,log_title = "请求语音缓存"
,req_desc = "请求语音缓存"
,req = [
{string, srv_id, "角色srv_id"},
{uint32, voice_id, "缓存ID"}
]
,reply_desc = "请求语音缓存返回结果"
,reply = [
{string, srv_id, "角色srv_id"},
{uint32, voice_id, "缓存ID"},
{uint8, time, "时长(秒)"},
{byte, voice, "语音信息"},
{uint8, type, "类型"}
]
},
#rpc{
code = 12729
,log_title = "退出巅峰冠军赛弹幕状态"
,req_desc = "退出巅峰冠军赛弹幕状态"
,req = [
]
},
#rpc{
code = 12730
,log_title = "进入指定弹幕状态(断线重连需重新进入)"
,req_desc = "进入指定弹幕状态(断线重连需重新进入)"
,req = [
{uint32, type, "弹幕类型"}
,{uint8, is_push, "是否需要推送历史信息(0:不用推 1:需要推)"}
]
},
#rpc{
code = 12731
,log_title = "退出弹幕状态"
,req_desc = "退出弹幕状态"
,req = [
]
},
#rpc{
code = 12732
,log_title = "发送弹幕"
,req_desc = "发送弹幕"
,req = [
{uint32, type, "弹幕类型"}
,{string, msg, "信息"}
]
,reply = [
{uint8, code, "编号(0:失败 1:成功)"}
,{string, msg, "信息"}
]
},
#rpc{
code = 12733
,log_title = "接收弹幕信息"
,reply_desc = "接收弹幕信息"
,reply = [
{uint32, type, "弹幕类型"}
,{array, say_subtitle_msg, list, "列表", [
{uint32, id, "ID"}
,{tuple, role_id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{string, msg, "内容"}
,{uint32, time, "时间"}
]}
]
},
#rpc{
code = 12741
,log_title = "提示信息"
,req_desc = "提示信息"
,reply_desc = "提示信息返回结果"
,reply = [
{string, msg, "提示信息"}
]
},
#rpc{
code = 12742
,log_title = "提示获得资产/物品"
,req_desc = "提示获得资产/物品"
,reply_desc = "提示获得资产/物品返回结果"
,reply = [
{array, tuple, asset_list, "资产/物品提示", [
{uint32, bid, "物品bid"}
,{uint8, is_bind, "是不是绑定 1 绑定 0 不绑定"}
,{uint32, num, "个数"}
,{uint32, id, "物品id"}
,{uint8, move_to, "图标漂向(0:不漂 1:冒险背包 2:角色)"}
]}
,{uint32, source, "特殊来源(0:正常 1:凤凰 2:巨龙)"}
]
},
#rpc{
code = 12743
,log_title = "提示信息(并且在聊天框显示)"
,req_desc = "提示信息(并且在聊天框显示)"
,reply_desc = "提示信息(并且在聊天框显示)返回结果"
,reply = [
{string, msg, "提示信息"}
]
},
#rpc{
code = 12744
,req_desc = "弹框的提示信息"
,reply_desc = "弹框的提示信息返回结果"
,reply = [
{uint8, type, "类型(具体的类型跟客户端商量:1,归队)"},
{string, msg, "提示信息"}
]
},
#rpc{
code = 12745
,reply_desc = "资产信息不足提示"
,reply = [
{uint32, bid, "资产ID"}
,{uint32, need_num, "需求量"}
,{uint32, num, "当前量"}
]
},
#rpc{
code = 12761
,log_title = "聊天协议;世界,场景,帮派,队伍,传闻,系统"
,req_desc = "聊天协议;世界,场景,帮派,队伍,传闻,系统"
,reply_desc = "聊天协议;世界,场景,帮派,队伍,传闻,系统返回结果"
,reply = [
{array, tuple, role_list, "说话角色", [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"},
{string, name, "角色名称"},
{uint32, face_id, "头像id"},
{uint8, lev, "等级"},
{uint8, sex, "性别"},
{uint16, career, "职业"},
{uint8, vip_lev, "说话者vip等级"},
{uint8, is_show_vip, "是否隐藏VIP等级 1是 0 否"},
{string, province, "所在省"},
{string, city, "所在市"},
{uint8, capacity, "0玩家 1GM 2新手指导员"},
{uint32, head_bid, "头像框BID"},
{uint32, bubble_bid, "聊天气泡Bid"},
{array, tuple, ext_list, "附加信息", [
{uint8, type, "类型"}
,{uint32, val, ""}
]},
{tuple, id, [
{uint32, gid, "联盟ID"}
,{string, gsrv_id, "联盟服务器ID"}
]},
{string, g_name, "联盟名"},
{uint32, face_update_time, "自定义头像更新时间"},
{string, face_file, "自定义头像"}
]
},
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;16:传闻;32:顶部传闻;64:系统;128:顶部系统;256:系统帮派;512:系统组队"},
{uint8, len, "标识,客户端用,3:组队发布招募"},
{string, msg, "消息"},
{uint32, tick, "时间戳"}
]
},
#rpc{
code = 12762
,log_title = "发表聊天;成功不会返回"
,req_desc = "发表聊天;成功不会返回"
,req = [
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;16:传闻;32:顶部传闻;64:系统;128:顶部系统"},
{uint8, len, "标识,客户端用"},
{string, msg, "文字;或是语音"},
{string, sign, "编码"}
]
,reply_desc = "发表聊天;成功不会返回返回结果"
,reply = [
{uint8, code, "返回代码;0:失败;"},
{string, msg, "返回消息;"}
]
},
#rpc{
code = 12763
,log_title = "翻译分发;语音翻译1:世界;2:场景;4:帮派;8;队伍;"
,req_desc = "翻译分发;语音翻译1:世界;2:场景;4:帮派;8;队伍;"
,reply_desc = "翻译分发;语音翻译1:世界;2:场景;4:帮派;8;队伍;返回结果"
,reply = [
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍"},
{string, id, "语音唯一id"},
{string, msg, "翻译的文字"}
]
},
#rpc{
code = 12764
,log_title = "翻译;客户端请求分发翻译1:世界;2:场景;4:帮派;8;队伍;"
,req_desc = "翻译;客户端请求分发翻译1:世界;2:场景;4:帮派;8;队伍;"
,req = [
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍"},
{string, id, "语音唯一id"},
{string, msg, "翻译的文字"}
]
,reply_desc = "翻译;客户端请求分发翻译1:世界;2:场景;4:帮派;8;队伍;返回结果"
},
#rpc{
code = 12766
,log_title = "最近的几条聊天消息(帮派和队伍)"
,req_desc = "最近的几条聊天消息(帮派和队伍)"
,req = [
{uint16, channel, "频道;4:帮派;8;队伍"}
]
,reply_desc = "最近的几条聊天消息(帮派和队伍)返回结果"
,reply = [
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;"},
{array, tuple, msg_list, "消息列表", [
{array, tuple, role_list, "说话角色", [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"},
{string, name, "角色名称"},
{uint32, face_id, "头像id"},
{uint8, lev, "等级"},
{uint8, sex, "性别"},
{uint16, career, "职业"},
{uint8, vip_lev, "说话者vip等级"},
{uint8, is_show_vip, "是否隐藏VIP等级 1是 0 否"},
{string, province, "所在省"},
{string, city, "所在市"},
{uint8, capacity, "0玩家 1GM 2新手指导员"},
{uint32, head_bid, "头像框BID"},
{uint32, chat_bubble, "聊天气泡Bid"},
{array, tuple, ext_list, "附加信息", [
{uint8, type, "类型"}
,{uint32, val, ""}
]},
{tuple, id, [
{uint32, gid, "联盟ID"}
,{string, gsrv_id, "联盟服务器ID"}
]},
{string, g_name, "联盟名"},
{uint32, face_update_time, "自定义头像更新时间"},
{string, face_file, "自定义头像"}
]
},
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;16:传闻;32:顶部传闻;64:系统;128:顶部系统"},
{uint8, len, "标识,客户端用"},
{string, msg, "消息"},
{uint32, tick, "时间戳"}
]
}
]
},
#rpc{
code = 12767
,req = [
]
,reply_desc = "聊天艾特功能"
,reply = [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"},
{string, name, "角色名称"},
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;16:传闻;32:顶部传闻;64:系统;128:顶部系统"},
{string, msg, "消息"}
]
},
#rpc{
code = 12768
,log_title = "已查看艾特信息"
,req = [
{uint32, rid, "角色id"},
{string, srv_id, "角色srv_id"},
{uint16, channel, "频道"},
{string, msg, "消息"}
]
,reply_desc = "已查看艾特信息"
},
#rpc{
code = 12770
,log_title = "举报功能"
,req = [
{uint32, rid, "角色id"}
,{string, srv_id, "角色srv_id"}
,{uint8, type, "举报类型(两边类型要统一)"}
,{string, msg, "附加说明"}
,{array, single, history, "历史信息", [
{uint8, id, "记录ID"}
]}
]
,reply_desc = "举报功能"
,reply = [
{uint8, code, "成功或失败 1:成功 ,0:失败"},
{string, msg, "附加信息"}
]
},
#rpc{
code = 12771
,log_title = "查看举报信息"
,req = [
{uint32, rid, "被举报角色id"},
{string, srv_id, "被举报角色srv_id"}
]
,reply_desc = "查看举报信息"
,reply = [
{uint32, rid, "被举报角色id"}
,{string, srv_id, "被举报角色srv_id"}
,{array, tuple, history, "历史信息", [
{uint8, id, "记录Id"},
{uint16, channel, "频道;1:世界;2:场景;4:帮派;8;队伍;16:传闻;32:顶部传闻;64:系统;128:顶部系统"},
{string, msg, "消息"}
]}
]
},
#rpc{
code = 12772
,log_title = "禁言信息返回"
,req = [
]
,reply_desc = "禁言信息返回"
,reply = [
{string, msg, "提示语"}
,{uint32, end_time, "禁言结束时间戳"}
]
},
#rpc{
code = 12799
,log_title = "事件提示框"
,req_desc = "事件提示框"
,reply_desc = "事件提示框返回结果"
,reply = [
{string, msg, "返回消息"}
]
}
].