Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. // Modified from the English To Pirate Translator Script - By Giacom
  2.  
  3. // Helper Functions
  4.  
  5. def implode($vector, $adder)
  6. {
  7. $returnString = "";
  8. $index = 1;
  9.  
  10. while($index <= length($vector))
  11. {
  12. $at = at($vector, $index);
  13. $toAdd = $adder;
  14. if($index == 1)
  15. {
  16. $toAdd = "";
  17. }
  18. $returnString = $returnString + $toAdd + $at;
  19. $index += 1;
  20. }
  21. return $returnString;
  22. }
  23.  
  24. def Initialize()
  25. {
  26.  
  27. // Our words! Format: real word / anime word
  28. $words = vector("assistant", "underage schoolgirl",
  29. "engineering", "kougaku",
  30. "awesome", "sugoi",
  31. "ce", "CE-sama",
  32. "job", "shigoto",
  33. "north", "kita",
  34. "east", "higashi",
  35. "south", "minami",
  36. "west", "nishi",
  37. "great", "sugoi",
  38. "amazing", "sugoi",
  39. "shit", "sugoi",
  40. "english", "eigo",
  41. "engineer", "kougakusha",
  42. "I", "watashi",
  43. "someone", "donataka",
  44. "my", "watashi no",
  45. "yes", "hai",
  46. "no", "iie",
  47. "yeah", "un",
  48. "captain", "Captain-san",
  49. "security", "bullies",
  50. "RD", "Kenkyuusho",
  51. "Research", "Kenkyuu",
  52. "disable", "keep",
  53. "hos", "big bully",
  54. "hop", "All Access-san",
  55. "science", "kagaku",
  56. "money", "okane",
  57. "friend", "tomodachi",
  58. "ship", "fune",
  59. "cute", "kawaii",
  60. "anime", "HIGH QUALITY JAPANESE ANIMATION",
  61. "cyborg", "robot-san",
  62. "borg", "robo-chan",
  63. "singularity", "Singularity-san",
  64. "singulo", "singulo-kun",
  65. "Wizard", "Sorcerer-san",
  66. "he", "kare",
  67. "him", "kare",
  68. "his", "kare no",
  69. "her", "kanojo (no)",
  70. "she", "kanojo",
  71. "Japan", "GRORIOUS NIPPON",
  72. "lynch", "praise",
  73. "demote", "give all access to",
  74. "me", "watashi",
  75. "god", "kami",
  76. "fuck", "fakku",
  77. "please", "kudasai",
  78. "you", "anata",
  79. "your", "anata no",
  80. "what", "nani",
  81. "who", "dare",
  82. "when", "saishite",
  83. "why", "naze",
  84. "here", "koko",
  85. "where", "nanshin",
  86. "we", "watashitachi",
  87. "shuttle", "fune",
  88. "help", "tasukete",
  89. "good", "ii",
  90. "please", "kudasai.",
  91. "our", "watashitachi no",
  92. "AI", "AI-san",
  93. "AI,", "AI-san,",
  94. "doctor", "isha",
  95. "thanks", "arigatou",
  96. "thank you", "arigatou gozaimasu");
  97.  
  98. //broadcast("Starting Initialization...");
  99.  
  100. $index = 1;
  101. while($index <= length($words))
  102. {
  103. $key = at($words, $index);
  104. $key = lower($key);
  105. $value = at($words, $index+1);
  106. mem($key, $value);
  107. $index += 2;
  108. }
  109. //broadcast("Initialization Complete!");
  110. }
  111.  
  112. // Script Begin
  113.  
  114. if(mem("initialized") != 1)
  115. {
  116. Initialize();
  117. mem("initialized", 1);
  118. }
  119.  
  120. $newContent = explode($content, " ");
  121. $index = 1;
  122. while($index <= length($newContent))
  123. {
  124.  
  125. $entry = at($newContent, $index);
  126. $value = mem(lower($entry));
  127.  
  128. if($value)
  129. {
  130. at($newContent, $index, $value);
  131. }
  132.  
  133. $index += 1;
  134. }
  135.  
  136. $content = implode($newContent, " ");
  137.  
  138. // Script End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement