台服dnf吧 关注:121,084贴子:1,980,836
  • 9回复贴,共1

请教一个狗哥最新DP的问题,爆出5黄奖励0点券

只看楼主收藏回复

如题:
3黄有奖励300点券,4黄奖励500点券,到了5黄就奖励0点券,怎么修改呢


IP属地:海南1楼2024-12-21 23:07回复
    Js里面搜索5ss


    IP属地:黑龙江来自iPhone客户端2楼2024-12-21 23:54
    收起回复
      2025-08-28 12:59:08
      广告
      不感兴趣
      开通SVIP免广告
      --这里是避免被任务完成券所完成的任务代码,如果有不想被完成的任务,可以填代码到这里,按格式来填!
      evade_lst = {
      --活动任务
      20001,20060,20085,4414,4476,10100,10101,10102,9524,9525,
      10103,10104,10019,10016,10017,5465,5466,5461,9526,9527,
      5467,5468,5469,5433,5473,5474,5475,5472,5470,9528,9529,
      5476,5678,5477,5479,5480,5481,5471,5432,5424,5425,5426,
      5427,5428,5429,5430,5431,5409,5462,5463,7704,9501,9502,
      9503,9504,9506,9505,9507,9511,9521,9530,9531,9532,9533,
      9534,9535,9536,9537,9538,9539,9522,9540,9541,9542,9543,
      9544,9545,9546,9523,9547,20231,20232,20229,20226,20221,
      20222,20223,20224,9901,9902,9903,9904,9905,9906,9907,
      20225,355,349,2708,2710,2712,2702,
      }
      --这里是避免被任务完成券所完成的任务代码,如果有不想被完成的任务,可以填代码到这里,按格式来填!
      -- 主线任务完成
      item_handler[2021458802] = function(user, item_id)
      local quest = dpx.quest
      local lst = quest.all(user.cptr)
      local chr_level = user:GetCharacLevel()
      local q = 0
      for i, v in ipairs(lst) do
      local id = v
      local info = quest.info(user.cptr, id)
      if info then
      if not info.is_cleared and info.type == game.QuestType.epic and info.min_level <= chr_level then
      quest.clear(user.cptr, id)
      q = q + 1
      end
      end
      end
      if q > 0 then
      quest.update(user.cptr)
      user:SendNotiPacketMessage(string.format("恭喜: %d个主线任务清理 成功!", q))
      else
      user:SendNotiPacketMessage("注意: 主线任务清理 失败!")
      dpx.item.add(user.cptr, item_id)
      end
      end


      IP属地:海南3楼2024-12-23 11:06
      回复
        -- 支线/普通任务完成(请转职觉醒之后在用,否者转职觉醒任务会被清理!)
        item_handler[2021458803] = function(user, item_id)
        local quest = dpx.quest
        local lst = quest.all(user.cptr)
        local chr_level = user:GetCharacLevel()
        local q = 0
        for i, v in ipairs(lst) do
        local id = v
        local info = quest.info(user.cptr, id)
        if info then
        if not info.is_cleared and info.type == game.QuestType.common_unique and info.min_level <= chr_level then
        quest.clear(user.cptr, id)
        q = q + 1
        end
        end
        end
        if q > 0 then
        quest.update(user.cptr)
        user:SendNotiPacketMessage(string.format("恭喜: %d个支线/普通任务清理 成功!", q))
        else
        user:SendNotiPacketMessage("注意: 支线/普通任务清理 失败!")
        dpx.item.add(user.cptr, item_id)
        end
        end


        IP属地:海南4楼2024-12-23 11:06
        回复
          -- 成就任务完成
          item_handler[2021458809] = function(user, item_id)
          local quest = dpx.quest
          local lst = quest.all(user.cptr)
          local chr_level = user:GetCharacLevel()
          local q = 0
          for i, v in ipairs(lst) do
          local id = v
          local info = quest.info(user.cptr, id)
          if info then
          if not info.is_cleared and info.type == game.QuestType.achievement and info.min_level <= chr_level then
          quest.clear(user.cptr, id)
          q = q + 1
          end
          end
          end
          if q > 0 then
          quest.update(user.cptr)
          user:SendNotiPacketMessage(string.format("恭喜: %d个成就任务清理 成功!", q))
          else
          user:SendNotiPacketMessage("注意: 成就任务清理 失败!")
          dpx.item.add(user.cptr, item_id)
          end
          end


          IP属地:海南5楼2024-12-23 11:06
          回复
            主线任务完成券设置成功了,不会清除排除项里的任务,但是普通和成就任务完成券会清理排除项的任务,


            IP属地:海南6楼2024-12-23 11:07
            回复
              各路大佬帮忙看看dp代码,是不是哪里错了


              IP属地:海南7楼2024-12-23 11:07
              回复