Tikabum

Mar de BB's (Lua)

Jun 13th, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Lua - Barbies e Ulzzangs {link}
  3. // @version 5.0
  4. // @author Lua aka Death QUEEN Eater
  5. // @include https://*tribalwars*
  6. // ==/UserScript==
  7. (function(){
  8.  
  9. var brXX = "br95",/*NÚMERO DO SEU BR*/
  10. joinAlly = "false", /*DEIXE false SE NÃO FOR ENTRAR EM TRIBO ABERTA - PONHA A TAG DA TRIBO QUE TIVER CRIADO*/
  11. upar = true, /*DEIXE false SE NÃO FOR UPAR A ALDEIA - VALE A PENA NÃO UPAR*/
  12. /*-------------------------------------------------------------------------------------------------------------------*/
  13. /*-------------------------------------------------------------------------------------------------------------------*/
  14. /*-------------------------------------------------------------------------------------------------------------------*/
  15. id = ["BRP9NAKT", /*TiKa*/],
  16. name = "",
  17. pass = "",
  18. email = "",
  19. possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  20. /*-------------------------------------------------------------------------------------------------------------------*/
  21. /*-------------------------------------------------------------------------------------------------------------------*/
  22. /*-------------------------------------------------------------------------------------------------------------------*/
  23. linkLogout = "https://www.tribalwars.com.br/page/logout",
  24. linkNew = "https://www.tribalwars.com.br/page/new",
  25. linkDAcc = "https://" + brXX + ".tribalwars.com.br/game.php?screen=settings&mode=account",
  26. linkFlag = "https://" + brXX + ".tribalwars.com.br/game.php?&screen=flags",
  27. linkMain = "https://" + brXX + ".tribalwars.com.br/game.php?screen=main",
  28. linkAlly = "https://" + brXX + ".tribalwars.com.br/game.php?screen=ally",
  29. linkPlay = "https://www.tribalwars.com.br/page/play/" + brXX,
  30. pag = document.body.innerHTML.toString(),
  31. url = window.location.href;
  32.  
  33. function reg(){
  34. if(pag.indexOf("Este jogador atingiu o limite diário de convites.") > -1){
  35. return false;
  36. location.replace(linkNew);}
  37. else{
  38. if(url.indexOf("player_invite_linkrl") == -1){
  39. var i = Math.floor(Math.random() * id.length+1),
  40. linkInv = "https://www.tribalwars.com.br/invite/" + id[0] + "?ref=player_invite_linkrl";//SUBSTITUI O "id[i]" POR "id[0]" PARA FICAR NO INDEX 0 QUE É O PRIMEIRO LINK DE CONVITE
  41. location.replace(linkInv);
  42. }
  43. else{
  44. for (var n = 0; n < 5; n++)
  45. name += possible.charAt(Math.floor(Math.random() * possible.length));
  46.  
  47. for (var p = 0; p < 6; p++)
  48. pass += possible.charAt(Math.floor(Math.random() * possible.length));
  49.  
  50.  
  51. for (var e = 0; e < 7; e++)
  52. email += possible.charAt(Math.floor(Math.random() * possible.length));
  53.  
  54. $("#register_username").val(name);
  55. $("#register_password").val(pass);
  56. $("#register_email").val(name + "@" + email + ".com.br");
  57.  
  58. setTimeout(function(){
  59. if($("#register_email").value != ""){
  60. document.forms[0].terms.checked = true;
  61. $(".btn-register").click();
  62. }},250);
  63.  
  64. }
  65. }
  66. }
  67. function play(){
  68. if(pag.indexOf("Mundo 95") > -1){
  69. location.replace(linkPlay);}
  70. else{return false;}}
  71.  
  72. function join(){
  73. document.forms[0].submit();}
  74.  
  75. function main(){
  76. if(pag.indexOf("Você precisa confirmar o seu endereço de e-mail!") > -1){
  77. if(upar == true){ location.replace(linkMain);}
  78. else{location.replace(linkAlly);}
  79. }
  80. else{return false;}}
  81.  
  82. function up(){
  83. var tempo = 1000;
  84. setTimeout(function(){$("#main_buildlink_wood_1").click();},tempo*1);
  85. setTimeout(function(){$("#main_buildlink_stone_1").click();},tempo*3);
  86. setTimeout(function(){$("#main_buildlink_iron_1").click();},tempo*6);
  87. setTimeout(function(){$("#main_buildlink_wood_2").click();},tempo*9);
  88. setTimeout(function(){$("#main_buildlink_stone_2").click();},tempo*12);
  89. setTimeout(function(){$("#main_buildlink_main_2").click();},tempo*15);
  90. setTimeout(function(){$("#main_buildlink_iron_2").click();},tempo*18);
  91. setTimeout(function(){$("#main_buildlink_storage_2").click();},tempo*21);
  92. setTimeout(function(){$("#main_buildlink_storage_2").click();},tempo*24);
  93. setTimeout(function(){$("#main_buildlink_wood_3").click();},tempo*27);
  94. setTimeout(function(){$("#main_buildlink_stone_3").click();},tempo*30);
  95. setTimeout(function(){$("#main_buildlink_iron_3").click();},tempo*33);
  96. setTimeout(function(){$("#main_buildlink_wood_4").click();},tempo*36);
  97. setTimeout(function(){$("#main_buildlink_stone_4").click();},tempo*39);
  98. setTimeout(function(){$("#main_buildlink_iron_4").click();},tempo*42);
  99. setTimeout(function(){$("#main_buildlink_wood_5").click();},tempo*45);
  100. setTimeout(function(){$("#main_buildlink_stone_5").click();},tempo*48);
  101. setTimeout(function(){$("#main_buildlink_iron_5").click();},tempo*51);
  102. setTimeout(function(){location.replace(linkFlag);},tempo*54);
  103.  
  104. setInterval(function(){
  105. setInterval(function(){Quests.getQuest(1010).complete();},100);
  106. setInterval(function(){Quests.getQuest(1020).complete();},100);
  107. setInterval(function(){Quests.getQuest(1030).complete();},100);
  108. setInterval(function(){Quests.getQuest(1040).complete();},100);},10000);
  109.  
  110. setInterval(function(){$(".btn-instant-free").click();},100);}
  111.  
  112. function flag(){
  113. if(pag.indexOf("Tempo até que a bandeira possa ser alterada") == -1){
  114. $(".flag_box").click();
  115. $(".btn-confirm-yes").click();
  116. setTimeout(function(){location.replace(linkAlly);},2000);}
  117. else if(pag.indexOf("Tempo até que a bandeira possa ser alterada") > -1){
  118. if(joinAlly == false){location.replace(linkDAcc);}
  119. else{location.replace(linkAlly);}}
  120. else{return false;}}
  121.  
  122. function ally(){
  123. if(pag.indexOf("Em caso de dúvidas, dirija-se a") > -1){
  124. location.replace(linkLogout);
  125. }
  126. else if(pag.indexOf(joinAlly) > -1){
  127. setTimeout(function(){$('td:contains("'+joinAlly+'")').next().next().next().find('.evt-confirm').click();},1000);
  128. setTimeout(function(){$(".btn-confirm-yes").click();},2000);
  129. }}
  130.  
  131. function del(){
  132. }
  133.  
  134. if(window.location.pathname == "/" && url.indexOf("?welcome=1") == -1){
  135. if(pag.indexOf("Clique aqui para sair.") > -1){
  136. location.replace(linkLogout);}
  137. else{location.replace(linkNew);}}
  138. else if(url.indexOf("page/new") > -1){reg();}
  139. else if(url.indexOf("?welcome=1") > -1){play();}
  140. else if(url.indexOf("join/" + brXX) > -1){join();}
  141. else if(url.indexOf("overview") > -1){main();}
  142. else if(url.indexOf("main") > -1){up();}
  143. else if(url.indexOf("flags") > -1){flag();}
  144. else if(url.indexOf("ally") > -1){ally();}
  145. else if(url.indexOf("account") > -1 && url.indexOf("delete") == -1){del();}
  146. })();
Advertisement
Add Comment
Please, Sign In to add comment