- ComputerCraft | Programmable Computers for Minecraft
- → Deathknight0897's Content
Deathknight0897's Content
There have been 94 items by Deathknight0897 (Search limited from 10-February 22)
#19647 user friendly menu
Posted by
Deathknight0897
on 15 July 2012 - 10:39 PM
in
APIs and Utilities
#19563 [Lua] Highly Secure Door lock
Posted by
Deathknight0897
on 15 July 2012 - 03:11 PM
in
Programs
awsumben13, on 15 July 2012 - 10:34 AM, said:
oldPullEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
if fs.exists("disk") then
k = fs.open("disk/startup", "w")
k.writeLine("")
k.close()
disk.eject("back")
disk.eject("bottom")
disk.eject("top")
disk.eject("front")
disk.eject("left")
disk.eject("right")
<code>
end
end
os.pullEvent = oldPullEvent
this should erase the disk startup and eject the disk when it is put in...
#18010 Music Player With BuildCraft: Automtically Switch Discs
Posted by
Deathknight0897
on 06 July 2012 - 10:05 AM
in
Programs
#18009 Program for detecting chest deposits
Posted by
Deathknight0897
on 06 July 2012 - 10:02 AM
in
Ask a Pro
#18008 Program for detecting chest deposits
Posted by
Deathknight0897
on 06 July 2012 - 10:00 AM
in
Ask a Pro
i have already created a program very simulur i would also suggest letting you use my start up kit machine that allows a user to pick a start up class ie mage knight archer however that's not finished yet but close to being finished
Quote
#18007 [Tekkit] The Plague Corporation
Posted by
Deathknight0897
on 06 July 2012 - 09:55 AM
in
Media
HERE!
also this will not protect it from a disk drive so you need to look up how to block that or start a topic to get people talking
#18005 GUI File Browser
Posted by
Deathknight0897
on 06 July 2012 - 09:34 AM
in
Programs
#18004 Key press Help Required
Posted by
Deathknight0897
on 06 July 2012 - 09:30 AM
in
Ask a Pro
#17961 Security Camera
Posted by
Deathknight0897
on 05 July 2012 - 10:55 PM
in
Suggestions
OmegaVest, on 05 July 2012 - 09:34 PM, said:
Complicated Use: Control your digger/termite without having to get inside the drill head. . . ever.
Both of these ideas mean you either need the cameras/servers to transmit wirelessly or to have peripheral cables that can line an entire track. However, both of these would be much more useful with a camera than a player detector. And yes, you can make an automated/terminal controlled cannon on frames. It would just be huge, is all.
Also, not everyone wants to use cheaty tools that let you look through someone else's eyes. A lot of us use computercraft to do things because that is an awesome way to do it. Really, if we are going to dive head first into "there's a mod for that" territory, we can already discount computercraft entirely (there's an RP2 for that). Since I'm not, I might as well make suggestions and give good ideas (sort of) for it and its uses. </rant>
Now, an idea that combines the two would be interesting. Simply: If a player or block is directly in front of the camera, then emit a redstone pulse. Or a signal until they are moved/removed. Instant alarm.
#17952 user friendly menu
Posted by
Deathknight0897
on 05 July 2012 - 09:20 PM
in
APIs and Utilities
Boot
Core
Generic
Launch
--[[
This is a blank menu template as is it has 5 options and a exit
options can be added or removed to suite the user.
I would like to thank the users of this board whos know how helped in making this menu
--]]
function cls() -- function to clear the screen and set the cursor position
term.clear()
term.setCursorPos( 1, 1 )
end
function menu2(...) -- Menu function
choice = {...}
keypress = 1
positionX,positionY = 1,1 -- sets the position of the menu on the screen
while true do
if keypress > #choice then -- this while true loop causes the selection to go
keypress = 1 -- from the first to the last selection
end -- the last selection to the first
if keypress < 1 then -- looping it so to speak
keypress = #choice
end
for i = 1 , #choice do -- this for loop moves the selection bracket
term.setCursorPos(positionX , positionY + i - 1) -- with the keypresses [highlighting] the options
if keypress == i then
print("["..choice[i].."]")
else
print(" "..choice[i].." ")
end
end
while true do -- this While true loop deals with the users choices
local event,param1 = os.pullEvent()
if event == "key" then
if param1 == 200 then -- if the up key is pressed
keypress = keypress - 1
break
end
if param1 == 208 then -- if the down key is pressed
keypress = keypress + 1
break
end
if param1 == 28 then -- if the enter key is pressed
if keypress == 1 then -- the next 5 lines are excuted you can call a function or functions
cls() -- cls() is just a function that clears the screen
WTS() -- wts() is just a function that just prints some stuff to the screen
sleep(1) -- i like things to step
shell.run("startup_kit/launch") -- reloads the menublank program
end
if keypress == 2 then -- the next 5 lines are excuted when the
cls() -- enter key is pressed over a menu option 2
print("Selection " , keypress)
c = colors.combine( c, colors.pink)
rs.setBundledOutput("back", c )
sleep(20)
c = colors.subtract( c, colors.pink )
rs.setBundledOutput("back", c )
sleep(5)
shell.run("startup_kit/Generic")
end
if keypress == 3 then -- the next 5 lines are excuted when the
cls() -- enter key is pressed over a menu option 3
print("Selection " , keypress)
sleep(1)
shell.run("startup_kit/generic")
end
if keypress == 4 then -- the next 5 lines are excuted when the
cls() -- enter key is pressed over a menu option 4
print("Selection " , keypress)
sleep(1)
shell.run("startup_kit/generic")
end
if keypress == 5 then -- the next 5 lines are excuted when the
cls() -- enter key is pressed over a menu option 5
print("Selection " , keypress)
sleep(1)
shell.run("menublank")
end
if keypress == 6 then -- the next 3 lines are excuted when the
cls() -- enter key is pressed over a menu option 6
return -- in this case pressing the enter key exits
end -- the menu and returns to the prompt
end
end
end
end
end
cls()
print("Main Menu")
print(menu( "Chose your class?", -- you can add as many options as you like
"Knight", -- and name them what you want
"Archer",
"Mage"))
--Choice 1
--What is your style
--Knight /pink
--Iron Helmet,Iron Chest,Iron legs,Iron Boots
--Iron Sword
--Archer /Magenta/White
--128 arrows/White /only send 64 signals 2 chests
--bow
--leather helmet,leather boots,leather legs,leather chest
--Wizard /Purple
--
as you can see im in the middle of editing selection 2 oh also i use one as a prompt for the user if they select it it will reload the program
#17931 [question][lua]
Posted by
Deathknight0897
on 05 July 2012 - 05:03 PM
in
Ask a Pro
just checking through a sleep like he did or this os.pull pullEvent()
#17930 [Lua] Highly Secure Door lock
Posted by
Deathknight0897
on 05 July 2012 - 05:00 PM
in
Programs
I have made many other programs now why don't you go find a couple of programs like them im sure u will as that is the nature of the beast more than one person will have the same idea.
and may even look at a same tutorial and maybe even use the same variable magic isn't it the world wide web
#17928 [Lua] Highly Secure Door lock
Posted by
Deathknight0897
on 05 July 2012 - 04:53 PM
in
Programs
#17924 ID Archive
Posted by
Deathknight0897
on 05 July 2012 - 04:41 PM
in
Suggestions
#17922 [MC 1.2.5] - [CC 1.33] ccSensors [SMP/SSP]
Posted by
Deathknight0897
on 05 July 2012 - 04:40 PM
in
Peripherals and Turtle Upgrades
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
I run it on Tekkit, is working so far
JadarMC, on 05 July 2012 - 01:12 PM, said:
Thanks!
Im looking for the same too, i can run some things but the most doesn't work
#17921 [question][lua]
Posted by
Deathknight0897
on 05 July 2012 - 04:39 PM
in
Ask a Pro
repeat
until a -- 1
and why ur version is better it wont be as responsive surely as checking as often as the program does
MysticT, on 05 July 2012 - 02:58 PM, said:
This should work:
local function game()
term.redirect(peripheral.wrap("right"))
os.run({}, "rom/programs/computer/worm")
end
local function pads()
while true do
os.pullEvent("redstone") -- wait for redstone input
if rs.testBundledInput("front", 16) then
os.queueEvent("key", 200)
elseif rs.testBundledInput("front", 1) then
os.queueEvent("key", 203)
elseif rs.testBundledInput("front", 2048) then
os.queueEvent("key", 205)
elseif rs.testBundledInput("front", 16384) then
os.queueEvent("key", 208)
end
end
parallel.waitForAny(game, pads)
#17920 [Lua] Highly Secure Door lock
Posted by
Deathknight0897
on 05 July 2012 - 04:37 PM
in
Programs
don't use the wiki other than for the api's only have used the forums
and yeh i know about the disc drive that is a problem
#17919 ID Archive
Posted by
Deathknight0897
on 05 July 2012 - 04:35 PM
in
Suggestions
#17917 Your all invited to Comp o' con 2012!
Posted by
Deathknight0897
on 05 July 2012 - 04:33 PM
in
General
#17916 [Question] Make a program permanently un-editable?
Posted by
Deathknight0897
on 05 July 2012 - 04:32 PM
in
Ask a Pro
#17895 Key press Help Required
Posted by
Deathknight0897
on 05 July 2012 - 02:08 PM
in
Ask a Pro
#17894 Automatic Scrolling Rule Board
Posted by
Deathknight0897
on 05 July 2012 - 02:07 PM
in
Programs
#17892 Automatic Scrolling Rule Board
Posted by
Deathknight0897
on 05 July 2012 - 02:01 PM
in
Programs
#17891 Key press Help Required
Posted by
Deathknight0897
on 05 July 2012 - 02:00 PM
in
Ask a Pro
#17889 Automatic Scrolling Rule Board
Posted by
Deathknight0897
on 05 July 2012 - 01:53 PM
in
Programs
inventor2514, on 05 July 2012 - 01:42 PM, said:
local tRules = {"Rule 1", "Rule 2", "Rule 3", "etc." }
repeat
for i, sRule in ipairs(tRules) do
sleep(5)
print(sRule)
print("---------------------------")
end
until a -- 1
- ComputerCraft | Programmable Computers for Minecraft
- → Deathknight0897's Content


