brockitty

Script 3 edit by me background color function removed

Mar 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 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.fontB) {
  10. set %cf.fontB 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.fontB 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. }
  56. on *:input:#: {
  57. if ((/ !isin $left($1,1)) && (%colorfont)) {
  58. set %color.font  $+ %cf.font $+
  59. if (%cf.bld) {
  60. set %color.font  $+ %color.font
  61. }
  62. if (%cf.und) {
  63. set %color.font $+ %color.font
  64. }
  65. msg $chan %color.font $+ $strip($1-)
  66. halt
  67. }
Add Comment
Please, Sign In to add comment