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

help please

Started by grazazel, 28 June 2012 - 01:56 AM
grazazel #1
Posted 28 June 2012 - 03:56 AM
Hi what i am wanting to do is making a program that when someone presses a button or stands on pressure plate will bring the rules of the server up on to a bank of monitors. I am a total noob looking to learn and was wondering if anyone could give me some help on this cheers
rex41043 #2
Posted 28 June 2012 - 04:26 AM
A: you shood not have this listed in programs you need to have it listed in ask a pro
B: you can use a redstone input for that
ardera #3
Posted 28 June 2012 - 01:32 PM
while true do
  v1=redstone.getInput("left") --Button
  v2=redstone.getInput("right") --Pressure Plate
  if v1 and v2 then
	--print rules
	print("This text will print")
	print("This text will print in next line")
  end
end

Left Redstone signal: Button
Right Redstone signal: Pressure Plate
Wolvan #4
Posted 28 June 2012 - 02:34 PM
Send me the server rules per PM and how exactly it should work and I will program it…
Deathknight0897 #5
Posted 04 July 2012 - 11:27 AM
Hi i already have something like this however it auto runs shouldn't be to demanding on server side and will scroll through automatically

Put this in startup "edit startup"

shell.run ("monitor", "top", "rules")
change top to where the monitors are in comparison to the computer
ie
Key
C computer
M monitor

[m][m][m]
[m][m][m]
[m][m][m]
[ ][c ][ ]

put this in "edit rules"

repeat
sleep(5)
print ("RULE 1")
print ("---------------------------")
sleep(5)
print ("RULE 2")
print ("---------------------------")
sleep(5)
print ("RULE 3")
print ("---------------------------")
sleep(5)
print ("RULE 4")
print ("---------------------------")
sleep(5)
print ("RULE 5")
print ("---------------------------")
sleep(5)
print ("RULE 6")
print ("---------------------------")
sleep(5)
print ("RULE 7")
print ("---------------------------")
until a -- 1

if you have more than seven rules just keep adding these


sleep(5)
print ("RULE 7")
print ("---------------------------")

just make sure this is at the bottom

until a -- 1

any questions please ask me