antonio_pedro

[Habbo] Bot Habblet (nicks)

Feb 8th, 2026 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 6.43 KB | Source Code | 0 0
  1. // --- BOT By Antonio (Versão com STOP) ---
  2.  
  3. // Remove versão anterior para atualizar
  4. $('#bot-verificador').remove();
  5.  
  6. var forceStop = false;
  7.  
  8. // Style
  9. var htmlBot = `
  10. <div id="bot-verificador" style="position: fixed; top: 10px; right: 10px; width: 320px; background: rgba(15, 15, 15, 0.98); backdrop-filter: blur(10px); color: white; border: 1px solid #00c3ff; padding: 15px; z-index: 99999; font-family: 'Segoe UI', sans-serif; border-radius: 12px; box-shadow: 0 0 25px rgba(0, 195, 255, 0.15);">
  11.    
  12.     <div style="text-align: center; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px;">
  13.         <h3 style="margin: 0; color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;">🕵️ Habblet Checker</h3>
  14.         <div style="font-size: 10px; font-weight: bold; margin-top: 5px; letter-spacing: 2px; background: linear-gradient(90deg, #00c3ff, #ff00de); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
  15.             BY ANTONIO (BR)
  16.         </div>
  17.     </div>
  18.  
  19.     <label style="font-size: 11px; color: #888; display: block; margin-bottom: 5px;">Lista de Nicks:</label>
  20.     <textarea id="listaNicks" style="width: 100%; height: 100px; background: #080808; color: #00ff9d; border: 1px solid #333; padding: 8px; box-sizing: border-box; border-radius: 6px; font-family: monospace; resize: vertical; outline: none; font-size: 11px;"></textarea>
  21.    
  22.     <div style="display: flex; gap: 10px; margin-top: 10px; align-items: center;">
  23.         <div style="flex: 1;">
  24.             <label style="font-size: 11px; color: #888;">Delay (s):</label>
  25.             <input id="inputDelay" type="number" value="5" min="1" step="0.5" style="width: 100%; background: #080808; color: white; border: 1px solid #333; padding: 8px; border-radius: 6px; box-sizing: border-box; text-align: center; font-weight: bold;">
  26.         </div>
  27.         <div style="flex: 2; position: relative;">
  28.             <button id="btnVerificar" style="width: 100%; height: 100%; margin-top: 13px; padding: 8px; background: linear-gradient(45deg, #006eff, #00c3ff); color: white; font-weight: bold; border: none; cursor: pointer; border-radius: 6px; text-transform: uppercase; font-size: 12px; box-shadow: 0 4px 15px rgba(0, 195, 255, 0.3);">
  29.                 ▶ Iniciar
  30.             </button>
  31.            
  32.             <button id="btnParar" style="display: none; width: 100%; height: 100%; margin-top: 13px; padding: 8px; background: linear-gradient(45deg, #ff0000, #ff4d4d); color: white; font-weight: bold; border: none; cursor: pointer; border-radius: 6px; text-transform: uppercase; font-size: 12px; box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);">
  33.                 ⏹ Parar Busca
  34.             </button>
  35.         </div>
  36.     </div>
  37.  
  38.     <div id="resultadoBot" style="margin-top: 15px; height: 180px; overflow-y: auto; font-size: 11px; background: #050505; border: 1px solid #333; border-radius: 6px; padding: 10px; font-family: monospace; scrollbar-width: thin;">
  39.         <div style="color: #444; text-align: center; margin-top: 70px;">Pronto para iniciar...</div>
  40.     </div>
  41.  
  42.     <button onclick="$('#bot-verificador').remove()" style="position: absolute; top: 5px; right: 10px; background: none; border: none; color: #555; cursor: pointer; font-size: 16px;">&times;</button>
  43. </div>
  44. `;
  45.  
  46. // Injeta o HTML
  47. $('body').append(htmlBot);
  48.  
  49. // config Botão PARAR ---
  50. $('#btnParar').click(function() {
  51.     forceStop = true;
  52.     $(this).text("Parando..."); // Feedback visual rápido
  53. });
  54.  
  55. // config botão INICIAR
  56. $('#btnVerificar').click(async function() {
  57.     var nicks = $('#listaNicks').val().split('\n');
  58.     var resultadoDiv = $('#resultadoBot');
  59.     var btnStart = $(this);
  60.     var btnStop = $('#btnParar');
  61.    
  62.     // Configurações Iniciais
  63.     forceStop = false;
  64.     var delayInput = parseFloat($('#inputDelay').val()) || 5; // Padrão 5s
  65.     var delayMs = delayInput * 1000;
  66.  
  67.     // Troca os botões (se iniciado ou parado etc)
  68.     btnStart.hide();
  69.     btnStop.show().text("⏹ Parar Busca");
  70.    
  71.     resultadoDiv.html('<div style="color: #00c3ff; border-bottom: 1px dashed #333; padding-bottom: 5px; margin-bottom: 10px;">🚀 INICIANDO CHECKER...<br>Delay: '+ delayInput +'s</div>');
  72.  
  73.     for (var i = 0; i < nicks.length; i++) {
  74.        
  75.         // CHECK DE PARADA
  76.         if (forceStop) {
  77.             resultadoDiv.prepend('<div style="color: #ff5555; background: rgba(255,0,0,0.1); padding: 5px; text-align: center; border-radius: 4px; margin-bottom: 10px; border: 1px solid #ff5555;">⛔ PARADO PELO USUÁRIO</div>');
  78.             break; // Quebra o loop
  79.         }
  80.  
  81.         var nick = nicks[i].trim();
  82.        
  83.         if (nick.length > 0) {
  84.             try {
  85.                 resultadoDiv.scrollTop(0); // Auto-scroll
  86.  
  87.                 await new Promise((resolve) => {
  88.                     $.post("/api/player", {username: nick})
  89.                     .done(function(data) {
  90.                         if (data === "0") {
  91.                             // Nick Livre
  92.                             resultadoDiv.prepend(`<div style="color: #00ff00; margin-bottom: 4px; border-left: 3px solid #00ff00; padding-left: 8px; background: rgba(0,255,0,0.05); padding-top:2px; padding-bottom:2px;">✔ <b>${nick}</b> [LIVRE]</div>`);
  93.                         } else {
  94.                             // Nick Usado
  95.                             resultadoDiv.prepend(`<div style="color: #ff3333; margin-bottom: 4px; border-left: 3px solid #ff3333; padding-left: 8px; opacity: 0.7;">✖ ${nick} [EM USO]</div>`);
  96.                         }
  97.                         resolve();
  98.                     })
  99.                     .fail(function() {
  100.                         resultadoDiv.prepend(`<div style="color: yellow; margin-bottom: 4px;">⚠ Falha ao checar: ${nick}</div>`);
  101.                         resolve();
  102.                     });
  103.                 });
  104.             } catch (e) {
  105.                 console.log(e);
  106.             }
  107.            
  108.             // Pausa entre requisições (se não for o último e não tiver parado)
  109.             if (i < nicks.length - 1 && !forceStop) {
  110.                 await new Promise(r => setTimeout(r, delayMs));
  111.             }
  112.         }
  113.     }
  114.    
  115.     if (!forceStop) {
  116.         resultadoDiv.prepend('<div style="color: #fff; background: #00c3ff; padding: 5px; text-align: center; border-radius: 4px; margin-bottom: 10px;">🏁 CONCLUÍDO!</div>');
  117.     }
  118.  
  119.     // Reseta os botões ao final (ou após parar)
  120.     btnStop.hide();
  121.     btnStart.show();
  122. });
Advertisement
Add Comment
Please, Sign In to add comment