Jump to content




Good Programs?


  • You cannot reply to this topic
6 replies to this topic

#1 hamish1001

  • New Members
  • 75 posts
  • LocationAustralia

Posted 22 March 2012 - 06:04 AM

Does anyone have any good programs if you do can you tell me them :)/>
I really need some I tried programming but I failed and if there's any tips for me please feel free to tell me :D/>
Thanks Hamish1001 :)/>


im a NINJA :(/>

#2 smithy21

  • New Members
  • 3 posts

Posted 22 March 2012 - 08:15 AM

I have made a program for Turtles. It's Called House Builder. It's pretty simple. You may like it.

#3 Ian-Moone

    The Germ

  • New Members
  • 124 posts
  • LocationLiverpool (no I am not a Scouser Im form Holland)

Posted 22 March 2012 - 08:36 AM

type in

print("hello world!")

well done you just made a program :(/>
go on keep trying and you will get there!

#4 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 22 March 2012 - 08:43 PM

You can check out my programs to learn. I have an API something with rednet my API has monitor code in it... and my programs use the most basic events. If you analyse them I think this could help you. and if you want to kow the commands of the apis just type help [API_NAME]
And if you have ANY questions go ahead and ask me

#5 hamish1001

  • New Members
  • 75 posts
  • LocationAustralia

Posted 22 March 2012 - 09:27 PM

View PostVandie, on 22 March 2012 - 08:36 AM, said:

type in

print("hello world!")

well done you just made a program :(/>
go on keep trying and you will get there!
haha :)/> i already know that i use textulis.slowWrite (i think thats it) its so much better :)/>

#6 hamish1001

  • New Members
  • 75 posts
  • LocationAustralia

Posted 22 March 2012 - 09:30 PM

i made this
with help from other people (someone fixed it and made it work for me it did not work :)/> they added heaps of stuff i dont understand it :(/> )


function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end

term.clear()
term.setCursorPos(1,1)
print "Super Lock 2000"
print " "
write ("Password: ")

correctpass = "123"
pass = read("*")

if pass == (correctpass) then
print " "
write("Correct! You may enter!")
redstone.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
redstone.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
os.reboot()

else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end



works good :)/>

#7 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 23 March 2012 - 11:06 AM

View Posthamish1001, on 22 March 2012 - 09:30 PM, said:

i made this
with help from other people (someone fixed it and made it work for me it did not work :)/> they added heaps of stuff i dont understand it :(/> )


function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end

term.clear()
term.setCursorPos(1,1)
print "Super Lock 2000"
print " "
write ("Password: ")

correctpass = "123"
pass = read("*")

if pass == (correctpass) then
print " "
write("Correct! You may enter!")
redstone.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
redstone.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
os.reboot()

else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end



works good :)/>
nice good work
why did you type the os.pullEvent function inot the code?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users