Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name textscreen
- @inputs Screen:wirelink
- @outputs
- @persist L7:string I Line:string Color:vector Random:vector L1:string L2:string L3:string L4:string L5:string L1Length:number Hue L6:string
- @trigger
- if(first() | changed(Screen) | duped()){
- Screen:egpClear()
- Screen:egpRoundedBox(1, vec2(256,256), vec2(300,200))
- Screen:egpColor(1, vec(50,55,50))
- Screen:egpText(2, "---------------------------------", vec2(108, 180))
- Screen:egpFont(2, "Coolvetica", 30)
- I = 0
- }
- runOnChat(1)
- #Chat Commands#
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set1" & chatClk(owner())){
- L1 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set2" & chatClk(owner())){
- L2 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set3" & chatClk(owner())){
- L3 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set4" & chatClk(owner())){
- L4 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set5" & chatClk(owner())){
- L5 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set6" & chatClk(owner())){
- L6 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".set7" & chatClk(owner())){
- L7 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
- }
- ##Colour Commands##
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".setc" & chatClk(owner())){
- I = 0
- Line = A[2,string]
- ColorR = A[3,string]
- ColorG = A[4,string]
- ColorB = A[5,string]
- Color = vec(ColorR:toNumber(),ColorG:toNumber(),ColorB:toNumber())
- if(Line == "1"){
- Screen:egpColor(3, Color)
- }
- if(Line == "2"){
- Screen:egpColor(2, Color)
- }
- if(Line == "3"){
- Screen:egpColor(5, Color)
- }
- if(Line == "4"){
- Screen:egpColor(6, Color)
- }
- if(Line == "5"){
- Screen:egpColor(7, Color)
- }
- if(Line == "6"){
- Screen:egpColor(8, Color)
- }
- if(Line == "7"){
- Screen:egpColor(9, Color)
- }
- if(Line == "8"){
- Screen:egpColor(10, Color)
- }
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==".togglerent" & chatClk(owner())){
- if(A[2,string] =="on"){
- Screen:egpAlpha(4, 255)
- }
- if(A[2,string] =="off"){
- Screen:egpAlpha(4, 0)
- }
- }
- #End of Chat Commands#
- #EGP Stuff#
- Screen:egpText(3, L1, vec2(120,165))
- Screen:egpFont(3, "Coolvetica", 30)
- Screen:egpText(4, "*To live here it will cost 1,000,000* (With me)", vec2(120,340))
- Screen:egpFont(4, "Arial", 15)
- Screen:egpText(5, L2, vec2(120,200))
- Screen:egpFont(5, "Coolvetica", 25)
- Screen:egpText(6, L3, vec2(120,220))
- Screen:egpFont(6, "Coolvetica", 25)
- Screen:egpText(7, L4, vec2(120,240))
- Screen:egpFont(7, "Coolvetica", 25)
- Screen:egpText(8, L5, vec2(120,260))
- Screen:egpFont(8, "Coolvetica", 25)
- Screen:egpText(9, L6, vec2(120,280))
- Screen:egpFont(9, "Coolvetica", 25)
- Screen:egpText(10, L7, vec2(120,300))
- runOnTick(1)
- Hue++
- Color=hsv2rgb(vec(Hue,1,1))
- if(Hue == 360){
- Hue = 0
- }
- Screen:egpColor(3, Color)
- Screen:egpColor(2, Color)
- Random = vec(random(255),random(255),random(255))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement