Advertisement
Guest User

رؤر

a guest
Sep 22nd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. // ==UserScript==
  2. // @name التجسس على القرى
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://*.tribalwars.ae/game.php?*&screen=place*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function($) {
  12. var SpyInVillage = $('#units_entry_all_light').text()
  13. var RemoveBrackets = SpyInVillage.replace('(','').replace(')','');
  14. if(location.href.match(/&try=confirm/g)){
  15. setTimeout(function(){
  16. $('#troop_confirm_go').click();
  17. },1000);
  18. }
  19. if(RemoveBrackets < 10)
  20. {
  21. var URL = document.URL; var cut = URL.substring(URL.lastIndexOf('&'));
  22. if(cut == '&screen=place'){
  23. setTimeout(function(){$('#units_entry_all_light').css('color','red');$('#village_switch_right > span').click();},1000);
  24. }
  25. }
  26. else{
  27. var lightTr,spyTr,coords,i,Kons,Koor;
  28. lightTr = 10; //خفيف
  29. spyTr=1; //كشافة
  30. coords=''; //الاحداثيات لازم تكون على شكل سطر
  31. if(location.href.match(/&screen=place/g)){
  32. setTimeout(function(){
  33. $('#target_attack').click();
  34. },1000);
  35.  
  36. }
  37. Kons=coords.split(' ');
  38. i=0;if($.cookie('Konsantre')!=null){i=$.cookie("Konsantre");}if(i>=Kons.length){i=0;UI.InfoMessage('هذه اخر احداثيه ,, انتهى السكربت من جميع القرى الموجوده',3000,'success');}
  39. Koor=Kons[i];Koor=Koor.split('|');i++;document.forms[0].x.value=Koor[0];document.forms[0].y.value=Koor[1];
  40. var date = new Date();date.setTime(date.getTime()+(10*60*1000));$.cookie("Konsantre",i,{expires:date});
  41. var spy = $('#unit_input_spy').next().html();if(spy.match(/\d+/g)>=spyTr){$('#unit_input_spy').val(spyTr);}
  42. var light = $('#unit_input_light').next().html();if(light.match(/\d+/g)>=lightTr){$('#unit_input_light').val(lightTr);}end();
  43. }
  44. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement