This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Delta2Force's profile picture

MFP - Multi Function Program

Started by Delta2Force, 25 October 2014 - 04:30 PM
Delta2Force #1
Posted 25 October 2014 - 06:30 PM
With this Program (or util) you get a Colorful (black gray and White) GUI
where you can Select useful things.
Also an ANTIVIRUS is included, it just deletes the Startup file, but its useful!
PLEASE BE CAREFUL WITH THE ANTIVIRUS!!
If you installed an OS and Delete the Startup file,
well you're Fu**ed.
PLEASE BE CAREFUL!
——————————
DOWNLOAD
——————————
Enter :

pastebin get nq6r0U7C MFP
And then just Type :

MFP
——————————
SCREENSHOTS
——————————
[attachment=1922:EnterCommand.PNG]
Edited on 15 June 2015 - 02:10 PM
Dragon53535 #2
Posted 25 October 2014 - 06:51 PM
Little tip for you, you can just turn everything they type into lowercase and then test against that.


local str = "HeLCOUA"
if string.lower(str) == "helcoua" then --#String.lower turns it into the same, so this would work here. thus Case Insensitive!
  print("Correct!")
else
  print("Incorrect!")
end
Edited on 25 October 2014 - 04:51 PM
Delta2Force #3
Posted 25 October 2014 - 07:12 PM
Little tip for you, you can just turn everything they type into lowercase and then test against that.


local str = "HeLCOUA"
if string.lower(str) == "helcoua" then --#String.lower turns it into the same, so this would work here. thus Case Insensitive!
  print("Correct!")
else
  print("Incorrect!")
end

Thanks for the Tip, Dragon53535!
Dragon53535 #4
Posted 25 October 2014 - 07:43 PM
Another tip, from looking at your code.

shell.run("clear")

--#Can be

term.clear()
term.setCursorPos(1,1)
Or you could put it in a function

local function clear()
  term.clear()
  term.setCursorPos(1,1)
end

And
shell.run("shutdown")

--#Can be
os.shutdown()

Same for reboot, os.reboot()
Edited on 25 October 2014 - 05:44 PM
Saldor010 #5
Posted 25 October 2014 - 09:32 PM
The antivirus.. just deletes startup…?

… Seriously?

:mellow:/>
Delta2Force #6
Posted 30 October 2014 - 04:37 PM
The antivirus.. just deletes startup…?

… Seriously?

:mellow:/>

The most Computercraft Virusses just lays a STARTUP file that automatically SHUTS DOWN your PC.

Another tip, from looking at your code.

shell.run("clear")

--#Can be

term.clear()
term.setCursorPos(1,1)
Or you could put it in a function

local function clear()
  term.clear()
  term.setCursorPos(1,1)
end

And
shell.run("shutdown")

--#Can be
os.shutdown()

Same for reboot, os.reboot()

I Already knowed that, but i always use "Shell.run" because im not a Pro in coding, so i am still Starter.
Saldor010 #7
Posted 30 October 2014 - 04:38 PM
The antivirus.. just deletes startup…?

… Seriously?

:mellow:/>

The most Computercraft Virusses just lays a STARTUP file that automatically SHUTS DOWN your PC.

… But if the startup file ISN'T a virus, then you just ruined someone's system… :mellow:/>
KingofGamesYami #8
Posted 30 October 2014 - 04:42 PM
-snip-
The most Computercraft Virusses just lays a STARTUP file that automatically SHUTS DOWN your PC.

-snip-
I Already knowed that, but i always use "Shell.run" because im not a Pro in coding, so i am still Starter.

Yes, I suppose that's true, however if an OS is installed it will also delete the OS. Or any legitimate programs names startup.

So, you now something, but you refuse to apply it because you consider yourself a lesser person? That's not a good way to advance in coding… if you know something, apply it! This is the only way to get better!
LDDestroier #9
Posted 30 October 2014 - 05:15 PM
Can't someone just put a disk drive next to the computer and boot the virus off of that?

Like, it could be hidden below the computer.
Edited on 30 October 2014 - 04:15 PM