教程如下:
我这里以服事到大主教的神威祈福 为例
服务端:
表名:Table_Buffer
源代码:
[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
这里用的是:服事到大主教职业
只有加了职业条件才能让这些职业生效 其他职业不生效!
客户端:
[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 =
[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 =
[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编译打包 做热更 服务端文件覆盖服务端就可以生效了
给大家免费做的教程。
楼主辛苦了,谢谢楼主,楼主好人一生平安!
这个逼装的我给82分,剩下的用666的方式打给你!
楼主辛苦了,谢谢楼主,楼主好人一生平安!
楼主辛苦了,谢谢楼主,楼主好人一生平安!
楼主辛苦了,谢谢楼主,楼主好人一生平安!
楼主辛苦了,谢谢楼主,楼主好人一生平安!
谢谢分享谢谢分享