Jump to content




Automatic Scrolling Rule Board

utility

  • This topic is locked This topic is locked
8 replies to this topic

#1 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 06:15 AM

This is a really simple scrolling up rule board for servers you can even use it as a service announcer or anything that needs to print text

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) -- change the number to change the speed
print ("RULE 7") -- edit the text within ("")
print ("---------------------------") -- you may have to add more if your screen is wider than 3 monitors

just make sure this is at the bottom
until a -- 1

any questions please ask me

Or if you want a alternate version


local tRules = {
"Rule 1",--edit the text within ("")
"Rule 2",--edit the text within ("")
"Rule 3",--edit the text within ("")
}
while true do
  for i, sRule in ipairs(tRules) do
    sleep(5)--change the number to change the speed
    print(sRule)
    print("---------------------------")-- you may have to add more if your screen is wider than 3 monitors
  end
end


if you want more than 3 rules simply


local tRules = {
"Rule 1",--edit the text within ("")
"Rule 2",--edit the text within ("")
"Rule 3",--edit the text within ("")
-- add another line here in the same format as above
}


#2 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 05 July 2012 - 12:41 PM

would be easier to use tables...

#3 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 12:47 PM

How do you mean please give example :P/>

View Postardera, on 05 July 2012 - 12:41 PM, said:

would be easier to use tables...


#4 inventor2514

  • Members
  • 63 posts

Posted 05 July 2012 - 01:42 PM

I think ardera meant something like this:

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


#5 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 01:53 PM

ah i see that's clever i will attempt to implement know only problem i see with it if you need to change one of the rules going to be a pain to find on that first line if u got like 50:D

View Postinventor2514, on 05 July 2012 - 01:42 PM, said:

I think ardera meant something like this:

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


#6 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 05 July 2012 - 01:57 PM

View PostDeathknight0897, on 05 July 2012 - 01:53 PM, said:

ah i see that's clever i will attempt to implement know only problem i see with it if you need to change one of the rules going to be a pain to find on that first line if u got like 50:D

View Postinventor2514, on 05 July 2012 - 01:42 PM, said:

I think ardera meant something like this:

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
Then just put them in separate lines:
local tRules = {
"Rule 1",
"Rule 2",
"Rule 3",
"etc."
}

while true do
  for i, sRule in ipairs(tRules) do
    sleep(5)
    print(sRule)
    print("---------------------------")
  end
end


#7 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 02:01 PM

Mystic T your an angel i will re post the alternate version to give people the option of either

#8 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 02:07 PM

Alternate version is up for those who prefer that method much easier if you have a mass load of rules you rule whore u

#9 mikekrason

  • New Members
  • 1 posts

Posted 27 July 2012 - 10:46 PM

Ummm, How exactly do you stop it? I'm a noob with CC :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users