Files
fc/server/tools/gen_proto/cfg/proto_265.erl
T
2026-05-23 22:10:14 +08:00

611 lines
22 KiB
Erlang
Raw 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 liufenglin 240039421@qq.com
%%----------------------------------------------------
-module(proto_265).
-export([
info/0
,cfg/0
]
).
-include("protocol.hrl").
info() -> {
"精灵协议"
,["sprite.hrl", "attr.hrl"]
}.
cfg() ->
[
#rpc{
code = 26500
,log_title = "请求精灵孵化信息"
,req_desc = "请求精灵孵化信息"
,req = []
,reply = [
{array, sprite_hatch, sprite_hatchs, "孵化信息", [
{uint8, id, "阵位(1;初始孵化器 2:特权孵化器)"}
,{uint8, is_open, "是否已激活(0:未激活 1:已激活 2:待激活)"}
,{uint8, state, "孵化状态(0:空闲 1:进行中 2:可领取)"}
,{uint32, do_id, "孵化中的宠物蛋id"}
,{uint32, all_end_time, "本次全部孵化结束时间戳 (新版增加 用于客户端时间显示)"}
]}
,{array, tuple, info, "已购买信息(今日有购买的才会在列表内)", [
{uint32, item_bid, "物品bid"}
,{uint32, buy_num, "今日已购买数量"}
]}
]
}
,#rpc{
code = 26501
,log_title = "推送孵化数据变化"
,req_desc = "推送孵化数据变化"
,req = [
]
,reply = [
{array, sprite_hatch, sprite_hatch, "孵化信息", [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
,{uint8, is_open, "是否已激活(0:未激活 1:已激活 2:待激活)"}
,{uint8, state, "孵化状态(0:空闲 1:进行中 2:可领取)"}
,{uint32, do_id, "孵化中的宠物蛋id"}
,{uint32, all_end_time, "本次全部孵化结束时间戳 (新版增加 用于客户端时间显示)"}
]}
]
}
,#rpc{
code = 26502
,log_title = "孵化器升级"
,req_desc = "孵化器升级"
,req = [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
,{uint32, lev, "孵化器等级"}
]
}
,#rpc{
code = 26503
,log_title = "开始孵化(成功推送26501)"
,req_desc = "开始孵化(成功推送26501)"
,req = [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
,{uint32, item_bid, "物品bid"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
}
,#rpc{
code = 26504
,log_title = "加速孵化(成功推送26501)"
,req_desc = "加速孵化(成功推送26501)"
,req = [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
,{uint32, item_bid, "物品bid"}
,{uint32, item_num, "物品数量"}
,{uint8, type, "是否钻石补足(0:否 1:是)"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
}
,#rpc{
code = 26505
,log_title = "终止孵化(成功推送26501)"
,req_desc = "终止孵化(成功推送26501)"
,req = [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
}
,#rpc{
code = 26506
,log_title = "领取孵化奖励(成功推送26501)"
,req_desc = "领取孵化奖励(成功推送26501)"
,req = [
{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint8, id, "id(1;初始孵化器 2:特权孵化器)"}
,{array, tuple, awards, "奖励", [
{uint32, item_bid, "物品bid"}
,{uint32, item_num, "物品数量"}
]}
]
}
,#rpc{
code = 26507
,log_title = "购买精灵道具"
,req_desc = "购买精灵道具"
,req = [
{uint8, type, "类型(1;精灵蛋 2:精灵道具)"}
,{uint32, item_id, "购买道具id"}
,{uint32, num, "购买数量"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{uint32, item_id, "购买道具id"}
,{uint8, count, "今日购买次数"}
]
}
,#rpc{
code = 26508
,log_title= "精炼合成"
,req_desc = "精炼合成"
,req = [
{uint32, item_bid, "精灵bid"}
,{uint32, num, "合成数量"}
,{uint8, pos, "0:背包合成 >0:古树上阵位置"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
]
}
,#rpc{
code = 26509
,log_title = "请求精灵图鉴"
,req_desc = "请求精灵图鉴"
,req = [
]
,reply = [
{array, single, awards, "已激活的精灵图鉴", [
{uint32, item_bid, "物品bid"}
]}
]
}
,#rpc{
code = 26510
,log_title = "请求精灵古树信息"
,req_desc = "请求精灵古树信息"
,req = [
]
,reply = [
{uint16, lev, "等级"}
,{uint16, break_lev, "突破等级"}
,{rec, base_attr, attr, [
{uint32, atk, atk, "攻击"},
{uint32, def_p, def_p, "物理防御"},
{uint32, def_s, def_s, "法术防御"},
{uint32, hp_max, hp_max, "气血"},
{uint32, speed, speed, "出手速度"},
{uint32, hit_rate, hit_rate, "命中"},
{uint32, dodge_rate, dodge_rate, "闪避"},
{uint32, crit_rate, crit_rate, "暴击"},
{uint32, crit_ratio, crit_ratio, "暴伤"},
{uint32, hit_magic, hit_magic, "效果命中"},
{uint32, dodge_magic, dodge_magic, "效果闪避"},
{uint32, def, def, "防御"}
]}
,{array, tuple, sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:未布置)"}
]}
,{uint32, power, "最新战力"}
]
}
,#rpc{
code = 26511
,log_title = "精灵古树升级(成功推送26510"
,req_desc = "精灵古树升级(成功推送26510"
,req = []
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
]
}
,#rpc{
code = 26512
,log_title = "精灵古树进阶(成功推送26510"
,req_desc = "精灵古树进阶(成功推送26510"
,req = []
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
]
}
,#rpc{
code = 26513
,log_title = "古树布置精灵(成功推送26510"
,req_desc = "古树布置精灵(成功推送26510"
,req = [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:下阵)"}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
]
}
,#rpc{
code = 26514
,log_title = "古树布置精灵(成功推送26510"
,req_desc = "古树布置精灵(成功推送26510"
,req = [
{array, tuple, sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:未布置)"}
]}
]
,reply = [
{uint8, result, "1:成功 2 失败"}
,{string, msg, "消息"}
,{array, tuple, sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:未布置)"}
]}
]
}
,#rpc{
code = 26520
,log_title = "推送新增图鉴"
,req_desc = "推送新增图鉴"
,req = []
,reply = [
{array, single, awards, "新增的精灵图鉴", [
{uint32, item_bid, "物品bid"}
]}
]
}
, #rpc{
code = 26521
,log_title = "请求精灵抽奖信息"
, req_desc = "请求精灵抽奖信息"
, req = []
, reply_desc = "请求精灵抽奖信息"
, reply =
[
{uint32, camp_id, "活动ID"}
,{uint32, free_time, "下次单抽免费时间"}
,{uint32, times, "当前已抽次数"}
,{uint32, start_time, "开始时间"}
,{uint32, end_time, "结束时间"}
,{uint32, item_id, "物品ID"}
,{uint32, item_num, "物品数量"}
,{uint16, must_count, "还有必出次数"}
,{array, single, reward_list, "已领奖励列表", [
{uint16, id, "序号"}
]}
,{array, single, award_list, "可领奖励列表", [
{uint16, id, "序号"}
]}
]
}
, #rpc{
code = 26522
,log_title = "精灵抽奖"
, req_desc = "精灵抽奖"
, req = [
{uint8, times, "召唤次数"}
, {uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"}
]
, reply_desc = "精灵抽奖"
, reply =
[
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26523
,log_title= "领取保底礼包(成功推送26521"
,req_desc = "领取保底礼包(成功推送26521"
,req = [
{uint16, id, "奖励id"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
, #rpc{
code = 26525
,log_title = "精灵抽奖结果"
, req_desc = "精灵抽奖结果"
, req = []
, reply_desc = "精灵抽奖结果"
, reply = [
{uint16, group_id, "抽奖编号"}
, {uint8, times, "抽奖次数"}
, {array, tuple, rewards, "抽奖奖励", [
{uint32, base_id, "基础id"}
, {uint32, num, "数量"}
]
}
, {array, tuple, sprite_bids, "精灵id列表",
[
{uint32, sprite_bid, "精灵id"}
,{uint8, quality, "品质"}
,{uint16, jie, "精灵阶数"}
]
}
]
}
, #rpc{
code = 26530
,log_title = "精灵重生"
, req_desc = "精灵重生"
, req = [
{uint32, item_bid, "精灵bid"}
]
, reply_desc = "精灵重生"
, reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
, #rpc{
code = 26535
,log_title = "精灵孵化器激活"
, req_desc = "精灵孵化器激活"
, req = [
{uint32, id, "id"}
]
, reply_desc = "精灵孵化器激活"
, reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
,{uint32, id, "id"}
]
}
, #rpc{
code = 26550
,log_title= "请求精灵抽奖信息"
, req_desc = "请求精灵抽奖信息"
, req = []
, reply_desc = "请求精灵抽奖信息"
, reply = [
{uint32, camp_id, "活动id"}
,{uint32, free_time, "下次单抽免费时间"}
,{uint32, times, "当前已抽总次数"}
,{array, single, do_awards, "已领取的次数奖励", [
{uint32, award_id, "幸运值"}
]}
,{array, single, lucky_ids, "许愿的bid", [
{uint32, lucky_sprites_bid, "幸运精灵bid"}
]}
,{uint32, day_count, "今日已召唤次数"}
]
}
, #rpc{
code = 26551
,log_title = "精灵抽奖"
, req_desc = "精灵抽奖"
, req = [
{uint8, times, "召唤次数"}
,{uint8, recruit_type, "召唤方式,1:免费,3:钻石兑换,4:道具"}
]
, reply_desc = "精灵抽奖"
, reply =
[
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26552
,log_title = "领取保底礼包(成功推送26550"
,req_desc = "领取保底礼包(成功推送26550"
,req = [
{uint16, id, "奖励id"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
, #rpc{
code = 26553
,log_title = "精灵抽奖结果"
, req_desc = "精灵抽奖结果"
, req = []
, reply_desc = "精灵抽奖结果"
, reply = [
{uint16, group_id, "抽奖编号"}
, {uint8, times, "抽奖次数"}
, {array, tuple, rewards, "抽奖奖励", [
{uint32, base_id, "基础id"}
, {uint32, num, "数量"}
]
}
, {array, tuple, sprite_bids, "精灵id列表",
[
{uint32, sprite_bid, "精灵id"}
,{uint8, quality, "品质"}
,{uint16, jie, "精灵阶数"}
]
}
]
}
,#rpc{
code = 26554
,log_title = "设置幸运精灵(成功推送26550"
,req_desc = "设置幸运精灵(成功推送26550"
,req = [
{array, single, lucky_ids, "许愿的bid", [
{uint32, lucky_sprites_bid, "幸运精灵bid"}
]}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26555
,log_title = "精灵布阵信息"
,req_desc = "精灵布阵信息"
,req = [
{uint32, type, "类型"}
]
,reply = [
{uint32, type, "类型"}
,{array, tuple, team_list, "玩法队伍布阵", [
{uint32, team, "队伍编号"}
,{array, tuple, sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid"}
]}
,{uint8, plan_id, "使用的方案id 0表示没有"}
]}
]
}
,#rpc{
code = 26556
,log_title = "精灵方案信息"
,req_desc = "精灵方案信息"
,req = []
,reply = [
{array, sprite_plan, plan_list, "精灵布阵方案", [
{uint8, id, "id"}
,{string, name , "名字"}
,{array, tuple, plan_sprites, "布阵信息", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid"}
]}
]}
]
}
,#rpc{
code = 26557
,log_title = "精灵方案保存"
,req_desc = "精灵方案保存"
,req = [
{uint8, id, "id"}
,{array, tuple, sprites, "布阵信息", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid"}
]}
,{uint32, type, "类型"}
,{uint32, team, "队伍编号"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26558
,log_title = "精灵方案名字修改"
,req_desc = "精灵方案名字修改"
,req = [
{uint8, id, "id"}
,{string, name , "名字"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26559
,log_title = "精灵方案信息(不能申请)"
,req_desc = "精灵方案信息(不能申请)"
,req = []
,reply = [
{rec, sprite_plan, sprite_plan, [
{uint8, id, "id"}
,{string, name , "名字"}
,{array, tuple, plan_sprites, "布阵信息", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid"}
]}
]}
]
}
,#rpc{
code = 26560
,log_title = "精灵布阵自主保存"
,req_desc = "精灵布阵自主保存"
,req = [
{uint32, type, "类型"}
,{uint32, team, "队伍编号"}
,{array, tuple, sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid"}
]}
,{uint8, flag, "是否返回飘字(0:否,1:是)"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
,{uint32, type, "类型"}
,{uint32, team, "队伍编号"}
]
}
,#rpc{
code = 26561
,log_title = "精灵布阵使用方案保存"
,req_desc = "精灵布阵使用方案保存"
,req = [
{uint32, type, "类型"}
,{uint32, team, "队伍编号"}
,{uint8, id, "方案id"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
, {uint32, type, "类型"}
,{uint32, team, "队伍编号"}
]
}
,#rpc{
code = 26562
,log_title = "购买精灵方案"
,req_desc = "购买精灵方案"
,req = [
{uint8, id, "方案id"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26563
,log_title = "消耗精灵时是否需要弹提示框"
,req_desc = "消耗精灵时是否需要弹提示框"
,req = [
{uint32, base_id, "消耗精灵id"}
,{uint32, num, "消耗的数量"}
]
,reply = [
{uint8, flag, "0:不需要 1:需要"}
,{uint8, type, "阵容id 0 方案名字1"}
,{uint32, id, "阵容id"}
,{string, name, "方案名字"}
]
}
,#rpc{
code = 26564
,log_title = "多队伍保存精灵布阵队伍顺序调整(跨服竞技场、巅峰冠军赛"
,req_desc = "多队伍保存精灵布阵队伍顺序调整(跨服竞技场、巅峰冠军赛)"
,req = [
{uint32, type, "类型"}
,{array, tuple, team_list, "玩法队伍布阵", [
{uint32, team, "队伍编号"}
, {uint32, old_team, "原队伍编号"}
]}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
].