Advertisement
Guest User

Untitled

a guest
Feb 13th, 2015
1,388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.37 KB | None | 0 0
  1. package bot.scripts;
  2.  
  3. import java.awt.Graphics;
  4.  
  5. import bot.Bot;
  6.  
  7. public class Trivia extends Script {
  8.  
  9. private static String trivia[][] = { { "I could stay awake, just to hear you breathin'", "I Don't Wanna Miss a Thing" }, { "Oh Mama Mia, Mama Mia, Mama Mia let me go!", "Bohemian Rhapsody" }, { "Lamborghini Mercy", "Mercy" },
  10. { "Let's go to the beach beach, let's go get away", "Starships" }, { "I got sunshine, on a cloudy day", "My Girl" }, { "Move to the sound of my body", "Hips Don't Lie" }, { "Your poor little heart, will be all alone", "Runaway Baby" },
  11. { "Went the distance, now I'm back on my feet", "Eye of the Tiger" }, { "Hey I just met you, and this is crazy", "Call Me Maybe" }, { "Let's take this back to straight Hip-Hop, and start it from scratch", "Berzerk" },
  12. { "It goes one for the money, two for the show", "Go To Church" }, { "Put your weary head to rest, don't you cry no more", "Wayward Son" }, { "I got nine lives, cats eyes", "Back in Black" },
  13. { "Rejoice every time you hear the sound of my voice", "When I'm Gone" }, { "My love, you'll never live without, I know you want me girl cause I can see you checking me out", "We Made You" },
  14. { "Brings me back sweet childhood memories", "Sweet Child O' Mine" }, { "California, knows how to party", "California Love" }, { "Today is gonna be the day that they're gonna throw it back to you", "Wonderwall" },
  15. { "I crashed my car into the bridge", "I Love It" }, { "Ah whimo whep ah whimo whep", "In The Jungle" }, { "And you can tell anybody, this is a song for you", "Your Song" },
  16. { "So I set the world on fire, we can burn brighter than the sun", "We Are Young" }, { "I won't answer what you need answered", "I won Lucker" },
  17. { "I've become so numb, I can't feel you there. Become so tired, so much more aware", "Numb" }, { "Figure out this anagram: 'Geertips'", "Prestige" }, { "Figure out this anagram: 'gjaojoen'", "jaejoong" },
  18. { "Figure out this anagram: 'tcas'", "cats" }, { "Figure out this anagram: 'gdos'", "dogs" }, { "Figure out this anagram: 'obom'", "boom" }, { "Figure out this anagram: 'osetirot'", "Tortoise" },
  19. { "Figure out this anagram, 'megldaono'", "Megalodon" }, { "What is Danny's real name?", "Miles" }, { "What is Motherboards real name?", "brandon" }, { "What is Innocent's real name?", "Ben" }, { "What does Innocent watch?", "Anime" },
  20. { "What is motherboard's Favourite kind of music?", "Deathcore" }, { "What is Innocent's Favourite kind of music?", "Dubstep" }, { "Who was the most corrupt Person on the server?", "motherboard" },
  21. { "Danny is regretting the class...", "Advanced Precalculus" }, { "Name Danny's future wife.", "Jennifer Lawrence" }, { "Danny's favourite sport is?", "Swimming" }, { "Hellboy12's favourite sport is?", "Football" },
  22. { "What country is Innocent from?", "United Kingdom" }, { "What country is Hellboy12 from?", "United Kingdom" }, { "Cabbage shares the same name with who?", "Innocent" }, { "How old is Danny?", "17" }, { "How old is Chime?", "17" },
  23. { "How old is Innocent?", "18" }, { "How old is Hellboy12?", "19" }, { "What was the first obsidian weapon Jagex released?", "Dark Dagger" }, { "What grants you the Fire Cape?", "Fight Caves" },
  24. { "What is the worst update Jagex ever made?", "EOC" }, { "What is the maximum total level you can achieve?", "2496" }, { "What gaming genre is Runescape?", "MMORPG" }, { "In what year was Runescape established?", "1998" },
  25. { "What is the max skill cap?", "99" }, { "How many portals are there at clan wars?", "3" }, { "What weapon is a Tormented Demon's weakness?", "Darklight" }, { "How many barrows brothers were there originally?", "6" },
  26. { "In what year was the Duplication Glitch in Runescape?", "2003" }, { "What is the first ancient spell?", "Smoke Rush" }, { "What is the most powerful curse?", "Turmoil" },
  27. { "How much of a percentage does a dragon dagger special require?", "25%" }, { "How much of a percentage does a Thok's sword special require?", "25%" }, { "What is the best free to play armour?", "Rune Armour" },
  28. { "How much xp is required to achieve 120 Dungeoneering?", "104m" }, { "What do you receive when a fire disappears?", "Ashes" }, { "What is the name of the kiln cape?", "TokHaar-Kal" },
  29. { "What is the maximum amount of xp you can gain per skill?", "200m" }, { "What colours is the Saradomin Flag? (3 Colours)", "Blue, White and Yellow" }, { "What colours is the zamorock Flag? (2 Colours)", "Black and Red" },
  30. { "What colours is the Guthix Flag?", "Green" }, { "What prayer Level do you need to use Steel Skin?", "28" }, { "What is the Maxed level for Runescape in Evolution of Combat?", "200" },
  31. { "What is King Black Dragons Combat Level", "276" }, { "What is the Maxed level for Runescape before Evolution of Combat?", "138" }, { "What attack level do you need to use an iron scimitar in Evolution of Combat?", "10" },
  32. { "At what mining level can you mine Runite Ore?", "85" }, { "At what mining level can you mine Mithril Ore?", "55" }, { "At what mining level can you mine Adamantite Ore?", "70" },
  33. { "At what mining level can you mine Gold Ore?", "40." }, { "At what fishing level can you fish Lobster?", "40" }, { "At what fishing level can you fish Sword Fish?", "50" }, { "At what fishing level can you fish Tuna?", "35." },
  34. { "What Tool do you need to fish Lobster?", "Lobster Pot" }, { "What Tool do you need to fish Tuna?", "Harpoon" }, { "What Tool do you need to fish Sword Fish?", "Harpoon" },
  35. { "What is the strongest Dungeoneering weapon type?", "Primal" }, { "What woodcutting level do you need to cut magic logs?", "75" }, { "What cooking level do you need to cook Rocktails?", "93" },
  36. { "What Smithing level do you need to smith rune Warhammers?", "94" }, { "What bones give the most XP per bury?", "Frost Dragon Bones" }, { "What Summoning level do you need to use the TzRek Jad?", "99" },
  37. { "What Summoning level do you need to summon the Fruit bat?", "69" }, { "What Slayer level do you need to fight Ganodermic beasts?", "95" }, { "What Sishing level do you need to fish manta rays?", "81" },
  38. { "What Fletching level do you need to fletch Magic Shortbows?", "80" }, { "What Agility level do you need for advanced Barbarian outpost?", "90" }, { "What emote uses a cannon?", "Chaotic Cookery" },
  39. { "What's the first four digits of a max stack?", "2147" }, { "What's all the digits of a max stack?", "2147483647" }, { "What Prayer level do you need for Turmoil?", "95" }, { "What does AGS stand for?", "Armadyl Godsword" },
  40. { "What does BGS stand for?", "Bandos Godsword" }, { "What does SGS stand for?", "Saradomin Godsword" }, { "What does ZGS stand for?", "Zamorak Godsword" }, { "What's the strongest spirit shield type?", "Divine" },
  41. { "What do you get from the recipe for disaster mini-game?", "Culinaromancer's Gloves" }, { "What's the Highest Slayer Master?", "Kuradal" }, { "What does SOF stand for?", "Squeal of Fortune" },
  42. { "What weapon one hits almost anything?", "Deathtouched Dart" }, { "What aura gives you red wings?", "Corruption" }, { "What aura gives you white wings?", "Salvation" }, { "What aura gives you green wings?", "Harmony" },
  43. { "What colour charm gives you the most xp?", "Blue" }, { "What type of Shield does General Graador Drop?", "Bandos Warshield" }, { "What currency is used to buy Chaotics?", "Dungeoneering Points" },
  44. { "How much Mill do you need to make your cash turn Green?", "10m" }, { "What potion blocks dragonfire breath?", "Antifire Potion" }, { "Where is our current home located?", "Oo'glog" }, { "What boss drops off-hands?", "Blink" },
  45. { "Who is the owner of Zyphyr?", "Danny" }, { "How many altars are there at home?", "6" }, { "Who is founder of Zyphyr?", "motherboard" }, { "What cache revision is Zyphyr?", "718" }, { "What is maximum combat level in Zyphyr?", "138" },
  46. { "What command do you use to teleport around Zyphyr?", "crystal" }, { "What island was our old home on?", "Karamja" }, { "How many cooking areas are there near home?", "1" }, { "What skill levels do you need to prestige?", "99" },
  47. { "How many squeal of fortune spins can you vote for?", "5" }, { "What is the famous drop of most NPCs on this server?", "Ecto-Tokens" }, { "What's the hardest skill to get max level in?", "Dungeoneering" },
  48. { "When should you help noobs?", "Always" }, { "At what level do noobs stop being noobs?", "50" }, { "What's is the rarest Corporeal Beast drop on Zyphyr?", "Scarlet Spirit Shield" }, { "What Rank is a gold Crown?", "Administrator" },
  49. { "What Rank is a Silver Crown?", "Moderator" }, { "What Rank is an i?", "Support" }, { "What colour is regular donator?", "Red" }, { "What colour is extreme donator?", "Green" }, { "What colour is Legendary donator?", "Blue" },
  50. { "What colour is Supreme donator?", "Orange" }, { "What colour is Divine donator?", "Purple" }, { "What colour is Angelic donator?", "White" }, { "What is the name of this Server?", "Zyphyr" },
  51. { "What tokens do you get from voting?", "Vote Tokens" }, { "How many Dungeoneering points are needed to buy a Chaotic?", "200k" }, { "How many thieving stalls in total are there at home?", "5" },
  52. { "What npc sells skillcapes?", "Wise old man" }, { "What was the best thing that ever happened to this server?", "Not Anthony" }, { "This server is coded in what language?", "Java" }, { "What is Zyphyr's custom skill?", "Assassin" },
  53. { "Is a tomato a fruit or a vegetable?", "Fruit" }, { "How many legs does a spider have?", "8" }, { "What is 'K-pop'?", "Korean Pop" }, { "What is a fish?", "A Fish" }, { "What music genre goes wub wub wub?", "Dubstep" },
  54. { "How many continents are there.", "7" }, { "How many bones are in a fully grown human?", "206" }, { "How Many wisdom teeth can grow in your mouth?", "4" }, { "What member of the Beatles was assassinated in 1980?", "John Lennon" },
  55. { "Who developed the ragtime jazz?", "Scott Joplin" }, { "What instrument did Louis Armstrong play?", "Trumpet" }, { "I see trees of _____, red roses too..?", "Green" },
  56. { "Which popular singer was called 'The King of Rock 'N' Roll", "Elvis Presley" }, { "Who created Charlie Brown Christmas?", "Charles Schulz" }, { "Who directed Jaws?", "Steven Speilberg" },
  57. { "What movie was an American film version of a popular Swedish novel?", "Girl With The Dragon Tattoo" }, { "When was the movie E.T. released?", "1982" }, { "What animal is classed as the king of the ocean?", "Great White Shark" },
  58. { "What movie is about the earth going into an ice-age?", "The Day After Tomorrow" }, { "Who is Batman's nemesis?", "The Joker" }, { "What movie features Simba the lion?", "The Lion King" },
  59. { "What movie lets any crime alowed for 24 hours?", "The Purge" }, { "Dont stop ____, just hold on to that feelin'!!", "Believin" }, { "What number did Michael Jordan wear?", "23" }, { "What type of fish is Nemo?", "Clown fish" },
  60. { "Who is the founder of Apple?", "steve jobs" }, { "What is the best food ever", "Bacon" }, { "(5(x+6) - 2b(1 + 2) + 69) / (5x - 6b)?", "99" }, { "What is the best number?", "69" }, { "First one to answer 'with 1', wins!", "With 1" },
  61. { "When is a cat not a cat?", "When It's a Dog" }, { "What doesn't yolo?", "A Cat" }, { "Honey Comb is to Half Baked as Chips is to ___________", "French Fries" }, { "What instrument does Nicki Minaj play?", "Vocals" },
  62. { "What did Michael Jackson die from?", "Cardiac arrest" }, { "What Disease does Muhammad Ali have?", "Parkinson's" }, { "How do dolphins sleep?", "With one eye open" }, { "How do lizards communicate?", "Push Ups" },
  63. { "Why are Flamingos pink?", "Because they eat shrimp" }, { "What percentage of a jellyfish is water?", "95%" }, { "How does a snail breathe?", "Its skin" }, { "Between Mayweather and Canelo, who won?", "Mayweather" },
  64. { "What number is Lionel Messi?", "10" }, { "What is the longest word in English language without a vowel?", "rhythm" }, { "What was the last letter added to English alphabet?", "J" },
  65. { "How many earth's would fit into the sun?", "1.3 million" }, { "The first pig's house was made out of?", "Straw" }, { "The second pig's house was made out of?", "Sticks" }, { "The third pig's house was made out of?", "Bricks" },
  66. { "Who is the worst singer in the world?", "Justin Bieber" }, { "What is the best crate?", "Death crate" }, { "Who is the most epic celebrity on this planet?", "Jennifer Lawrence" },
  67. { "Who runs the Illuminati?", "Upside Down Emma Watson" }, { "Herp Derp...", "Derp Herp" }, { "What was the worst thing that happened in 2013?", "Miley Cyrus" }, { "What is the best bible?", "The Lad Bible" },
  68. { "In which year did Michael Jackson release his single entitled Thriller?", "1984" }, { "What is the largest State in the USA?", "Alaska" }, { "Which spirit is typically used to make a Cuba Libre?", "Rum" },
  69. { "Which famous actor starred in the series 'The Fresh Prince of Bel-Air'?", "Will Smith" }, { "Which spirit is typically mixed with orange juice to create the cocktail known as 'screwdriver'?", "Vodka" },
  70. { "What is a barracuda?", "A fish" }, { "Who had a hit with 'Firework' in 2010?", "Katy Perry" }, { "What is the name of the planet that Superman comes from?", "Krypton" }, { "What colour is a New York taxi?", "Yellow" },
  71. { "What is the biggest man-made structure on Earth?", "The Great Wall of China" }, { "Where does the president of the United States of America reside?", "The White House" }, { "Which country's flag features a maple leaf?", "Canada" },
  72. { "In Roman numerals, what amount does the letter M equal?", "1000" }, { "What language is spoken in Austria?", "German" }, { "On a standard English language keyboard, what letter is located between E and T?", "R" },
  73. { "Who's treasure was buried in Treasure Island?", "Captain Flint's" }, { "What is a Vixen?", "A female fox" }, { "How many cards are there in a pack of cards?", "52" },
  74. { "Complete the film name 'Crouching Tiger Hidden ______", "Dragon" }, { "Oh no, Leonardo is sinking!", "Titanic" }, { "Wait, it's a dream?!?", "Inception" }, { "Pie, Boobs, and more!", "American Pie" },
  75. { "This movie gives me a nightmare!", "Nightmare on Elm Street" }, { "Here's Johnny!", "The Shining" }, { "Retired and Extremely Dangerous.", "RED" }, { "Oh no, it's Jason with a machete!", "Friday the 13th" },
  76. { "You don't want to swim in Cape Cod anymore.", "Jaws" }, { "So after all this, I'm the missing patient?", "Shutter Island" }, { "The greatest hiests of Boston.", "Town" },
  77. { "The greatest parody including the movie Narnia.", "Epic Movie" }, { "The series of scary movie parodies.", "Scary Movie" }, { "*flicks lighter in attic*", "The Grudge" }, { "Too fast for you?", "Fast and Furious" },
  78. { "The world is ending!", "2012" }, { "Tsunami survival and reuniting.", "The Impossible" }, { "Good old James Bond.", "007" } };
  79.  
  80. public boolean isTrivia(String message) {
  81. for (String[] question : trivia) {
  82. if (message.toLowerCase().contains(question[0].toLowerCase())) {
  83. return true;
  84. }
  85. }
  86. return false;
  87. }
  88.  
  89. public String getAnswer(String message) {
  90. for (String[] question : trivia) {
  91. if (message.toLowerCase().contains(question[0].toLowerCase())) {
  92. return question[1];
  93. }
  94. }
  95. return "";
  96. }
  97.  
  98. @Override
  99. public boolean onStart() {
  100. return true;
  101. }
  102.  
  103. @Override
  104. public void onMessage(String text) {
  105. if (isTrivia(text)) {
  106. Bot.command("answer "+getAnswer(text));
  107. }
  108. }
  109.  
  110. @Override
  111. public void run() {
  112. super.run();
  113. try {
  114.  
  115. } catch (Exception e) {
  116. e.printStackTrace();
  117. }
  118. }
  119.  
  120. @Override
  121. public void onRepaint(Graphics g) {
  122.  
  123. }
  124.  
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement