PDAOP - A pocket computer management system
Description
PDAOP - A pocket computer managerPDAOP is a mangement system for pocket computers inspired by palm pilots. I am garbage at lua so it is textbased, and the code is hard to edit, but it works.I doubt an...
Installation
Copy one of these commands into your ComputerCraft terminal:
Pastebin:
pastebin get qYRNQ3Rf pdaop_-_a_pocket_computer_management_systemwget:
wget https://pastebin.com/raw/qYRNQ3Rf pdaop_-_a_pocket_computer_management_systemArchive:
wget https://cc.shobie.xyz/cc/get/pb-qYRNQ3Rf pdaop_-_a_pocket_computer_management_system
Quick Install:
wget https://cc.shobie.xyz/cc/get/pb-qYRNQ3Rf PDAOP - A pocket computer management system
Usage
Run the program after downloading
Tags
Source
View Original SourceCode Preview
local version = "1.5.1_1"
if pocket then
print ("PDAOP ", version)
else
print ("Use a pocket computer")
shell.run("shell")
end
shell.setAlias("pda", "startup")
--[[term.clear()
term.setCursorPos(1,1)
--]]
os.pullEvent = os.pullEventRaw
repeat if term.isColor() == true then
term.setTextColor(colors.red)
end
print ("Commands are time, id, clear, gps, lua, shutdown, shell, chat, tetris, worm")
write (":>")
--Storage of everything
local input = read()
local joinId = "id"
local joinClear = "clear"
local joinHelp = "help"
local joinDev = "dev"
local joinGps = "gps"
local joinShutdown = "shutdown"
local joinWorm = "worm"
local joinTetris = "tetris"
local joinChat = "chat"
local joinShell = "shell"
local joinLua = "lua"
local joinTime = "time"
local date = os.day()
local joinDay = "date", "day"
--Actual commands
if term.isColor() == true then
term.setTextColor(colors.green)
end
print ("You entered:", input)
if input == joinDay then
print ("Todays date is the ", date, " day since the server started")
end
if input == joinId then
shell.run("id")
end
if input == joinClear then
print ("Clearing screen")
sleep(1)
term.clear()
term.setCursorPos(1,1)
end
if input == joinTime then
local time = os.time()
print ("The time is ", time)
end
if input == joinDev then
print ("You started the dev program, will be removed in final release")
sleep(2)
shell.run("edit startup")
end
if input == joinShutdown then
print ("Goodbye!")
sleep (3)
os.shutdown()
end
--[[if input == joinHelp then
-- local helpLua = "lua"
local helpShell = "shell"
local helpChat = "chat"
local helpTetris = "tetris"
local helpWorm = "worm"
local helpShutdown = "shutdown"
local helpGps = "gps"
local helpDev = "dev"
write("What do you need help with?")
local helpput = read()
if helpput == helpLua the
print ("Lua is a scripting language that computercraft uses, the script opens the editor")
shell.run("startup")
end
if helpput == helpShell then
print ("Brings you to the main menu of computercraft")
shell.run("startup")
end
if helpput == helpChat then
print ("Runs the chat command allowing you to chose your server & name")
shell.run("startup")
end
if helpput == helpTetris then
print ("Runs a built in game 'Falling'")
shell.run("startup")
end
if helpput == helpWorm then
print ("Runs a built in game 'Worm'")
shell.run("startup")
end
if helpput == helpShutdown then
print ("Shuts down the PDA")
shell.run("startup")
end
if helpput == helpGps then
print ("Finds your position based on co-ordinates")
shell.run("startup")
end
if helpput == helpDev then
print ("Runs the lua editor on this program")
shell.run("startup")
end
end--]]
if input == joinLua then
print ("You joined Lua")
shell.run("lua")
end
if input == joinGps then
local x, y, z = gps.locate()
if not x then
sleep(1)
print ("GPS failed")
sleep(1)
shell.run("startup")
else
sleep(1)
print ("GPS position is (".. x ..","..y..","..z..")")
sleep(1)
shell.run("startup")
end
end
if input == joinWorm then
print ("You joined worm")
shell.run("worm")
end
if input == joinTetris then
print ("You joined tetris")
shell.run("falling")
end
if input == joinChat then
write ("You joined chat, chose your name:")
local chatName = read()
write ("Join the server, default is intercom:")
local svChat = read()
shell.run("chat join ", svChat, chatName)
end
if input == joinshell then
print ("You joined shell")
sleep (1)
shell.run("bg startup")
shell.run("shell")
end
until input == joinShell