首页 游戏资源分享 手游技术交流 仙境传说ro精英备战卡教程
0赞
赞赏
手机版
扫码打开手机版
把文字装进口袋

仙境传说 仙境传说ro精英备战卡教程

David902  2024-9-27 13:51:14
教程如下:

我这里以服事到大主教的神威祈福 为例
服务端:
表名:Table_Buffer
源代码:
  1. [88888] = {id = 888888, BuffName = 'xxx备战精英卡', BuffRate = {Odds=100}, Condition = {type="Profession",value={51,52,53,54}}, BuffTarget = {type=1}, BuffType = {}, BuffEffect = {type="AddBuff",id={95190}}, DynamicData = {}, Continue = {interval=10}, Delete = {}, BuffIcon = '', BuffDesc = '', Dsc = '每隔10秒自动释放一次神威祈福', DelBuffID = {}},
复制代码
解释:
        [自定义ID] = {id = 自定义ID, BuffName = 'xxx备战精英卡', BuffRate = {Odds=100}, Condition = {type=”Profession”,value={51,52,53,54}}, BuffTarget = {type=1}, BuffType = {}, BuffEffect = {type=”AddBuff”,id={技能上的BUFFid}}, DynamicData = {}, Continue = {interval=每隔多少秒}, Delete = {}, BuffIcon = '', BuffDesc = '', Dsc = '每隔10秒自动释放一次神威祈福', DelBuffID = {}},

自定义ID:
就是你自己定义的BUFFid

技能上的BUFFid:
就是Table_skill(技能表上面关联的BUFFid)

interval=每隔多少秒 :
interval=10 (这个就是10s释放一次)

Condition = {type=”Profession”,value={51,52,53,54}},
(这个是职业穿戴条件)职业表id 在 Table_class
这里用的是:服事到大主教职业
只有加了职业条件才能让这些职业生效 其他职业不生效!

客户端:
  1. [88888] = "{id = 88888, BuffName = 'xxx备战精英卡', BuffRate = {Odds = 100}, Condition = {value = {51, 52, 53, 54}, type = 'Profession'}, BuffType = _EmptyTable, BuffEffect = {id = {95190}, type = 'AddBuff'}, BuffIcon = '', BuffDesc = '', Dsc = '每隔10秒自动释放一次神威祈福', DelBuffID = _EmptyTable}",
复制代码

↑↑↑这是BUFF部分↑↑↑

↓↓↓下面说卡片部分↓↓↓

服务端:
这里用波利卡片演示
BuffEffect = {buff={88888}},
这里就是上面的88888id
Table_Card =
  1. [20001] = {id = 20001, Name = '波利卡片', Quality = 1, Position = 3, CardType = 1, Anchor = {0.8,0.4}, Picture = 'card_10001', monsterID = {10001}, BuffEffect = {buff={88888}}, Weight = 100, Type = 1, TFComposeDate = {}, TFLotteryDate = {}, ComposeDate = {}, LotteryDate = {}},
复制代码
客户端:
Table_Card =
  1. [20001]={id = 20001, Name = '波利卡片', Quality = 1, Position = 3, CardType = 1, Anchor = {0.8, 0.4}, Picture = 'card_10001', monsterID = {10001}, BuffEffect = {buff = {88888}}, Type = 1, TFComposeDate = _EmptyTable, TFLotteryDate = _EmptyTable, ComposeDate = _EmptyTable, LotteryDate = _EmptyTable},
复制代码
卡片若是多个buff就写多个就好比如:BuffEffect = {buff={88888,888888,999999,123456}},  (客户端服务端都需要写 不然不显示)
最后用unity编译打包 做热更 服务端文件覆盖服务端就可以生效了

使用道具 举报

您需要登录后才可以回帖 立即登录
返回顶部