-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] cat << 'EOF' > bot.js const mineflayer = require('mineflayer'); const accounts = [ { username: 'alekce123', password: 'parol123', isMain: true, bcDelay: 15000 }, { username: 'popsek009', password: 'parol123', isMain: false, bcDelay: 20000 } ]; const sleep = (ms) => new Promise((res) => setTimeout(res, ms)); function formatBalance(num) { if (!num) return '0'; if (isNaN(num)) return '0'; if (num >= 1000000000) { return (num / 1000000000).toFixed(2).replace(/\.00$/, '') + 'kkk'; } if (num >= 1000000) { return (num / 1000000).toFixed(1).replace(/\.0$/, '') + 'kk'; } if (num >= 1000) { return (num / 1000).toFixed(1).replace(/\.0$/, '') + 'k'; } return String(Math.floor(num)); } function createBot(acc) { const bot = mineflayer.createBot({ host: 'mc.hypemc.pro', port: 25565, username: acc.username, version: '1.21.11' }); let isLoggedIn = false; let isSelling = false; let ahFull = false; let currentBalance = 0; let intervals = []; function updateBalanceFromScoreboard() { try { if (!bot.scoreboards) return; for (const sb of Object.values(bot.scoreboards)) { if (!sb) continue; if (!sb.itemsMap) continue; for (const item of Object.values(sb.itemsMap)) { const text = JSON.stringify(item).replace(/§[0-9a-fk-or]/gi, ''); const low = text.toLowerCase(); if (low.includes('баланс') ? true : text.includes('$')) { const digits = text.replace(/[^0-9]/g, ''); if (digits.length > 0) { currentBalance = parseInt(digits, 10); } } } } } catch (e) {} } async function joinGammaViaCompass() { console.log('[' + acc.username + '] Открываю меню выбора режима (компас)...'); bot.setQuickBarSlot(0); await sleep(500); bot.activateItem(); const timeout = setTimeout(() => { bot.removeListener('windowOpen', onMenuOpen); console.log('[' + acc.username + '] Меню не открылось, пробую /gamma...'); bot.chat('/gamma'); }, 4000); async function onMenuOpen(window) { clearTimeout(timeout); await sleep(800); // Ищем строго по слову "гамма" или "gamma" (без проверки на алмазную кирку!) let gammaSlot = window.slots.findIndex((item) => { if (!item) return false; const raw = JSON.stringify(item).toLowerCase(); if (raw.includes('гамма')) return true; if (raw.includes('gamma')) return true; return false; }); if (gammaSlot === -1) { // На вашем видео: 11 = Альфа, 12 = Гамма (или 13, если есть пустой отступ) gammaSlot = 12; } console.log('[' + acc.username + '] Нажимаю на слот Гаммы: ' + gammaSlot); await bot.clickWindow(gammaSlot, 0, 0); } bot.once('windowOpen', onMenuOpen); } async function ensureShulkerInHand() { bot.setQuickBarSlot(0); let held = bot.inventory.slots; if (held) { if (held.name) { if (held.name.includes('shulker_box')) return true; } } const invShulker = bot.inventory.items().find((item) => { if (!item.name) return false; return item.name.includes('shulker_box'); }); if (invShulker) { await bot.moveSlotItem(invShulker.slot, 36); await sleep(500); return true; } console.log('[' + acc.username + '] Открываю /ec для пополнения шалкеров...'); bot.chat('/ec'); return new Promise((resolve) => { const timeout = setTimeout(() => { bot.removeListener('windowOpen', onWindow); resolve(false); }, 4000); async function onWindow(window) { clearTimeout(timeout); await sleep(600); const ecShulker = window.slots.find((item, idx) => { if (!item) return false; if (idx >= window.inventoryStart) return false; if (!item.name) return false; return item.name.includes('shulker_box'); }); if (ecShulker) { console.log('[' + acc.username + '] Забираю шалкер из /ec...'); const targetSlot = window.inventoryStart + 27; await bot.moveSlotItem(ecShulker.slot, targetSlot); await sleep(500); bot.closeWindow(window); bot.setQuickBarSlot(0); resolve(true); } else { console.log('[' + acc.username + '] В эндер-сундуке больше нет шалкеров.'); bot.closeWindow(window); resolve(false); } } bot.once('windowOpen', onWindow); }); } async function sellLoop() { if (!acc.isMain) return; if (isSelling) return; if (ahFull) return; isSelling = true; while (!ahFull) { const hasShulker = await ensureShulkerInHand(); if (!hasShulker) break; console.log('[' + acc.username + '] Выставляю шалкер: /ah sell 2000000'); bot.chat('/ah sell 2000000'); await sleep(3000); } isSelling = false; } async function sendBroadcast() { if (acc.isMain) { bot.chat('/bc &#f3e309т&#e9e410о&#dee417п&#d4e51eк&#c9e626и &#bfe62d/&#b5e734ᴀ&#aae73bʜ &#a0e842ᴘ_e949ʟbe950ᴀQea58ʏLeb5fᴇceb66ʀ =ec6dᴀ9ed74ʟced7bᴇ*ee82ᴋ&ee89ᴄdef91ᴇf0981f09f2�ef1a63'); } else { updateBalanceFromScoreboard(); if (currentBalance === 0) { bot.chat('/bal'); await sleep(1500); } const formatted = formatBalance(currentBalance); bot.chat('/bc &a&lкоплю на донат. киньте денег. пж (' + formatted + '/1.2kkk)'); } } bot.on('spawn', () => { console.log('[' + acc.username + '] Спавн:', bot.entity.position); if (!isLoggedIn) { setTimeout(() => { console.log('[' + acc.username + '] Ввожу пароль...'); bot.chat('/login ' + acc.password); }, 3000); setTimeout(() => { isLoggedIn = true; joinGammaViaCompass(); }, 6500); } else { console.log('[' + acc.username + '] Успешно зашел на Гамму! Запускаю фарм и рекламу.'); setTimeout(() => { sendBroadcast(); intervals.push(setInterval(() => { sendBroadcast(); }, 60 * 1000)); }, acc.bcDelay); if (acc.isMain) { setTimeout(() => { ahFull = false; sellLoop(); }, 10000); } } }); bot.on('messagestr', (msg) => { console.log('[' + acc.username + ' | Чат]: ' + msg); const lower = msg.toLowerCase(); if (lower.includes('/login') ? true : lower.includes('авторизуйтесь')) { bot.chat('/login ' + acc.password); } if (!acc.isMain) { if (lower.includes('баланс:') ? true : lower.includes('balance:')) { const match = msg.match(/[\d,.]+/); if (match) { const cleanNum = parseFloat(match.replace(/,/g, '')); if (!isNaN(cleanNum)) currentBalance = cleanNum; } } } if (acc.isMain) { if (lower.includes('не можете выставить больше')) { console.log('[' + acc.username + '] Аукцион заполнен! Жду покупки...'); ahFull = true; } if (lower.includes('у вас купили предмет')) { console.log('[' + acc.username + '] Предмет куплен! Возобновляю выставление...'); ahFull = false; setTimeout(() => sellLoop(), 2000); } } }); bot.on('end', () => { console.log('[' + acc.username + '] Отключен. Перезаход через 20 сек...'); isLoggedIn = false; isSelling = false; ahFull = false; intervals.forEach(clearInterval); intervals = []; setTimeout(() => createBot(acc), 20000); }); bot.on('error', (err) => console.log('[' + acc.username + ' | Ошибка]:', err)); } accounts.forEach((acc, index) => { setTimeout(() => createBot(acc), index * 15000); }); EOF