rednetspy

Started by Lucasx150, Aug 28, 2020, 07:16 pm

Previous topic - Next topic

Lucasx150

Aug 28, 2020, 07:16 pm Last Edit: Aug 28, 2020, 07:19 pm by Lucasx150

rednetspy

Code: https://pastebin.com/s5wXb5fD
Install:
Code Select
pastebin get s5wXb5fD rednetspy

QuickMuffin8782

Sep 03, 2020, 02:29 pm #1 Last Edit: Sep 03, 2020, 02:32 pm by QuickMuffin8782
That utility is great to do to spy on other rednet messages. However you can as well change colors by doing this code below.
There is a possibility for custom colors on some emulators, but in game is supported.
You can also change it to writeColor(txt, color) and change the print(txt) to write(txt) if you want to have a write sys as well.

Code Select
function printColor(txt, color)
    local oldColor = term.getTextColor()
    if term.isColor()
        term.setTextColor(color)
        print(txt)
        term.setTextColor(oldColor)
    end
end

Here is a example color function. I will later post a color utility api, when I get the chance.

Code Select
printColor("Hello, World!", 0xFF7400) --Everyone didn't know this can be possible until I found out about it. (Except some coders)
With that way of doing colors by hex code (0xRRGGBB) you can also tinker around with it using a colorutils functions I can work on. This can be useful since CCEmuX supports it, IDK if other emulators can support it. But, since Mimic can only support straight up color given variables in the color api, it is not supported for the custom color hex code.
GOTTA GO FAST!!!!
Gitlab - COSC - XenusSoft - Hangout