Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. // ==UserScript==
  2. // @name BoT C With FilterLooting
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author Special for HimmerlkoZ
  7. // @match https://*.tribalwars.ae/game.php?*&screen=am_farm*
  8. // ==/UserScript==
  9.  
  10.  
  11.  
  12. (function($) {
  13. javascript:
  14. $.getScript('https://www.tribalwars.top/tribalwars/laEnhancer/laEnhancerFix.js');
  15. void(0);
  16. $('#am_widget_Farm').before(`<center>
  17. <table id='table'>
  18. <tr><th id = 'th' colspan = '8'>
  19. معلومات عن استخدام البوت
  20. </th></tr>
  21. <tr><th id = 'th' colspan = '8'>
  22. هذه الازرار للتوضيح قم بالضغط عليها من الكيبورد
  23. </th></tr>
  24. <tr>
  25. <th id = 'th' colspan = '2'><b>نهب اوتماتيكي A</b></th>
  26. <th id = 'th' colspan = '2'><b>نهب اوتماتيكي B</b></th>
  27. <th id = 'th' colspan = '2'><b>نهب اوتماتيكي C</b></th>
  28. <th id = 'th' colspan = '2'><b>إيقاف النهب الاوتماتيكي</b></th>
  29. </tr>
  30.  
  31. <tr>
  32. <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'A' value='Q' title = 'للنهب الاوتماتيكي بقالب a' /></td>
  33. <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'B' value='W' title = 'للنهب الاوتماتيكي بقالب b' /></td>
  34. <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'C' value='E' title = 'للنهب الاوتماتيكي بقالب c' /></td>
  35. <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'StopLooting' value='X' title = 'لإيقاف النهب' /></td>
  36. </tr>
  37.  
  38. </table>
  39. <style>
  40. #table , #td , #th{
  41. border:1px solid #000;
  42. text-align:center;
  43. font-family:times new roman;
  44. font-size:14px;
  45. }
  46. </style>
  47. </center>`);
  48.  
  49.  
  50. setInterval(function(){
  51. $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').attr('onclick' , 'applySettings();/*setTimeout(function(){$("#C").click();},1000);*/');
  52. $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').click();
  53. $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').remove();
  54. $('#plunder_list tr').not('tr:eq(0)').each(function(){
  55. if($(this).html().match(/1.png/))
  56. {
  57. $(this).find('td').css({'font-weight':'bold','background':'black','color':'white','text-align':'center'});
  58. $(this).find('td:nth-child(4)').attr('style','color:white;background:black;font-weight:bold;text-align:center;');
  59. $(this).find('td:nth-child(4)').text('لم يتم نهب الموارد بشكل كامل');
  60. }
  61.  
  62. if($(this).html().match(/green.png/)){
  63. $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#a0a','border':'1px solid black'});
  64. }
  65.  
  66. if($(this).html().match(/blue.png/)){
  67. $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#00A','border':'1px solid #000'});
  68. }
  69.  
  70. if($(this).html().match(/yellow.png/)){
  71. $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#fa0','border':'1px solid #000'});
  72. }
  73. if($(this).html().match(/red.png/)){
  74. $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#a00','border':'1px solid #000'});
  75. }
  76. if($(this).find('td:nth-child(7)').text().match(/[?]/g)){
  77. $(this).find('td:nth-child(4)').text('عدد الموارد مجهول');
  78. $(this).find('td').not('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#f95','border':'1px double #000','color':'#000','font-weight':'bold','text-align':'center'});
  79. }
  80. });
  81.  
  82. },1000);
  83. var TimeOut , Interval;
  84. document.onkeydown = OnClickKeyBoard;
  85. function OnClickKeyBoard(ScrollEscanorE , OFF){
  86. ScrollEscanorE = ScrollEscanorE || window.event;
  87. if(ScrollEscanorE.keyCode == '81'){
  88. Interval = setInterval(function(){
  89. $('#plunder_list tr:eq(2) .farm_icon_a').click();
  90. $('#plunder_list tr:eq(2)').remove();
  91. },400);
  92. TimeOut = setTimeout(function(){
  93. $('#village_switch_right > span').click();
  94. },5000);}
  95. else if(ScrollEscanorE.keyCode == '87'){
  96. Interval = setInterval(function(){
  97. $('#plunder_list tr:eq(2) .farm_icon_b').click();
  98. $('#plunder_list tr:eq(2)').remove();
  99. },400);
  100. TimeOut = setTimeout(function(){
  101. $('#village_switch_right > span').click();
  102. },5000);}
  103. else if(ScrollEscanorE.keyCode == '69'){
  104. Interval = setInterval(function(){
  105. $('#plunder_list tr:eq(2) .farm_icon_c').click();
  106. $('#plunder_list tr:eq(2)').remove();
  107. },400);
  108. TimeOut = setTimeout(function(){
  109. $('#village_switch_right > span').click();
  110. },5000);}
  111. OFF = OFF || window.event;
  112. if(OFF.keyCode == '88'){
  113. alert('قمت الان بإيقاف البوت ... لإعادة تشغيل البوت قم بالضغط على احدى الازرار المتاحه');
  114. clearTimeout(TimeOut);
  115. clearInterval(Interval);
  116. }
  117. }
  118.  
  119. $('#StopLooting').click(function(){
  120. alert('قمت الان بإيقاف البوت ... لإعادة تشغيل البوت قم بالضغط على احدى الازرار المتاحه');
  121. clearTimeout(TimeOut);
  122. clearInterval(Interval);
  123. });
  124.  
  125. $('#A').click(function(){
  126. setInterval(function(){
  127. $('#plunder_list tr:eq(2) .farm_icon_a').click();
  128. $('#plunder_list tr:eq(2)').remove();
  129. },400);
  130. setTimeout(function(){
  131. $('#village_switch_right > span').click();
  132. },5000);
  133. });
  134. $('#B').click(function(){
  135. setInterval(function(){
  136. $('#plunder_list tr:eq(2) .farm_icon_b').click();
  137. $('#plunder_list tr:eq(2)').remove();
  138. },400);
  139. setTimeout(function(){
  140. $('#village_switch_right > span').click();
  141. },5000);
  142. });
  143. $('#C').click(function(){
  144. setInterval(function(){
  145. $('#plunder_list tr:eq(2) .farm_icon_c').click();
  146. $('#plunder_list tr:eq(2)').remove();
  147. },400);
  148. setTimeout(function(){
  149. $('#village_switch_right > span').click();
  150. },5000);
  151. });
  152.  
  153. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement