配置文件

配置文件

  • 服务端DBS和客户端新增配置文件 dbs_chr_recommend.xml
  • 双端需要同步,客户端读取本地配置进行内容显示
  • 配置重载命令 //gm reload config chrrecommend, 需要玩家退出重登生效
<!-- 武将推荐任务 配置文件
<recommendRoot open="强制开关">
    <recommand id="唯一表示当前活动的id" begin="开始时间" end="结束时间" periodday="周期天数">
        <chrtask>  武将收集任务
            <chr linkchr="关联的武将id" sort="排序值" period="所属当期有效期内的第几个周期">
                <task 
                    taskid="序号,不重复值" 
                    chrs="需要收集的武将id,多个以,分割" 
                    type="条件类型 0:无条件,1:武将星级要求  2:累计武将数目要求(processtask默认类型)"
                    value="根据type而定,type0: 不关心该值,type1:武将星级,type2:武将数目" 
                    award="任务完成奖励 物品id,物品数目;物品id,物品数目;..."
                    desc="描述" 
                />
            </chr>
        </chrtask>

        <processtask>  累计收集任务
            <task 
                taskid="序号,不重复值" 
                period="所属当期有效期内的第几个周期"
                sort="排序值"
                value="累计收集当期有效期内指定武将的数目" 
                award="任务完成奖励 物品id,物品数目;物品id,物品数目;..."
                desc="描述" 
                />
        </processtask>
    </recommand>
</recommendRoot

【注意】
(1)open为强制开关,为0则直接关闭该任务;
(2)同一个大周期内的各个任务id不要重复,上线后不要修改,涉及到数据库的数据记录;
(3)配置的活动时间段天数end-begin应该是periodday的倍数;
(4)大周期内的period应该是加一递增的,最小为1,最大为(end-begin)/ periodday;
-->

<root>
<recommendRoot open="1">
    <recommand id="1" begin="20210101T000000" end="20221231T235959" periodday="7" >
        <chrtask>
            <chr id="1" period="1" linkchr="300" chrdesc="界关羽" sort="3" taskid1="100001" taskid2="100002" >
                <task taskid="100001" desc="#_#" desc_cn="将界关羽升至2星" chrs="300" type="1" value="2" award="112101,1" />
                <task taskid="100002" desc="#_#" desc_cn="拥有界刘备、界关羽、界张飞" chrs="299,300,301" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="314" chrdesc="界张辽" sort="4" taskid1="100003" taskid2="100004" >
                <task taskid="100003" desc="#_#" desc_cn="将界张辽升至2星" chrs="314" type="1" value="2" award="112101,1" />
                <task taskid="100004" desc="#_#" desc_cn="拥有界张辽、界关羽" chrs="314,300" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="108" chrdesc="SP赵云" sort="2" taskid1="100005" taskid2="100006" >
                <task taskid="100005" desc="#_#" desc_cn="将SP赵云升至2星" chrs="108" type="1" value="2" award="112101,1" />
                <task taskid="100006" desc="#_#" desc_cn="拥有SP赵云、刘禅" chrs="108,53" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="307" chrdesc="界黄盖" sort="5" taskid1="100007" taskid2="100008" >
                <task taskid="100007" desc="#_#" desc_cn="将界黄盖升至2星" chrs="307" type="1" value="2" award="112101,1" />
                <task taskid="100008" desc="#_#" desc_cn="拥有界黄盖、界周瑜" chrs="307,308" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="299" chrdesc="界刘备" sort="6" taskid1="100009" taskid2="100010" >
                <task taskid="100009" desc="#_#" desc_cn="将界刘备升至2星" chrs="299" type="1" value="2" award="112101,1" />
                <task taskid="100010" desc="#_#" desc_cn="拥有界刘备、孙尚香" chrs="299,25" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="173" chrdesc="钟会" sort="7" taskid1="100011" taskid2="100012" >
                <task taskid="100011" desc="#_#" desc_cn="将钟会升至2星" chrs="173" type="1" value="2" award="112101,1" />
                <task taskid="100012" desc="#_#" desc_cn="拥有钟会、钟繇" chrs="173,334" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="1" linkchr="303" chrdesc="界马超" sort="1" taskid1="100013" taskid2="100014" >
                <task taskid="100013" desc="#_#" desc_cn="将界马超升至2星" chrs="303" type="1" value="2" award="112101,1" />
                <task taskid="100014" desc="#_#" desc_cn="拥有界马超、马云騄" chrs="303,414" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="109" chrdesc="SP貂蝉" sort="2" taskid1="100015" taskid2="100016" >
                <task taskid="100015" desc="#_#" desc_cn="将SP貂蝉升至2星" chrs="109" type="1" value="2" award="112101,1" />
                <task taskid="100016" desc="#_#" desc_cn="拥有sp貂蝉、界吕布" chrs="109,319" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="319" chrdesc="界吕布" sort="1" taskid1="100017" taskid2="100018" >
                <task taskid="100017" desc="#_#" desc_cn="将界吕布升至2星" chrs="319" type="1" value="2" award="112101,1" />
                <task taskid="100018" desc="#_#" desc_cn="拥有界吕布、界董卓" chrs="319,452" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="185" chrdesc="新法正" sort="5" taskid1="100019" taskid2="100020" >
                <task taskid="100019" desc="#_#" desc_cn="将新法正升至2星" chrs="185" type="1" value="2" award="112101,1" />
                <task taskid="100020" desc="#_#" desc_cn="拥有新法正、界诸葛亮" chrs="185,401" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="49" chrdesc="鲁肃" sort="6" taskid1="100021" taskid2="100022" >
                <task taskid="100021" desc="#_#" desc_cn="将鲁肃升至2星" chrs="49" type="1" value="2" award="112101,1" />
                <task taskid="100022" desc="#_#" desc_cn="拥有鲁肃、界吕蒙" chrs="49,306" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="187" chrdesc="新王异" sort="3" taskid1="100023" taskid2="100024" >
                <task taskid="100023" desc="#_#" desc_cn="将新王异升至2星" chrs="187" type="1" value="2" award="112101,1" />
                <task taskid="100024" desc="#_#" desc_cn="拥有新王异、界马超" chrs="187,303" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="35" chrdesc="荀彧" sort="4" taskid1="100025" taskid2="100026" >
                <task taskid="100025" desc="#_#" desc_cn="将荀彧升至2星" chrs="35" type="1" value="2" award="112101,1" />
                <task taskid="100026" desc="#_#" desc_cn="拥有荀彧、郭嘉" chrs="35,20" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="212" chrdesc="界张角" sort="7" taskid1="100027" taskid2="100028" >
                <task taskid="100027" desc="#_#" desc_cn="将界张角升至2星" chrs="212" type="1" value="2" award="112101,1" />
                <task taskid="100028" desc="#_#" desc_cn="拥有界张角、界袁绍" chrs="212,438" type="0" value="0" award="112201,1" />
            </chr>
            <chr id="1" period="2" linkchr="153" chrdesc="陈宫" sort="8" taskid1="100029" taskid2="100030" >
                <task taskid="100029" desc="#_#" desc_cn="将陈宫升至2星" chrs="153" type="1" value="2" award="112101,1" />
                <task taskid="100030" desc="#_#" desc_cn="拥有陈宫、界曹操" chrs="153,311" type="0" value="0" award="112201,1" />
            </chr>
        </chrtask>

        <processtask>
            <task taskid="1100001" id="1" period="1" sort="1" value="1" award="434601,1" desc="#_#" desc_cn="1个" />
            <task taskid="1100002" id="1" period="1" sort="2" value="3" award="434601,1" desc="#_#" desc_cn="3个" />
            <task taskid="1100003" id="1" period="1" sort="3" value="5" award="434601,1" desc="#_#" desc_cn="5个" />
            <task taskid="1100004" id="1" period="1" sort="4" value="7" award="434601,2" desc="#_#" desc_cn="集齐" />
            <task taskid="1100005" id="1" period="2" sort="1" value="2" award="434501,2" desc="#_#" desc_cn="2个" />
            <task taskid="1100006" id="1" period="2" sort="2" value="4" award="434501,2" desc="#_#" desc_cn="4个" />
            <task taskid="1100007" id="1" period="2" sort="3" value="6" award="434501,2" desc="#_#" desc_cn="6个" />
            <task taskid="1100008" id="1" period="2" sort="4" value="8" award="434501,4" desc="#_#" desc_cn="集齐" />
        </processtask>
    </recommand>
</recommendRoot>
</root>