= RTU BOT 1.0

= RTU BOT

当前为 2016-09-19 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name = RTU BOT 1.0
  3. // @description = RTU BOT
  4. // @version = 1.0
  5. // @namespace = tampermonkey.net
  6. // ==/UserScript==
  7. var GetGreenGlow = function(elemid){
  8.  
  9. var iBool = 0;
  10.  
  11.  
  12. if (document.getElementById("tc" + elemid)) {
  13.  
  14. var sClassName = document.getElementById("tc" + elemid).className;
  15.  
  16. var iPosOfNum = sClassName.search("next_glow");
  17.  
  18. if (iPosOfNum > 0) {
  19.  
  20. iBool = 1;
  21.  
  22. }
  23.  
  24. }
  25.  
  26.  
  27. return iBool;
  28.  
  29. }
  30.  
  31.  
  32. var HoleBildUrl = function(elemid){
  33.  
  34. var sUrl = null;
  35.  
  36.  
  37. if (elemid >= 0 && elemid <= 74) {
  38.  
  39.  
  40. if (elemid===0) {
  41.  
  42. sUrl = "images/quantumfoam.jpg";
  43.  
  44. } else {
  45.  
  46. sUrl = "images/" + arUnit[elemid-1][11];
  47.  
  48. }
  49.  
  50. }
  51.  
  52. return sUrl;
  53.  
  54. }
  55.  
  56.  
  57. var GetCountForElem = function(elemid){
  58.  
  59. var iCount = 0;
  60.  
  61.  
  62. if (document.getElementById("idp" + elemid)) {
  63.  
  64. var elemText = document.getElementById("idp" + elemid).textContent;
  65.  
  66.  
  67. var iPosOfNum = elemText.search(":")+2;
  68.  
  69. var iLengthOfText = elemText.length;
  70.  
  71.  
  72. iCount = parseInt(elemText.substr(iPosOfNum,iLengthOfText-iPosOfNum));
  73.  
  74. }
  75.  
  76.  
  77. return iCount;
  78.  
  79. }
  80.  
  81.  
  82. var autoBuy = function(repeatInterval) {
  83.  
  84.  
  85. var CheckNext = function() {
  86.  
  87. for(var k = 74; k >= 0; k--) {
  88.  
  89. if (GetGreenGlow(k+1) == 1) {
  90.  
  91. tonext(k);
  92.  
  93. gritter(toTitleCase(arrayNames[k]), "Next auf " + GetCountForElem(k+1), HoleBildUrl(k),null, null);
  94.  
  95. k = -1;
  96.  
  97. }
  98.  
  99. }
  100.  
  101. }
  102.  
  103.  
  104. var CheckNewItems = function() {
  105.  
  106.  
  107. var arrayCount = [GetCountForElem(1),GetCountForElem(2),GetCountForElem(3),GetCountForElem(4),GetCountForElem(5),GetCountForElem(6),GetCountForElem(7),GetCountForElem(8),GetCountForElem(9),GetCountForElem(10)
  108.  
  109. ,GetCountForElem(11),GetCountForElem(12),GetCountForElem(13),GetCountForElem(14),GetCountForElem(15),GetCountForElem(16),GetCountForElem(17),GetCountForElem(18),GetCountForElem(19),GetCountForElem(20)
  110.  
  111. ,GetCountForElem(21),GetCountForElem(22),GetCountForElem(23),GetCountForElem(24),GetCountForElem(25),GetCountForElem(26),GetCountForElem(27),GetCountForElem(28),GetCountForElem(29),GetCountForElem(30)
  112.  
  113. ,GetCountForElem(31),GetCountForElem(32),GetCountForElem(33),GetCountForElem(34),GetCountForElem(35),GetCountForElem(36),GetCountForElem(37),GetCountForElem(38),GetCountForElem(39),GetCountForElem(40)
  114.  
  115. ,GetCountForElem(41),GetCountForElem(42),GetCountForElem(43),GetCountForElem(44),GetCountForElem(45),GetCountForElem(46),GetCountForElem(47),GetCountForElem(48),GetCountForElem(49),GetCountForElem(50)
  116.  
  117. ,GetCountForElem(51),GetCountForElem(52),GetCountForElem(53),GetCountForElem(54),GetCountForElem(55),GetCountForElem(56),GetCountForElem(57),GetCountForElem(58),GetCountForElem(59),GetCountForElem(60)
  118.  
  119. ,GetCountForElem(61),GetCountForElem(62),GetCountForElem(63),GetCountForElem(64),GetCountForElem(65),GetCountForElem(66),GetCountForElem(67),GetCountForElem(68),GetCountForElem(69),GetCountForElem(70)
  120.  
  121. ,GetCountForElem(71),GetCountForElem(72),GetCountForElem(73),GetCountForElem(74),GetCountForElem(75)];
  122.  
  123.  
  124. var MaxLevelProElem = 9;
  125.  
  126. var LevelDiffForNext = 5;
  127.  
  128.  
  129. bonusAll();10000
  130.  
  131.  
  132. for(var j = specialsbought; j < 75; j++) {
  133.  
  134. specialclick(j);
  135.  
  136. }
  137.  
  138.  
  139. for(var i = 75; i >= 1; i--) {
  140.  
  141. var a = "tc"+i;
  142.  
  143. if(document.getElementById(a)){
  144.  
  145. if(document.getElementById(a).style.opacity == 1){
  146.  
  147.  
  148. if(arrayCount[i-1]<= MaxLevelProElem){
  149.  
  150. calculsclick(i-1);
  151.  
  152. arrayCount[i-1] = ++arrayCount[i-1];
  153.  
  154. gritter(toTitleCase(arrayNames[i-1]), "Von " + (arrayCount[i-1]-1) + " auf " + arrayCount[i-1], HoleBildUrl(i-1), null, null);
  155.  
  156. }
  157.  
  158. }
  159.  
  160. }
  161.  
  162. }
  163.  
  164.  
  165. setTimeout(function(){CheckNext()}, 1000);
  166.  
  167.  
  168. };
  169.  
  170. return setInterval(CheckNewItems, repeatInterval);
  171.  
  172. };
  173.  
  174. autoBuy(3000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址