Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chat = peripheral.find("chatBox") or peripheral.find("chat_box")
- if not chat then
- chat = peripheral.wrap("bottom")
- end
- if not chat then
- print("Erro: Bloco 'Chat Box' nao encontrado!")
- return
- end
- -- Lista VIP usando o padrao "&" para cores, aceito por modpacks
- local players = {
- {name = "Rkzxr OCX", tag = "ASTERISK", c1 = "&d", c2 = "&d"},
- {name = "yGusttaa_", tag = "DRAGON", c1 = "&5", c2 = "&5"},
- {name = "FySad", tag = "DAEMON", c1 = "&9", c2 = "&9"},
- {name = "xprokrei", tag = "", c1 = "&f", c2 = "&f"}
- }
- local p_idx = 1
- local custom_name = nil
- local chan = "l"
- while true do
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("=== Chat Spoofer ===")
- term.setTextColor(colors.white)
- local current_name = custom_name or players[p_idx].name
- print("\n1. Lista VIP: " .. players[p_idx].name)
- print("2. Nome Custom: " .. (custom_name or "(Nenhum)"))
- print("3. Canal: " .. (chan == "l" and "[l] Local" or "[g] Global"))
- print("4. Enviar Mensagem")
- print("5. Falso Reinicio (Contagem)")
- print("6. Sair\n")
- local w, h = term.getSize()
- term.setCursorPos(1, h)
- term.setTextColor(colors.lightBlue)
- term.write("Criado por ")
- term.setTextColor(colors.red)
- term.write("Luke Arwolf")
- term.setTextColor(colors.white)
- term.setCursorPos(1, 10)
- term.write("Opcao: ")
- local op = read()
- if op == "1" then
- custom_name = nil
- p_idx = p_idx + 1
- if p_idx > #players then p_idx = 1 end
- elseif op == "2" then
- term.setCursorPos(1, 12)
- term.write("Digite o nome: ")
- local txt = read()
- if txt ~= "" then
- custom_name = txt
- end
- elseif op == "3" then
- if chan == "l" then chan = "g" else chan = "l" end
- elseif op == "4" then
- term.setCursorPos(1, 12)
- term.write("Mensagem: ")
- local text = read()
- -- Monta a mensagem de texto usando os codigos &
- local msg = ""
- if chan == "l" then
- msg = "&e[l] "
- else
- msg = "&8[g] "
- end
- if not custom_name then
- local p = players[p_idx]
- if p.tag ~= "" then
- msg = msg .. "&8[" .. p.c1 .. "VIP " .. p.c2 .. p.tag .. "&8] "
- end
- end
- msg = msg .. "&f" .. current_name .. ": " .. text
- -- Envia exatamente da forma como estava na sua print
- chat.sendMessage(msg, "", "")
- term.setCursorPos(1, 14)
- term.setTextColor(colors.lime)
- print("Mensagem enviada!")
- term.setTextColor(colors.white)
- os.sleep(1)
- elseif op == "5" then
- term.setCursorPos(1, 12)
- term.setTextColor(colors.orange)
- print("Enviando falso reinicio...")
- local function sendServerFake(texto)
- -- Mensagem do servidor colorida com &
- local fakeMsg = "&f[&cServidor&f] &f" .. texto
- chat.sendMessage(fakeMsg, "", "")
- end
- sendServerFake("Reiniciando...")
- os.sleep(4)
- for i = 10, 0, -1 do
- sendServerFake(tostring(i))
- os.sleep(1)
- end
- term.setCursorPos(1, 14)
- term.setTextColor(colors.lime)
- print("Contagem finalizada!")
- term.setTextColor(colors.white)
- os.sleep(1)
- elseif op == "6" then
- term.clear()
- term.setCursorPos(1,1)
- break
- end
- end
Advertisement