Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name BoT C With FilterLooting
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Special for HimmerlkoZ
- // @match https://*.tribalwars.ae/game.php?*&screen=am_farm*
- // ==/UserScript==
- (function($) {
- javascript:
- $.getScript('https://www.tribalwars.top/tribalwars/laEnhancer/laEnhancerFix.js');
- void(0);
- $('#am_widget_Farm').before(`<center>
- <table id='table'>
- <tr><th id = 'th' colspan = '8'>
- معلومات عن استخدام البوت
- </th></tr>
- <tr><th id = 'th' colspan = '8'>
- هذه الازرار للتوضيح قم بالضغط عليها من الكيبورد
- </th></tr>
- <tr>
- <th id = 'th' colspan = '2'><b>نهب اوتماتيكي A</b></th>
- <th id = 'th' colspan = '2'><b>نهب اوتماتيكي B</b></th>
- <th id = 'th' colspan = '2'><b>نهب اوتماتيكي C</b></th>
- <th id = 'th' colspan = '2'><b>إيقاف النهب الاوتماتيكي</b></th>
- </tr>
- <tr>
- <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'A' value='Q' title = 'للنهب الاوتماتيكي بقالب a' /></td>
- <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'B' value='W' title = 'للنهب الاوتماتيكي بقالب b' /></td>
- <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'C' value='E' title = 'للنهب الاوتماتيكي بقالب c' /></td>
- <td id = 'td' colspan = '2'><input type='button' class = 'btn' id = 'StopLooting' value='X' title = 'لإيقاف النهب' /></td>
- </tr>
- </table>
- <style>
- #table , #td , #th{
- border:1px solid #000;
- text-align:center;
- font-family:times new roman;
- font-size:14px;
- }
- </style>
- </center>`);
- setInterval(function(){
- $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').attr('onclick' , 'applySettings();/*setTimeout(function(){$("#C").click();},1000);*/');
- $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').click();
- $('#settingsBody > tr:nth-child(15) > td > div:nth-child(1) > input[value="تطبيق"]:nth-child(1)').remove();
- $('#plunder_list tr').not('tr:eq(0)').each(function(){
- if($(this).html().match(/1.png/))
- {
- $(this).find('td').css({'font-weight':'bold','background':'black','color':'white','text-align':'center'});
- $(this).find('td:nth-child(4)').attr('style','color:white;background:black;font-weight:bold;text-align:center;');
- $(this).find('td:nth-child(4)').text('لم يتم نهب الموارد بشكل كامل');
- }
- if($(this).html().match(/green.png/)){
- $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#a0a','border':'1px solid black'});
- }
- if($(this).html().match(/blue.png/)){
- $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#00A','border':'1px solid #000'});
- }
- if($(this).html().match(/yellow.png/)){
- $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#fa0','border':'1px solid #000'});
- }
- if($(this).html().match(/red.png/)){
- $(this).find('td:eq(9) , td:eq(10) , td:eq(11)').css({'background':'#a00','border':'1px solid #000'});
- }
- if($(this).find('td:nth-child(7)').text().match(/[?]/g)){
- $(this).find('td:nth-child(4)').text('عدد الموارد مجهول');
- $(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'});
- }
- });
- },1000);
- var TimeOut , Interval;
- document.onkeydown = OnClickKeyBoard;
- function OnClickKeyBoard(ScrollEscanorE , OFF){
- ScrollEscanorE = ScrollEscanorE || window.event;
- if(ScrollEscanorE.keyCode == '81'){
- Interval = setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_a').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- TimeOut = setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);}
- else if(ScrollEscanorE.keyCode == '87'){
- Interval = setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_b').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- TimeOut = setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);}
- else if(ScrollEscanorE.keyCode == '69'){
- Interval = setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_c').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- TimeOut = setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);}
- OFF = OFF || window.event;
- if(OFF.keyCode == '88'){
- alert('قمت الان بإيقاف البوت ... لإعادة تشغيل البوت قم بالضغط على احدى الازرار المتاحه');
- clearTimeout(TimeOut);
- clearInterval(Interval);
- }
- }
- $('#StopLooting').click(function(){
- alert('قمت الان بإيقاف البوت ... لإعادة تشغيل البوت قم بالضغط على احدى الازرار المتاحه');
- clearTimeout(TimeOut);
- clearInterval(Interval);
- });
- $('#A').click(function(){
- setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_a').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);
- });
- $('#B').click(function(){
- setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_b').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);
- });
- $('#C').click(function(){
- setInterval(function(){
- $('#plunder_list tr:eq(2) .farm_icon_c').click();
- $('#plunder_list tr:eq(2)').remove();
- },400);
- setTimeout(function(){
- $('#village_switch_right > span').click();
- },5000);
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement