OxyIce

AntiCaps Skript/Script For Minecraft

Nov 15th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. #Here is the Anti caps Skript: IT CANT DETECT CAPS Skript does obviously not differ between big or small letter.It just can replace these and put correct ones out.
  2. #This Skript however will automatically overwrite all caps from words,and allow only the first Letter of the word to be big
  3. on chat:
  4. set {_Untested.Text} to message
  5. while (the length of {_Untested.Text}) is not 0:
  6. set {_Tested.Letter} to the first 1 characters of {_Untested.Text}
  7. if the length of {_Untested.Text} is 1:
  8. clear {_Untested.Text}
  9. set {_Untested.Text} to subtext of {_Untested.Text} from characters 2 to (the length of {_Untested.Text} - 0)
  10. if {_Tested.Letter} is " ":
  11. set {_Caps} to 0
  12. if {_Tested.Letter} is "A" or "B" or "C" or "D" or "E" or "F" or "G" or "H" or "I" or "J" or "K" or "L" or "M" or "N" or "O" or "P" or "Q" or "R" or "S" or "T" or "U" or "V" or "W" or "X" or "Y" or "Z":
  13. add 1 to {_Caps}
  14. if {_Caps} is bigger than 1:
  15. if {_Tested.Letter} is "A":
  16. set {_Tested.Letter} to "a"
  17. if {_Tested.Letter} is "B":
  18. set {_Tested.Letter} to "b"
  19. if {_Tested.Letter} is "C":
  20. set {_Tested.Letter} to "c"
  21. if {_Tested.Letter} is "D":
  22. set {_Tested.Letter} to "d"
  23. if {_Tested.Letter} is "E":
  24. set {_Tested.Letter} to "e"
  25. if {_Tested.Letter} is "F":
  26. set {_Tested.Letter} to "f"
  27. if {_Tested.Letter} is "G":
  28. set {_Tested.Letter} to "g"
  29. if {_Tested.Letter} is "H":
  30. set {_Tested.Letter} to "h"
  31. if {_Tested.Letter} is "I":
  32. set {_Tested.Letter} to "i"
  33. if {_Tested.Letter} is "J":
  34. set {_Tested.Letter} to "j"
  35. if {_Tested.Letter} is "K":
  36. set {_Tested.Letter} to "k"
  37. if {_Tested.Letter} is "L":
  38. set {_Tested.Letter} to "l"
  39. if {_Tested.Letter} is "M":
  40. set {_Tested.Letter} to "m"
  41. if {_Tested.Letter} is "N":
  42. set {_Tested.Letter} to "n"
  43. if {_Tested.Letter} is "O":
  44. set {_Tested.Letter} to "o"
  45. if {_Tested.Letter} is "P":
  46. set {_Tested.Letter} to "p"
  47. if {_Tested.Letter} is "Q":
  48. set {_Tested.Letter} to "q"
  49. if {_Tested.Letter} is "R":
  50. set {_Tested.Letter} to "r"
  51. if {_Tested.Letter} is "S":
  52. set {_Tested.Letter} to "s"
  53. if {_Tested.Letter} is "T":
  54. set {_Tested.Letter} to "t"
  55. if {_Tested.Letter} is "U":
  56. set {_Tested.Letter} to "u"
  57. if {_Tested.Letter} is "V":
  58. set {_Tested.Letter} to "v"
  59. if {_Tested.Letter} is "W":
  60. set {_Tested.Letter} to "w"
  61. if {_Tested.Letter} is "X":
  62. set {_Tested.Letter} to "x"
  63. if {_Tested.Letter} is "Y":
  64. set {_Tested.Letter} to "y"
  65. if {_Tested.Letter} is "Z":
  66. set {_Tested.Letter} to "z"
  67. if {_Finished.Letters} is not set:
  68. set {_Finished.Letters} to "%{_Tested.Letter}%"
  69. else:
  70. set {_Finished.Letters} to "%{_Finished.Letters}%%{_Tested.Letter}%"
  71. set message to "%{_Finished.Letters}%"
Advertisement
Add Comment
Please, Sign In to add comment