brockitty

Script 1 with Neike and my edits

Mar 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. ;COLOR FONT 1.2 script by pope
  2. ;PEERCOMMONS chat.peercommons.net 6667
  3. ;#scripters.united
  4. ;thanks to Vox91 for the !iswmcs suggestion
  5. ;
  6. menu * {
  7. COLOR FONT
  8. .on/off: {
  9. if (!%cf.font) {
  10. set %cf.font 1
  11. }
  12. if (!%cf.bkgrd) {
  13. set %cf.bkgrd 0
  14. }
  15. if (!%colorfont) {
  16. set %colorfont 1
  17. echo -a 4 Color Font Now Active.
  18. halt
  19. }
  20. unset %colorfont
  21. echo -a 4 Color Font Now Inactive.
  22. halt
  23. }
  24. .underline: {
  25. if (!%cf.und) {
  26. set %cf.und 1
  27. halt
  28. }
  29. unset %cf.und
  30. }
  31. .bold: {
  32. if (!%cf.bld) {
  33. set %cf.bld 1
  34. halt
  35. }
  36. unset %cf.bld
  37. }
  38. .text color
  39. ..0 white: set %cf.font 0
  40. ..1 black: set %cf.font 1
  41. ..2 blue: set %cf.font 2
  42. ..3 green: set %cf.font 3
  43. ..4 lightred: set %cf.font 4
  44. ..5 brown: set %cf.font 5
  45. ..6 purple: set %cf.font 6
  46. ..7 orange: set %cf.font 7
  47. ..8 yellow: set %cf.font 8
  48. ..9 lightgreen: set %cf.font 9
  49. ..10 cyan: set %cf.font 10
  50. ..11 light-cyan: set %cf.font 11
  51. ..12 lightblue: set %cf.font 12
  52. ..13 pink: set %cf.font 13
  53. ..14 grey: set %cf.font 14
  54. ..15 lightgrey: set %cf.font 15
  55. .background color
  56. ..0 white: set %cf.bkgrd 0
  57. ..1 black: set %cf.bkgrd 1
  58. ..2 blue: set %cf.bkgrd 2
  59. ..3 green: set %cf.bkgrd 3
  60. ..4 lightred: set %cf.bkgrd 4
  61. ..5 brown: set %cf.bkgrd 5
  62. ..6 purple: set %cf.bkgrd 6
  63. ..7 orange: set %cf.bkgrd 7
  64. ..8 yellow: set %cf.bkgrd 8
  65. ..9 lightgreen: set %cf.bkgrd 9
  66. ..10 cyan: set %cf.bkgrd 10
  67. ..11 light-cyan: set %cf.bkgrd 11
  68. ..12 lightblue: set %cf.bkgrd 12
  69. ..13 pink: set %cf.bkgrd 13
  70. ..14 grey: set %cf.bkgrd 14
  71. ..15 lightgrey: set %cf.bkgrd 15
  72. }
  73. on *:input:#: {
  74. if ((/ !isin $left($1,1)) && (%colorfont)) {
  75. if (%cf.bkgrd) {
  76. set %color.font  $+ %cf.font  $+ , $+ %cf.bkgrd
  77. } else {
  78. set %color.font  $+ %cf.font
  79. }
  80. if (%cf.bld) {
  81. set %color.font  $+ %color.font
  82. }
  83. if (%cf.und) {
  84. set %color.font $+ %color.font
  85. }
  86. msg $chan %color.font $+ $strip($1-)
  87. halt
  88. }
  89. }
Add Comment
Please, Sign In to add comment