Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Modified from the English To Pirate Translator Script - By Giacom
- // Helper Functions
- def implode($vector, $adder)
- {
- $returnString = "";
- $index = 1;
- while($index <= length($vector))
- {
- $at = at($vector, $index);
- $toAdd = $adder;
- if($index == 1)
- {
- $toAdd = "";
- }
- $returnString = $returnString + $toAdd + $at;
- $index += 1;
- }
- return $returnString;
- }
- def Initialize()
- {
- // Our words! Format: real word / anime word
- $words = vector("assistant", "underage schoolgirl",
- "engineering", "kougaku",
- "awesome", "sugoi",
- "ce", "CE-sama",
- "job", "shigoto",
- "north", "kita",
- "east", "higashi",
- "south", "minami",
- "west", "nishi",
- "great", "sugoi",
- "amazing", "sugoi",
- "shit", "sugoi",
- "english", "eigo",
- "engineer", "kougakusha",
- "I", "watashi",
- "someone", "donataka",
- "my", "watashi no",
- "yes", "hai",
- "no", "iie",
- "yeah", "un",
- "captain", "Captain-san",
- "security", "bullies",
- "RD", "Kenkyuusho",
- "Research", "Kenkyuu",
- "disable", "keep",
- "hos", "big bully",
- "hop", "All Access-san",
- "science", "kagaku",
- "money", "okane",
- "friend", "tomodachi",
- "ship", "fune",
- "cute", "kawaii",
- "anime", "HIGH QUALITY JAPANESE ANIMATION",
- "cyborg", "robot-san",
- "borg", "robo-chan",
- "singularity", "Singularity-san",
- "singulo", "singulo-kun",
- "Wizard", "Sorcerer-san",
- "he", "kare",
- "him", "kare",
- "his", "kare no",
- "her", "kanojo (no)",
- "she", "kanojo",
- "Japan", "GRORIOUS NIPPON",
- "lynch", "praise",
- "demote", "give all access to",
- "me", "watashi",
- "god", "kami",
- "fuck", "fakku",
- "please", "kudasai",
- "you", "anata",
- "your", "anata no",
- "what", "nani",
- "who", "dare",
- "when", "saishite",
- "why", "naze",
- "here", "koko",
- "where", "nanshin",
- "we", "watashitachi",
- "shuttle", "fune",
- "help", "tasukete",
- "good", "ii",
- "please", "kudasai.",
- "our", "watashitachi no",
- "AI", "AI-san",
- "AI,", "AI-san,",
- "doctor", "isha",
- "thanks", "arigatou",
- "thank you", "arigatou gozaimasu");
- //broadcast("Starting Initialization...");
- $index = 1;
- while($index <= length($words))
- {
- $key = at($words, $index);
- $key = lower($key);
- $value = at($words, $index+1);
- mem($key, $value);
- $index += 2;
- }
- //broadcast("Initialization Complete!");
- }
- // Script Begin
- if(mem("initialized") != 1)
- {
- Initialize();
- mem("initialized", 1);
- }
- $newContent = explode($content, " ");
- $index = 1;
- while($index <= length($newContent))
- {
- $entry = at($newContent, $index);
- $value = mem(lower($entry));
- if($value)
- {
- at($newContent, $index, $value);
- }
- $index += 1;
- }
- $content = implode($newContent, " ");
- // Script End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement