侠客传说

try to take over the world!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         侠客传说
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  try to take over the world!
// @author       You
// @match        http://*.xkcs.nmb666.com/*
// @require      https://greasyfork.org/scripts/3465-jquery-timers/code/jQuerytimers.js?version=10415
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    var btn =
        " <a id='s3' href='http://3.xkcs.nmb666.com/index.aspx' class='bt_guaji_action' style='display:inline-block; width:80px'>server_3</a>  ";
    $('body').everyTime('1s', "A", function () {
        //fight
        if ($('#div_img_fuben_boss').is(':visible')) {
            $('body').oneTime('3ds', function () {
                fuben_fight_start();
                $('#div_role_fight_aciton_container').remove()
            })
        }
        

     if ($('#bt_confirm_fuben_fight_success').is(':visible')) {
            confirm_fuben_fight_success_check()
      }

      if ($('#bt_create_fuben_fight').is(':visible')) {
            create_fuben_fight_check()
      }
      // crack Boss limit
      if ($('#div_role_tishi_jump').is(':visible') && $('#div_role_tishi_jump').text()=='今日攻击BOSS已达上限' ) {
           $('#div_fuben_description_flow').hide();
      }
    })


$('body').on('click','#div_equipment_list_equipment_unlock>div',function(){
 console.log('show_fuben_description_check()');

  let aa = $(this).html();
  let e = /check\(\d+/;
  let id = e.exec(aa)[0].replace('check(','');
    let CK;
  //土豪金
      if($('#bt_equipment_tuhaojin').is(':visible')){
          $('#div_jiesuo_equipment_jiesuo').parent().unbind('click')
          $('body').oneTime('1ds',function(){
              $('.relative_div_container').on('click',function(){
                  $('#div_equipemnt_shuxing_flow').hide();
              })
          })

        //  $('#bt_equipment_tuhaojin').remove();
      }else{
      // $(this).on('click','button',function(){
          for(let i=0;i<=6;i++){
              $('body').oneTime(i*2+'ds',function(){
                  equipemnt_qianghua_check();
              })
          }
      // })

    }

})

    $('#span_fuben_map_fenye_title').on('click', function () {
        console.log('3333');
        $('body').everyTime('2s', 'F', function () {
            if ($('#div_fuben_description_flow').is(':hidden') && $('#div_img_fuben_boss').is(
                    ':hidden')) {
               autopk();
             //  autopkrev();
            }
        })
    })


    function autopk() {
        var obj, src;

        for (var i = 1; i <= 10; i++) {
            obj = $('#div_fuben_map_list_' + i + ' img');
            src = obj.attr('src');
            if (src.indexOf('filter_monster') > 0) {
                console.log(i);

                $('#div_fuben_map_list_' + (i - 1) + ' img').click();
                break;
            } else {
                if ($('#div_fuben_boss_jiantou').is(':visible')) {
                    $('#div_fuben_map_list_10 img').click();
                } else {
                    show_fuben_map_list_nextpage();
                }

            }
        }
    }

    function autopkrev(){
     var obj,src;
      if ($('#div_fuben_boss_jiantou').is(':visible')) {
           $('#div_fuben_map_list_10 img').click();
        } else {
            show_fuben_map_list_nextpage();
        }
    }


    $('#span_fuben_map_fenye_title').append("<button id='auto'>auto</button>");
    $('#auto').click(function () {
        console.log(44444)
    })
})();