CowboySoberano

Enaltecer Aldeias BB

Jun 8th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //----------------------------------------------------------------
  2. //Projeto:      Enaltecer Aldeias Bonus (Script de Terceiros, Modificado e Atualizado Por Minha Pessoa)
  3. //Autor:        Gil Penner (Paçoquita) <gilhrpenner@gmail.com>
  4. //Autor:        Matheus Loureiro (mattew1394) <matheus1394@gmail.com>
  5. //Autor:        Marcos Vinicius Dos Santos Marques (Cowboy Soberano) <marcosvinicius.santosmarques@gmail.com>
  6. //Versão:      1.1 - 15/05/2017 -
  7.  
  8. //Changelog:
  9. //      > 1.0 - Primeira versão
  10. //              > 1.1 - Atualizado
  11. //---------------------------------------------------------------
  12.  
  13. if(game_data.player.premium == false) {
  14.     UI.InfoMessage('Para desfrutar desse script sera necessario uma Conta Premium!', 3000, true);
  15.     end();
  16. };
  17.  
  18. if(game_data.screen != 'map') {
  19.     UI.InfoMessage('Entre no Mapa, Para Visualizar Aldeias Bonus.', 3000, true);
  20.     end();
  21. }
  22.  
  23. setInterval(function(){
  24.  
  25.     $("#map_container div:not('.map_border') img[id^='map_cmdicons']").remove();
  26.     $("#map_container div:not('.map_border') img[id^='map_icons']").remove();
  27.  
  28.     aldeiasEsconder = ['b1.png', 'b2.png', 'b3.png', 'b4.png', 'b5.png', 'b1_left.png', 'b2_left.png', 'b3_left.png', 'b4_left.png', 'b5_left.png'];
  29.    
  30.     $("#map_container div:not('.map_border') img[id^='map_village']").each(function(i, e) {
  31.        
  32.         src = $(e).attr('src');
  33.         remover = true;
  34.        
  35.         aldeiasEsconder.forEach(function(valor) {
  36.            
  37.             if(src.indexOf(valor) > 0) {
  38.                 remover = false;
  39.             }
  40.            
  41.         });
  42.        
  43.         if(remover) {
  44.             $(e).remove();
  45.         }
  46.        
  47.     });
  48. }, 1);
Add Comment
Please, Sign In to add comment