Jump to content

Simple Rednet Doorlock Script

wireless peripheral computer

2 replies to this topic

#1 LuckyLuke

  • Members
  • 52 posts
  • LocationMinecraft

Posted 30 July 2015 - 05:15 AM

Hi Guys,

im currently working on a simple Rednet Doorlock with some additinal functionality like "Lockdown" or "Updates".

Current State of Work [Updated Daylie]
  • Server Script: pastebin.com/xa8eQijz
  • Client Script: pastebin.com/BPCPTjHe
At this moment (30.07 | 07:06) both versions are stable, of course i', trying to get every new version stable, but please dont "flame" if im in a working progress on another functionality :)

At this point i'm trying to add another little feature: On the screen, i would like to get "Auf", "Zu" and "Offline" in different colors. I created a function that is called in the "writing-loop", but it didnt work out, so i deleted it :/

Overview of the colors:
"Auf" => colors.green
"Zu" => colors.red
"Offline" => colors.orange

Maybe you can give me a hint, how i can improve my code and add this functionality, i might be blind at the moment cause i thougt this little thing would be much easyer ...

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 30 July 2015 - 03:14 PM

term.setTextColor( colors.green )
print( "Auf" )
term.setTextColor( colors.red )
print( "Zu" )
term.setTextColor( colors.orange )
print( "Offline" )

Edited by KingofGamesYami, 30 July 2015 - 03:15 PM.

#3 LuckyLuke

  • Members
  • 52 posts
  • LocationMinecraft

Posted 30 July 2015 - 03:55 PM

I would like to get that on the screen as well, just like this part:

Compare Line 152: writeColorMonitor(x, y+i, colors.white, "|-- ["..Clients[i][1].."] | "..Clients[i][4].." | "..Clients[i][3])

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users