Code:
x = 1
while x == 1 do shell.run("clear")
end
write ("Type Continue")
com = read ()
if com == ("Continue") then
print ("Connectint to login server...")
sleep(5)
write ("Conection found! Connect to RedNetV3.1?")
ans = read ()
if ans == "Yes" then
print ("Connecting...")
sleep(5)
print ("Connected to RedNetV3.1")
end
write ("Enter username")
usr = read ()
if usr == "WirelessDude569" then print ("Username: OK!")
write ("Enter password")
pass = read ()
if pass == "Fishtaco" then
print ("Passworg: OK!")
print ("========WirelessDude569's Main Computer========")
print ("==Commands: ViewStatus==Views machines/pumps===")
print ("============Traps=======Views traps============")
print ("===============================================")
end
end
com2 = read ()
if com2 == ViewTraps then
shell.run("clear")
com3 = read ()
print ("=====Traps=====")
print ("=====TESLA=====")
print ("===="..TC.."======")
print ("===============")
print ("=====LAVA======")
print ("===="..LA.."======")
print ("===============")
print ("Commands")
print ("LAVA ")
print ("TESLA ")
if com3 == "LAVA" then
rs.getBundledInput("back", colors.white )
if true then print ("Deactivating lava trap...")
sleep(5)
print ("Lava trap deactivated.")
rs.setBundledOutput("bottom", colors.orange )
else
print ("Activating lava trap...")
sleep(5)
print ("Lava trap activated.")
rs.setBundledOutput("bottom", colors.white )
TC = rs.getBundledInput("back", colors.white )
if true then TC = "ON="
else print ("OFF")
end
end
elseif com3 == "TESLA" then
rs.getBundledInput("back", colors.orange )
if true then print ("Deactivating tesla coils...")
sleep(5)
print ("Tesla coils deactivated.")
rs.setBundledOutput("bottom", colors.orange )
LA = rs.getBundledInput("back", colors.orange )
if true then TC = "ON="
else TC = "ON="
end
end
end
end
end