配置文件

配置文件

  • 服务端MatchServer和客户端新增配置文件 ms_yearbeast_lua.xml
  • 修改该配置文件,需要同步服务端MatchServer和客户端

    <?xml version="1.0" encoding="utf-8" ?>
    <!--
      本文件为MatchServer的海外打年兽活动配置
    -->
    <!-- 字段说明 -->
    <!--
    <module moduletype="类型定义 打年兽yearbeast为7" status="是否开启" name="打年兽yearbeast"/>
    <yearbeastroot>
      <yearbeast id="第几次开启" begin="开始时间" end="结束时间" show="是否显示" actkey="活动键值,配合客户端" actnamekey="名称key" awardkey="全服通知key">
          <playTarget hp="总血量" deathContinue="是否可以鞭尸"/>  打击对象信息
    
          <useList>
              <use idx="序号" cost="消耗代币数目" get="获得道具数目" discount="显示折扣" costGoodsId="消耗代币的道具ID" award="宝箱iconID, 奖品数目" />
          </useList>
    
          <harmProps> 伤害道具
              <prop idx="序号" nameEN="道具名称英文" nameCH="道具名称中文" propType="道具id" harm="伤害区间" chance="获得权重"/>
          </harmProps>        
    
          <dropPool> 掉落奖池
              <goods idx="序号" goods="奖品id,奖品数目(只有一个)" chance="获得权重" globalNtf="全服通知与否"/>
          </dropPool>
    
          <harmAward personalSupport="个人伤害奖励是否开启" globalSupport="全服伤害奖励是否开启">  伤害累计奖励
              <personal>  个人伤害奖励,idx递增(与totalHarm关联)
                  <goods idx="序号" goods="奖品id,奖品数目(只有一个)" totalHarm="达到的累计伤害值" flag="奖励标记,是否是大奖 0:普通奖励,1:大奖" globalNtf="全服通知与否"/>
              </personal>
    
              <global>  全服伤害奖励,idx递增(与totalHarm关联)
                  <goods idx="序号" goods="奖品id,奖品数目(可以多个,分号分割)" totalHarm="达到的累计伤害值"/>
              </global>
          </harmAward>
      </yearbeast>
      【注意】 
      (1)idx上线后不可改变,唯一确定某一条数据项
      (2)配置修改需要同步服务端和客户端
    </yearbeastroot>
    -->
    <root>
    <module moduletype="7" status="1" name="yearbeast"/>
    <yearbeastroot>
      <yearbeast id="1" begin="20200705T120000" end="20210924T235959" show="1" actkey="default" actnamekey="S_PLUGIN_YEARBEAST_NAME_KEY" awardkey="S_PLUGIN_YEARBEAST_AWARD_KEY">
          <playTarget hp="10000" deathContinue="1"/>
    
          <!-- BloodBarCfg.blue = {img = "#blood_blue.png", textColor = ""} 
          BloodBarCfg.cyan = {img = "#blood_cyan.png", textColor = ""} 
          BloodBarCfg.green = {img = "#blood_green.png", textColor = ""} 
          BloodBarCfg.orange = {img = "#blood_orange.png", textColor = ""} 
          BloodBarCfg.purple = {img = "#blood_purple.png", textColor = ""} 
          BloodBarCfg.red = {img = "#blood_red.png", textColor = ""} 
          BloodBarCfg.yellow = {img = "#blood_yellow.png", textColor = ""}  -->
    
          <hpCfg><!--客户端配置-->
              <goods idx="1" barColor="red" hpRange="0, 1000"/> <!--血条1-->
              <goods idx="2" barColor="yellow" hpRange="1001, 2000"/> <!--血条2-->
              <goods idx="3" barColor="purple" hpRange="2001, 4000"/> <!--血条3-->
              <goods idx="4" barColor="orange" hpRange="4001, 6000"/> <!--血条4-->
              <goods idx="5" barColor="cyan" hpRange="6000, 7500"/> <!--血条5-->
              <goods idx="6" barColor="blue" hpRange="7501, 9500"/> <!--血条6-->
              <goods idx="7" barColor="red" hpRange="8000, 10000"/> <!--血条7-->
          </hpCfg>
    
          <useList>
              <use idx="1" cost="1" get="1" discount="100" costGoodsId="5002301" award="4618901,1" />
              <use idx="2" cost="9" get="10" discount="90" costGoodsId="5002301" award="4618901,10" />
          </useList>
    
          <harmProps>
              <prop idx="1" nameEN="firecracker" nameCH="鞭炮" propType="1001" harm="50, 100" chance="100"/>
              <prop idx="2" nameEN="fireworks" nameCH="烟花" propType="1002" harm="101, 150" chance="50"/>
              <prop idx="3" nameEN="bomb" nameCH="炸弹" propType="1003" harm="200, 300" chance="20"/>
          </harmProps>        
    
          <dropPool>
              <goods idx="1" goods="100201,1" chance="500" globalNtf="0"/> <!--点将卡1-->
              <goods idx="2" goods="100301,1" chance="400" globalNtf="0"/> <!--手气卡1-->
              <goods idx="3" goods="100401,1" chance="300" globalNtf="0"/> <!--换将卡1-->
              <goods idx="4" goods="100608,1" chance="200" globalNtf="0"/> <!--双倍经验卡1-->
              <goods idx="5" goods="111401,1" chance="100" globalNtf="0"/> <!--公会契约书1-->
              <goods idx="6" goods="112101,10" chance="10" globalNtf="1"/> <!--雁翎10-->
          </dropPool>
    
          <harmAward personalSupport="1" globalSupport="1">
              <personal>
                  <goods idx="1" goods="434601,1" totalHarm="100" flag="0" globalNtf="0"/> <!--招募令1-->
                  <goods idx="2" goods="100201,10" totalHarm="500" flag="0" globalNtf="0"/> <!--点将卡10-->
                  <goods idx="3" goods="180001,10" totalHarm="1000" flag="0" globalNtf="0"/> <!--身份卡10-->
                  <goods idx="4" goods="200201,20" totalHarm="2000" flag="0" globalNtf="0"/> <!--诏令20-->
                  <goods idx="5" goods="434501,5" totalHarm="5000" flag="0" globalNtf="0"/> <!--雁翎甲5-->
                  <goods idx="6" goods="111401,10" totalHarm="8000" flag="0" globalNtf="1"/> <!--补签卡10-->
                  <goods idx="7" goods="636509,1" totalHarm="9500" flag="0" globalNtf="1"/> <!--弃武从文*徐庶-->
                  <goods idx="8" goods="943301,1" totalHarm="10000" flag="1" globalNtf="1"/> <!--王元姬-->
              </personal>
    
              <global>
                  <goods idx="1" goods="434601,1;100201,1;111401,1" totalHarm="1800"/>
                  <goods idx="2" goods="100201,10;112101,10;100301,1" totalHarm="5000"/>
                  <goods idx="3" goods="111401,10" totalHarm="20000"/>
              </global>
          </harmAward>
      </yearbeast>
    </yearbeastroot>
    </root>