配置文件

配置文件

  • 服务端MatchServer和客户端新增配置文件 ms_luckycard_lua.xml
  • 修改该配置文件,需要同步服务端MatchServer和客户端
<?xml version="1.0" encoding="utf-8" ?>

<!--
    本文件为MatchServer的海外翻牌活动配置
-->

<!-- 字段说明 -->
<!--module
    module_type:  类型定义 翻牌为8
    status:是否开启
    name:luckycard
-->
<!--
<luckycard id="活动期数"  begin="开始时间"  end="结束时间"  show="是否显示"  actkey="活动键值,配合客户端"  actnamekey="名称key"  broadcastkey="广播key"  cardstyleid="1102牌背id">
        刷新
        <refresh 
            freeminutes="免费刷新的时间间隔,分钟" 
            paygoods="付费刷新的代币, 代币数目" 
            paydaylimit="每天可付费刷新的次数上限" 
        />

        翻牌价格
        <cardprices  paygoodsid="翻牌消耗的代币"  allinper="一键翻牌的优惠系数,百分制, 向上取整">
            <card  idx="翻的第几张牌"  paygoodscount="消耗的代币数目" />
        </cardprices>

        牌库, 建议库的道具性质为: 库id递增,道具性质递减(精品->普通)
        <goodspool shownum="需要选择的道具个数">
            <pool id="库id,不可重复"  title="牌库名称">
                保底配置
                <guarantee 
                    get="保底触发次数,0表示没有该设置" 
                    notget="保底不触发次数, 0表示没有该设置" 
                />

                从该库选择几个道具,概率计算
                <getnum>
                    <get 
                        num="从该库选择道具的个数" 
                        chance="权重" 
                    />
                </getnum>

                该库的道具列表
                <goodslist>
                    <goods 
                        idx="序号, 不可重复,建议为 库id * 10000 + 递增数字" 
                        goods="道具物品id,道具数目" 
                        chance="权重" 
                        isbigprize="是否是大奖,1:是且广播,0:否"

                        以下字段供客户端使用
                        cardeffect = "卡牌特效,1是开" 
                        turnovertype="翻转类型 1:特殊翻转 0:普通翻转" 
                        biglucky="是否大吉大利 1:是" 
                        isshow="是否轮播显示,1:是"
                    />
                </goodslist>
            </pool>
        </goodspool>    
</luckycard>
-->

<root>
<module moduletype="8" status="1" name="luckycard"/>

<luckycardroot>
    <luckycard id="1" begin="20201225T120000" end="20221231T235959" show="1" actkey="deafult" actnamekey="S_PLUGIN_LUCKYCARD_NAME_KEY" broadcastkey="S_PLUGIN_LUCKYCARD_BROADCAST_KEY" cardstyleid="1102">

        <refresh freeminutes="10" paygoods="5002301,10" paydaylimit="10" />

        <cardprices paygoodsid="5002301" allinper="50">
            <card idx="1" paygoodscount="5" />
            <card idx="2" paygoodscount="10" />
            <card idx="3" paygoodscount="50" />
            <card idx="4" paygoodscount="100" />
            <card idx="5" paygoodscount="200" />
            <card idx="6" paygoodscount="300" />
            <card idx="7" paygoodscount="400" />
            <card idx="8" paygoodscount="500" />
            <card idx="9" paygoodscount="600" />
            <card idx="10" paygoodscount="700" />
        </cardprices>

        <goodspool shownum="10">
            <pool idx="1" title="大吉" title_cn="大吉">
                <guarantee get="20" notget="10" />
                <getnum>
                    <get num="0" chance="50" />
                    <get num="1" chance="50" />
                </getnum>
                <goodslist>
                    <goods idx="10001" goods="804001,1" chance="10" isbigprize="1"/>
                    <goods idx="10002" goods="804101,1" chance="10" isbigprize="1"/>
                    <goods idx="10003" goods="804201,1" chance="10" isbigprize="1"/>
                    <goods idx="10004" goods="804301,1" chance="10" isbigprize="1"/>
                    <goods idx="10005" goods="804401,1" chance="10" isbigprize="1"/>
                    <goods idx="10006" goods="804501,1" chance="10" isbigprize="1"/>
                    <goods idx="10007" goods="804601,1" chance="10" isbigprize="1"/>
                    <goods idx="10008" goods="910401,1" chance="10" isbigprize="1"/>
                    <goods idx="10009" goods="434601,5" chance="10" isbigprize="1"/>        
                    <goods idx="10010" goods="434501,10" chance="10" isbigprize="0"/>                    
                </goodslist>
            </pool>

            <pool idx="2" title="中吉" title_cn="中吉">
                <guarantee get="10" notget="5"/>
                <getnum>
                    <get num="0" chance="50" />
                    <get num="2" chance="50" />
                </getnum>
                <goodslist>
                    <goods idx="20001" goods="690001,1" chance="10" isbigprize="0"/>
                    <goods idx="20002" goods="690101,1" chance="10" isbigprize="0"/>
                    <goods idx="20003" goods="690201,1" chance="10" isbigprize="0"/>
                    <goods idx="20004" goods="690301,1" chance="10" isbigprize="0"/>
                    <goods idx="20005" goods="693101,1" chance="10" isbigprize="0"/>
                    <goods idx="20006" goods="693201,1" chance="10" isbigprize="0"/>
                    <goods idx="20007" goods="693301,1" chance="10" isbigprize="0"/>
                    <goods idx="20008" goods="693401,1" chance="10" isbigprize="0"/>
                    <goods idx="20009" goods="693501,1" chance="10" isbigprize="0"/>
                    <goods idx="20010" goods="693001,1" chance="10" isbigprize="0"/>                    
                </goodslist>
            </pool>

            <pool idx="3" title="半吉" title_cn="半吉">
                <guarantee get="0" notget="0"/>
                <getnum>
                    <get num="0" chance="50" />
                    <get num="3" chance="50" />
                </getnum>
                <goodslist>
                    <goods idx="30001" goods="100301,1" chance="10" isbigprize="0"/>
                    <goods idx="30002" goods="100301,2" chance="10" isbigprize="0"/>
                    <goods idx="30003" goods="100301,3" chance="10" isbigprize="0"/>
                    <goods idx="30004" goods="100301,4" chance="10" isbigprize="0"/>
                    <goods idx="30005" goods="100301,5" chance="10" isbigprize="0"/>
                    <goods idx="30006" goods="100301,6" chance="10" isbigprize="0"/>
                    <goods idx="30007" goods="100301,7" chance="10" isbigprize="0"/>
                    <goods idx="30008" goods="100301,8" chance="10" isbigprize="0"/>
                    <goods idx="30009" goods="100301,9" chance="10" isbigprize="0"/>
                    <goods idx="30010" goods="100301,10" chance="10" isbigprize="0"/>                    
                </goodslist>
            </pool>

            <pool idx="4" title="小吉" title_cn="小吉">
                <guarantee get="0" notget="0"/>
                <getnum>
                    <get num="1" chance="20" />
                    <get num="2" chance="20" />
                    <get num="3" chance="20" />
                    <get num="4" chance="20" />    
                    <get num="5" chance="20" />    
                </getnum>
                <goodslist>
                    <goods idx="40001" goods="9020001,1" chance="10" isbigprize="0"/>
                    <goods idx="40002" goods="9020001,2" chance="10" isbigprize="0"/>
                    <goods idx="40003" goods="9020001,3" chance="10" isbigprize="0"/>
                    <goods idx="40004" goods="9020001,4" chance="10" isbigprize="0"/>
                    <goods idx="40005" goods="9020001,5" chance="10" isbigprize="0"/>
                    <goods idx="40006" goods="9020001,6" chance="10" isbigprize="0"/>
                    <goods idx="40007" goods="9020001,7" chance="10" isbigprize="0"/>
                    <goods idx="40008" goods="9020001,8" chance="10" isbigprize="0"/>
                    <goods idx="40009" goods="9020001,9" chance="10" isbigprize="0"/>
                    <goods idx="40010" goods="9020001,10" chance="10" isbigprize="0"/>                    
                </goodslist>
            </pool>

            <pool idx="5" title="末吉" title_cn="末吉">
                <guarantee get="0" notget="0"/>
                <getnum>
                    <get num="1" chance="20" />
                    <get num="2" chance="20" />
                    <get num="3" chance="20" />
                    <get num="4" chance="20" />    
                    <get num="5" chance="20" />    
                </getnum>
                <goodslist>
                    <goods idx="50001" goods="694001,1" chance="10" isbigprize="0"/>
                    <goods idx="50002" goods="694001,2" chance="10" isbigprize="0"/>
                    <goods idx="50003" goods="694001,3" chance="10" isbigprize="0"/>
                    <goods idx="50004" goods="694001,4" chance="10" isbigprize="0"/>
                    <goods idx="50005" goods="694001,5" chance="10" isbigprize="0"/>
                    <goods idx="50006" goods="694001,6" chance="10" isbigprize="0"/>
                    <goods idx="50007" goods="694001,7" chance="10" isbigprize="0"/>
                    <goods idx="50008" goods="694001,8" chance="10" isbigprize="0"/>
                    <goods idx="50009" goods="694001,9" chance="10" isbigprize="0"/>
                    <goods idx="50010" goods="694001,10" chance="10" isbigprize="0"/>                    
                </goodslist>
            </pool>
        </goodspool>

    </luckycard>
</luckycardroot>
</root>