Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Lua - Barbies e Ulzzangs {link}
- // @version 5.0
- // @author Lua aka Death QUEEN Eater
- // @include https://*tribalwars*
- // ==/UserScript==
- (function(){
- var brXX = "br95",/*NÚMERO DO SEU BR*/
- joinAlly = "false", /*DEIXE false SE NÃO FOR ENTRAR EM TRIBO ABERTA - PONHA A TAG DA TRIBO QUE TIVER CRIADO*/
- upar = true, /*DEIXE false SE NÃO FOR UPAR A ALDEIA - VALE A PENA NÃO UPAR*/
- /*-------------------------------------------------------------------------------------------------------------------*/
- /*-------------------------------------------------------------------------------------------------------------------*/
- /*-------------------------------------------------------------------------------------------------------------------*/
- id = ["BRP9NAKT", /*TiKa*/],
- name = "",
- pass = "",
- email = "",
- possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
- /*-------------------------------------------------------------------------------------------------------------------*/
- /*-------------------------------------------------------------------------------------------------------------------*/
- /*-------------------------------------------------------------------------------------------------------------------*/
- linkLogout = "https://www.tribalwars.com.br/page/logout",
- linkNew = "https://www.tribalwars.com.br/page/new",
- linkDAcc = "https://" + brXX + ".tribalwars.com.br/game.php?screen=settings&mode=account",
- linkFlag = "https://" + brXX + ".tribalwars.com.br/game.php?&screen=flags",
- linkMain = "https://" + brXX + ".tribalwars.com.br/game.php?screen=main",
- linkAlly = "https://" + brXX + ".tribalwars.com.br/game.php?screen=ally",
- linkPlay = "https://www.tribalwars.com.br/page/play/" + brXX,
- pag = document.body.innerHTML.toString(),
- url = window.location.href;
- function reg(){
- if(pag.indexOf("Este jogador atingiu o limite diário de convites.") > -1){
- return false;
- location.replace(linkNew);}
- else{
- if(url.indexOf("player_invite_linkrl") == -1){
- var i = Math.floor(Math.random() * id.length+1),
- 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
- location.replace(linkInv);
- }
- else{
- for (var n = 0; n < 5; n++)
- name += possible.charAt(Math.floor(Math.random() * possible.length));
- for (var p = 0; p < 6; p++)
- pass += possible.charAt(Math.floor(Math.random() * possible.length));
- for (var e = 0; e < 7; e++)
- email += possible.charAt(Math.floor(Math.random() * possible.length));
- $("#register_username").val(name);
- $("#register_password").val(pass);
- $("#register_email").val(name + "@" + email + ".com.br");
- setTimeout(function(){
- if($("#register_email").value != ""){
- document.forms[0].terms.checked = true;
- $(".btn-register").click();
- }},250);
- }
- }
- }
- function play(){
- if(pag.indexOf("Mundo 95") > -1){
- location.replace(linkPlay);}
- else{return false;}}
- function join(){
- document.forms[0].submit();}
- function main(){
- if(pag.indexOf("Você precisa confirmar o seu endereço de e-mail!") > -1){
- if(upar == true){ location.replace(linkMain);}
- else{location.replace(linkAlly);}
- }
- else{return false;}}
- function up(){
- var tempo = 1000;
- setTimeout(function(){$("#main_buildlink_wood_1").click();},tempo*1);
- setTimeout(function(){$("#main_buildlink_stone_1").click();},tempo*3);
- setTimeout(function(){$("#main_buildlink_iron_1").click();},tempo*6);
- setTimeout(function(){$("#main_buildlink_wood_2").click();},tempo*9);
- setTimeout(function(){$("#main_buildlink_stone_2").click();},tempo*12);
- setTimeout(function(){$("#main_buildlink_main_2").click();},tempo*15);
- setTimeout(function(){$("#main_buildlink_iron_2").click();},tempo*18);
- setTimeout(function(){$("#main_buildlink_storage_2").click();},tempo*21);
- setTimeout(function(){$("#main_buildlink_storage_2").click();},tempo*24);
- setTimeout(function(){$("#main_buildlink_wood_3").click();},tempo*27);
- setTimeout(function(){$("#main_buildlink_stone_3").click();},tempo*30);
- setTimeout(function(){$("#main_buildlink_iron_3").click();},tempo*33);
- setTimeout(function(){$("#main_buildlink_wood_4").click();},tempo*36);
- setTimeout(function(){$("#main_buildlink_stone_4").click();},tempo*39);
- setTimeout(function(){$("#main_buildlink_iron_4").click();},tempo*42);
- setTimeout(function(){$("#main_buildlink_wood_5").click();},tempo*45);
- setTimeout(function(){$("#main_buildlink_stone_5").click();},tempo*48);
- setTimeout(function(){$("#main_buildlink_iron_5").click();},tempo*51);
- setTimeout(function(){location.replace(linkFlag);},tempo*54);
- setInterval(function(){
- setInterval(function(){Quests.getQuest(1010).complete();},100);
- setInterval(function(){Quests.getQuest(1020).complete();},100);
- setInterval(function(){Quests.getQuest(1030).complete();},100);
- setInterval(function(){Quests.getQuest(1040).complete();},100);},10000);
- setInterval(function(){$(".btn-instant-free").click();},100);}
- function flag(){
- if(pag.indexOf("Tempo até que a bandeira possa ser alterada") == -1){
- $(".flag_box").click();
- $(".btn-confirm-yes").click();
- setTimeout(function(){location.replace(linkAlly);},2000);}
- else if(pag.indexOf("Tempo até que a bandeira possa ser alterada") > -1){
- if(joinAlly == false){location.replace(linkDAcc);}
- else{location.replace(linkAlly);}}
- else{return false;}}
- function ally(){
- if(pag.indexOf("Em caso de dúvidas, dirija-se a") > -1){
- location.replace(linkLogout);
- }
- else if(pag.indexOf(joinAlly) > -1){
- setTimeout(function(){$('td:contains("'+joinAlly+'")').next().next().next().find('.evt-confirm').click();},1000);
- setTimeout(function(){$(".btn-confirm-yes").click();},2000);
- }}
- function del(){
- }
- if(window.location.pathname == "/" && url.indexOf("?welcome=1") == -1){
- if(pag.indexOf("Clique aqui para sair.") > -1){
- location.replace(linkLogout);}
- else{location.replace(linkNew);}}
- else if(url.indexOf("page/new") > -1){reg();}
- else if(url.indexOf("?welcome=1") > -1){play();}
- else if(url.indexOf("join/" + brXX) > -1){join();}
- else if(url.indexOf("overview") > -1){main();}
- else if(url.indexOf("main") > -1){up();}
- else if(url.indexOf("flags") > -1){flag();}
- else if(url.indexOf("ally") > -1){ally();}
- else if(url.indexOf("account") > -1 && url.indexOf("delete") == -1){del();}
- })();
Advertisement
Add Comment
Please, Sign In to add comment