Advertisement
Boeing747-8

Untitled

Jul 18th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.21 KB | None | 0 0
  1. function removeAll(n)
  2. for i=0,900 do
  3. ui.removeTextArea(i,n)
  4. end
  5. ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:open'>Open Google", n, 681, 370, 112, 20, 0x000001, 0x000001, 1, true)
  6.  
  7. end
  8. function open(n)
  9. ui.addTextArea(15, "", n, 0, 0, 800, 400, 0xffffff, 0xffffff, 1, true)
  10. ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
  11.  
  12. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  13.  
  14. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='70'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, 180, 28, 440, 133, 0xffffff, 0xffffff, 1, true)
  15.  
  16.  
  17. end
  18. data={}
  19. for n,player in pairs(tfm.get.room.playerList) do
  20. data[n]={barrelRoll=0,b=false,times=0}
  21. end
  22.  
  23. function eventNewPlayer(n)
  24. ui.addTextArea(0, "<p align='center'><b><font size='10'><a href='event:open'>Open Google", n, 681, 370, 112, 20, 0x000001, 0x000001, 1, true)
  25.  
  26. data[n]={barrelRoll=0,b=false}
  27. end
  28. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  29.  
  30. comments1=""
  31. comments2=""
  32. comments3=""
  33. comments4=""
  34. comments5=""
  35. comments6=""
  36. comments7=""
  37. comments8=""
  38. comments9=""
  39. comments10=""
  40. comments11=""
  41. comments12=""
  42. comments13=""
  43. comments14=""
  44. comments15=""
  45. comments16=""
  46. comments17=""
  47. comments18=""
  48. comments19=""
  49. comments20=""
  50. function showComments1(n)
  51. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment1'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments1, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  52. end
  53. function showComments2(n)
  54. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment2'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments2, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  55. end
  56. function showComments3(n)
  57. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment3'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments3, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  58. end
  59. function showComments4(n)
  60. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment4'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments4, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  61. end
  62. function showComments5(n)
  63. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment5'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments5, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  64. end
  65. function showComments6(n)
  66. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment6'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments6, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  67. end
  68. function showComments7(n)
  69. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment7'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments7, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  70. end
  71. function showComments8(n)
  72. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment8'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments8, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  73. end
  74. function showComments9(n)
  75. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment9'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments9, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  76. end
  77. function showComments10(n)
  78. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment10'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments10, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  79. end
  80. function showComments11(n)
  81. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment11'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments11, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  82. end
  83. function showComments12(n)
  84. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment12'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments12, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  85. end
  86. function showComments13(n)
  87. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment13'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments13, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  88. end
  89. function showComments14(n)
  90. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment14'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments14, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  91. end
  92. function showComments15(n)
  93. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment15'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments15, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  94. end
  95. function showComments16(n)
  96. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment16'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments16, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  97. end
  98. function showComments17(n)
  99. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment17'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments17, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  100. end
  101. function showComments18(n)
  102. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment18'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments18, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  103. end
  104. function showComments19(n)
  105. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment19'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments19, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  106. end
  107. function showComments20(n)
  108. ui.addTextArea(100, "<p align='center'><font color='#505050'><font size='15'><font face='sans-serif'><a href='event:comment20'>Comments</a></p><p align='left'><font color='#505050'><font size='11'>"..comments20, n, 36, 85, 256, 232, 0xffffff, 0xbdbdbd, 1, true)
  109. end
  110. function cafe(n)
  111. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Cafe</b>\n<font size='14'>\nThe café is a place where mice talk about a lot of topics. There are many interesting topic that appear on the café. It is used to advertise things, share your opinions, and just talk with other mice that aren't in your room, and make a topic about what to talk about. The café is very annoying to some people though, some people want it deleted.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  112. end
  113. function transformice(n)
  114. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Transformice ! »</b>\n<font size='14'>\nTransformice is a multiplayer game with a simple game idea of bringing cheese back to the hole. But consists of different minigames.<font color='#2825ba'>\n\nCreated: 2010\nOwners: Tigrounette, Melibellule", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  115. end
  116. function computer(n)
  117. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Computer</b>\n<font size='14'>\nComputers are things that we use to do things easier or to play with. If you just searched this, you are most likely using a computer, if not, an electronic. Computers are used to do math too. They are programmed to have great technology.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  118. end
  119. function fuzzy(n)
  120. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Fuzzyfirsdog#0000</b>\n<font size='14'>\nFuzzyfirsdog is a (noob) map maker in transformice. He is known alot for making planes that use an interesting mechanical combos to fly. Fuzzy also can make (noob) lua codes. In fact, he made this google with lua.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  121. end
  122. function mouse(n)
  123. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Mice</b>\n<font size='14'>\nA mouse, plural mice, is a small rodent characteristically having a pointed snout, small rounded ears, a body-length scaly tail. Transformice mice have some differences and have a 90 tfm-mass.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  124. end
  125. function pokemon(n)
  126. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Pokémon</b><font size='14'>\n\nPokémon is a media franchise managed by The Pokémon Company, a Japanese consortium between Nintendo, Game Freak, and Creatures. A very famous Pokemon is Pikachu. <font color='#2825ba'>\n\nCreated: 1996\nOwners: Satoshi Tajiri, Ken Sugimori", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  127. end
  128. function google(n)
  129. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><font color='#5284d4'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ffa600'>e\n</font></font></font></font></font></font></b></font><font color='#505050'><font size='14'>\nGoogle is a search engine used for widely varying things. This google is a transformice based edition. <font color='#2825ba'>\n\nCreated: 2018\nOwners: Fuzzyfirsdog#0000", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  130. end
  131. function village(n)
  132. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Village/801 Room</b><font size='14'>\n\nThe village/801 room in Transformice, is a place where mice come to relax, play with friends, roleplay, or trade consumables. The village map in transformice is shown as @801 because it represents that Transformice is from Atelier801. Originally village rooms were limited to having to type /room 801, but then they decided to make it called village, and also add it as a room choice as you can see on the rooms list, where you can choose game modes.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  133. end
  134. function worldcup(n)
  135. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b><font color='#FF0000'>France</font> <font color='#a0a0a0'>National</font><font color='#0000FF'> Soccer Team</font></b></font></font></font>\n<font size='14'><font face='calibri'><font color='#505050'>\nFrance won the 2018 World Cup with a final match against Croatia. France won with a score of 4-2 making history for France. France has not won the world cup since 1998.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  136. end
  137. function news(n)
  138. news="<font color='#002EFF'><font face='calibri'><b>FISHING EVENT</b>\n\n<font face='helvetica'></b><font size='14'><font color='#000000'>The fishing event has recently came out and as expected, <i>*#trade</i> rooms are filling up with event traders. From taking a look inside of those rooms, <b>A2</b>, <b>D5</b> and <b>B1</b> seem to be the rarest. From asking people in some transformice rooms, they are happy with an older event being played."
  139. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#000000'><b>Latest News</b><font color='#002EFF'>\n</font></font></font></font><font size='20'><font face='helvetica'>\n"..news, n, 358, 50, 421, 280, 0xffffff, 0xd4d4d4, 1, true)
  140. end
  141. function cake(n)
  142. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Cake Dessert</b><font size='14'>\n\nCake is a form of sweet dessert that is typically baked. In its oldest forms, cakes were modifications of breads, but cakes now cover a wide range of preparations that can be simple or elaborate.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  143. end
  144. function cheese(n)
  145. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Cheese</b><font size='14'>\n\nCheese is the main food that a mouse will eat in transformice or in real life. Cheese increases your mass when you have it on your back usually, do not go in water if you have cheese (and the gravity of the map is 7 or more). Cheese is used to buy clothes, skills, and consumables with cheese coins.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  146. end
  147. function feces(n)
  148. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Feces (poop)</b><font size='14'>\n\nFeces are the solid or semisolid remains of the food that could not be digested in the small intestine. Bacteria in the large intestine further break down the material.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  149. end
  150. function flower(n)
  151. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Flowers</b><font size='14'>\n\nFlowers are a very beautiful plant that can have varying colors to the petals. You can spawn flowers in the map editor too. Flowers are very good decorations and can leave a good scent.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  152. end
  153. function shaman(n)
  154. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><font color='#0ABDD4'><b>Shaman</b></font><font size='14'>\n\nTransformice shamans are magical helpers for mice trying to earn cheese. They have many kinds of cool powers. They even can give mice powers! Although in some minigames the shaman is suppose to do the opposite of helping; in survivor the shaman must try to kill all the mice.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  155. end
  156. function noob(n)
  157. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><font color='#FA0000'><b>Noob</b></font><font size='14'>\n\nA noob is a person who is inexperienced in a particular activity, especially computing or the use of gaming.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  158. end
  159. function human(n)
  160. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#3EA604'><b>Humans (homo sapiens)</b></font><font size='14'>\n\n<font color='#505050'>Homo sapiens is the systematic name used in taxonomy for the only extant human species. The name is Latin for \"wise man\" and was introduced in 1758 by Carl Linnaeus.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  161. end
  162. function science(n)
  163. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#3EA604'><b>Science</b></font><font size='14'>\n\n<font color='#505050'>Science is a systematic enterprise that builds and organizes knowledge in the form of testable explanations and predictions about the universe.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  164. end
  165. function lol(n)
  166. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>LOL Abbreviation</b><font size='14'>\n\nThe abbreviation <i>\"\LOL\"\</i> stands for <i>\"laugh out loud\"</i>. This is used mainly in text to express a lot of laughter. In the past, the phrase was actually short for <i>\"lots of love\"</i>.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  167. end
  168. function lollipop(n)
  169. ui.addTextArea(10, "<font size='20'><font face='calibri'><font color='#505050'><b>Lollipop</b><font size='14'>\n\n\A lollipop is a type of sugar candy usually consisting of hard candy mounted on a stick and intended for sucking or licking. Different informal terms are used in different places, including lolly, sucker, sticky-pop, etc.", n, 558, 50, 221, 280, 0xffffff, 0xd4d4d4, 1, true)
  170. end
  171.  
  172. --
  173.  
  174. ui.addTextArea(15, "", nil, 0, 0, 800, 400, 0xffffff, 0xffffff, 1, true)
  175. function search(n)
  176. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  177. end
  178. function searchDown(n)
  179. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  180. end
  181. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  182.  
  183. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='70'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", nil, 180, 28, 440, 133, 0xffffff, 0xffffff, 1, true)
  184. function moveGoogleLogo(n)
  185. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='30'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, -150, 28, 440, 133, 0xffffff, 0xffffff, 0, true)
  186. end
  187. function normalLogoLocation(n)
  188. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='70'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, 180, 28, 440, 133, 0xffffff, 0xffffff, 1, true)
  189. end
  190. function remove(n)
  191. ui.removeTextArea(0,n)
  192. ui.removeTextArea(1,n)
  193. ui.removeTextArea(10,n)
  194. ui.removeTextArea(100,n)
  195. end
  196.  
  197. function remove2(n)
  198. ui.removeTextArea(11,n)
  199. end
  200. function eventTextAreaCallback(textArea, n, a)
  201. if a=="search" then
  202. normalLogoLocation(n)
  203. search(n)
  204. ui.removeTextArea(11,n)
  205. remove(n)
  206. ui.addPopup(2, 2, "", n, 226, 201, 349, true)
  207. ui.addTextArea(0, "", n, 131, 238, 578, 41, 0xffffff, 0xffffff, 1, true)
  208. ui.addTextArea(1, "", n, 131, 170, 578, 41, 0xffffff, 0xffffff, 1, true)
  209. elseif a=="comment1" then
  210. ui.addPopup(0, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  211. elseif a=="close" then
  212. removeAll(n)
  213. elseif a=="open" then
  214. open(n)
  215. elseif a=="comment2" then
  216. ui.addPopup(1, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  217. elseif a=="comment3" then
  218. ui.addPopup(3, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  219. elseif a=="comment4" then
  220. ui.addPopup(4, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  221. elseif a=="comment5" then
  222. ui.addPopup(5, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  223. elseif a=="comment6" then
  224. ui.addPopup(6, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  225. elseif a=="comment7" then
  226. ui.addPopup(7, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  227. elseif a=="comment8" then
  228. ui.addPopup(8, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  229. elseif a=="comment9" then
  230. ui.addPopup(9, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  231. elseif a=="comment10" then
  232. ui.addPopup(10, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  233. elseif a=="comment11" then
  234. ui.addPopup(11, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  235. elseif a=="comment12" then
  236. ui.addPopup(12, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  237. elseif a=="comment13" then
  238. ui.addPopup(13, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  239. elseif a=="comment14" then
  240. ui.addPopup(14, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  241. elseif a=="comment15" then
  242. ui.addPopup(15, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  243. elseif a=="comment16" then
  244. ui.addPopup(16, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  245. elseif a=="comment17" then
  246. ui.addPopup(17, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  247. elseif a=="comment18" then
  248. ui.addPopup(18, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  249. elseif a=="comment19" then
  250. ui.addPopup(19, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  251. elseif a=="comment20" then
  252. ui.addPopup(20, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  253.  
  254. end
  255. end
  256.  
  257. function searchNotFound(n)
  258. ui.addTextArea(11, "<font size='20'><b><font face='calibri'><font color='#505050'>Search not found...", n, 558, 50, 221, 251, 0xffffff, 0xd4d4d4, 1, true)
  259. end
  260.  
  261. function barrel(n)
  262. if data[n].b==true then
  263. data[n].barrelRoll=data[n].barrelRoll-1
  264. remove2(n)
  265. ui.removeTextArea(17,n)
  266. ui.removeTextArea(16,n)
  267. if data[n].barrelRoll==4 then
  268. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 487, 164, 48, 58, 0xffffff, 0xffffff, 0, true)
  269. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 436, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  270. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 381, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  271. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 317, 164, 64, 81, 0xffffff, 0xffffff, 0, true)
  272. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 262, 164, 75, 80, 0xffffff, 0xffffff, 0, true)
  273. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 225, 164, 68, 88, 0xffffff, 0xffffff, 0, true)
  274.  
  275. end
  276. if data[n].barrelRoll==3 then
  277. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 487, 92, 48, 58, 0xffffff, 0xffffff, 0, true)
  278. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 436, 126, 44, 60, 0xffffff, 0xffffff, 0, true)
  279. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 381, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  280. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 317, 200, 64, 81, 0xffffff, 0xffffff, 0, true)
  281. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 262, 239, 75, 80, 0xffffff, 0xffffff, 0, true)
  282. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 225, 265, 68, 88, 0xffffff, 0xffffff, 0, true)
  283.  
  284. end
  285. if data[n].barrelRoll==6 then
  286. for i=1,6 do
  287. ui.removeTextArea(i,n)
  288. end
  289.  
  290. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, 361, 23, 36, 361, 0xffffff, 0xffffff, 0, true)
  291.  
  292. end
  293. if data[n].barrelRoll==-1 then
  294. for i=1,6 do
  295. ui.removeTextArea(i,n)
  296. end
  297. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 213, 162, 48, 58, 0xffffff, 0xffffff, 0, true)
  298. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 277, 162, 44, 59, 0xffffff, 0xffffff, 0, true)
  299. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 330, 162, 44, 60, 0xffffff, 0xffffff, 0, true)
  300. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 376, 162, 64, 81, 0xffffff, 0xffffff, 0, true)
  301. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 435, 162, 72, 80, 0xffffff, 0xffffff, 0, true)
  302. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 489, 162, 74, 88, 0xffffff, 0xffffff, 0, true)
  303. end
  304. if data[n].barrelRoll==0 then
  305. for i=1,6 do
  306. ui.removeTextArea(i,n)
  307. end
  308.  
  309. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 213, 88, 48, 58, 0xffffff, 0xffffff, 0, true)
  310. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 277, 128, 44, 59, 0xffffff, 0xffffff, 0, true)
  311. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 330, 162, 44, 60, 0xffffff, 0xffffff, 0, true)
  312. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 375, 198, 64, 81, 0xffffff, 0xffffff, 0, true)
  313. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 435, 239, 72, 80, 0xffffff, 0xffffff, 0, true)
  314. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 489, 266, 74, 88, 0xffffff, 0xffffff, 0, true)
  315.  
  316. end
  317. if data[n].barrelRoll==5 then
  318. for i=1,6 do
  319. ui.removeTextArea(i,n)
  320. end
  321.  
  322. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 213, 88, 48, 58, 0xffffff, 0xffffff, 0, true)
  323. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 277, 128, 44, 59, 0xffffff, 0xffffff, 0, true)
  324. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 330, 162, 44, 60, 0xffffff, 0xffffff, 0, true)
  325. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 375, 198, 64, 81, 0xffffff, 0xffffff, 0, true)
  326. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 435, 239, 72, 80, 0xffffff, 0xffffff, 0, true)
  327. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 489, 266, 74, 88, 0xffffff, 0xffffff, 0, true)
  328. end
  329. if data[n].barrelRoll==1 then
  330. for i=1,6 do
  331. ui.removeTextArea(i,n)
  332. end
  333.  
  334. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, 361, 23, 36, 361, 0xffffff, 0xffffff, 0, true)
  335.  
  336. end
  337. if data[n].barrelRoll==8 then
  338. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 487, 164, 48, 58, 0xffffff, 0xffffff, 0, true)
  339. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 436, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  340. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 381, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  341. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 317, 164, 64, 81, 0xffffff, 0xffffff, 0, true)
  342. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 262, 164, 75, 80, 0xffffff, 0xffffff, 0, true)
  343. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 225, 164, 68, 88, 0xffffff, 0xffffff, 0, true)
  344.  
  345. end
  346. if data[n].barrelRoll==7 then
  347. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", n, 487, 92, 48, 58, 0xffffff, 0xffffff, 0, true)
  348. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", n, 436, 126, 44, 60, 0xffffff, 0xffffff, 0, true)
  349. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", n, 381, 164, 44, 60, 0xffffff, 0xffffff, 0, true)
  350. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", n, 317, 200, 64, 81, 0xffffff, 0xffffff, 0, true)
  351. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", n, 262, 239, 75, 80, 0xffffff, 0xffffff, 0, true)
  352. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", n, 225, 265, 68, 88, 0xffffff, 0xffffff, 0, true)
  353.  
  354. end
  355. if data[n].barrelRoll==-4 then
  356. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  357.  
  358. ui.addTextArea(17, "<p align='center'><font color='#5284d4'><font size='70'><font face='helvetica'>G<font color='#ff0026'>o<font color='#ffa600'>o<font color='#5284d4'>g<font color='#3fbf28'>l<font color='#ff0026'>e", n, 180, 28, 440, 133, 0xffffff, 0xffffff, 1, true)
  359. ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
  360.  
  361.  
  362. data[n].b=false
  363. for i=1,6 do
  364. ui.removeTextArea(i,n)
  365. end
  366. end
  367. end
  368. end
  369.  
  370. function eventPopupAnswer(popUp,n,a)
  371.  
  372. if popUp==0 and not a:match("<") and not a:match(">") then
  373. comments1=n..": "..a.."<br>"..comments1
  374. showComments1(n)
  375. end
  376. if popUp==1 and not a:match("<") and not a:match(">") then
  377. comments2=n..": "..a.."<br>"..comments2
  378. showComments2(n)
  379. end
  380. if popUp==3 and not a:match("<") and not a:match(">") then
  381. comments3=n..": "..a.."<br>"..comments3
  382. showComments3(n)
  383. end
  384. if popUp==4 and not a:match("<") and not a:match(">") then
  385. comments4=n..": "..a.."<br>"..comments4
  386. showComments4(n)
  387. end
  388. if popUp==5 and not a:match("<") and not a:match(">") then
  389. comments5=n..": "..a.."<br>"..comments5
  390. showComments5(n)
  391. end
  392. if popUp==6 and not a:match("<") and not a:match(">") then
  393. comments6=n..": "..a.."<br>"..comments6
  394. showComments6(n)
  395. end
  396. if popUp==7 and not a:match("<") and not a:match(">") then
  397. comments7=n..": "..a.."<br>"..comments7
  398. showComments7(n)
  399. end
  400. if popUp==8 and not a:match("<") and not a:match(">") then
  401. comments8=n..": "..a.."<br>"..comments8
  402. showComments8(n)
  403. end
  404. if popUp==9 and not a:match("<") and not a:match(">") then
  405. comments9=n..": "..a.."<br>"..comments9
  406. showComments9(n)
  407. end
  408. if popUp==10 and not a:match("<") and not a:match(">") then
  409. comments10=n..": "..a.."<br>"..comments10
  410. showComments10(n)
  411. end
  412. if popUp==11 and not a:match("<") and not a:match(">") then
  413. comments11=n..": "..a.."<br>"..comments11
  414. showComments11(n)
  415. end
  416. if popUp==12 and not a:match("<") and not a:match(">") then
  417. comments12=n..": "..a.."<br>"..comments12
  418. showComments12(n)
  419. end
  420. if popUp==13 and not a:match("<") and not a:match(">") then
  421. comments13=n..": "..a.."<br>"..comments13
  422. showComments13(n)
  423. end
  424. if popUp==14 and not a:match("<") and not a:match(">") then
  425. comments14=n..": "..a.."<br>"..comments14
  426. showComments14(n)
  427. end
  428. if popUp==15 and not a:match("<") and not a:match(">") then
  429. comments15=n..": "..a.."<br>"..comments15
  430. showComments15(n)
  431. end
  432. if popUp==16 and not a:match("<") and not a:match(">") then
  433. comments16=n..": "..a.."<br>"..comments16
  434. showComments16(n)
  435. end
  436. if popUp==17 and not a:match("<") and not a:match(">") then
  437. comments17=n..": "..a.."<br>"..comments17
  438. showComments17(n)
  439. end
  440. if popUp==18 and not a:match("<") and not a:match(">") then
  441. comments18=n..": "..a.."<br>"..comments18
  442. showComments18(n)
  443. end
  444. if popUp==19 and not a:match("<") and not a:match(">") then
  445. comments19=n..": "..a.."<br>"..comments19
  446. showComments19(n)
  447. end
  448. if popUp==20 and not a:match("<") and not a:match(">") then
  449. comments20=n..": "..a.."<br>"..comments20
  450. showComments20(n)
  451. end
  452. if popUp==2 then
  453. moveGoogleLogo(n)
  454. searchNotFound(n)
  455. remove(n)
  456. a=a:lower()
  457. --
  458. if a:match("tfm") or a:match("transformic") then
  459. showComments1(n)
  460. remove2(n)
  461. transformice(n)
  462. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  463.  
  464. end
  465. if a:match("pokemon") or a:match("pokémon") then
  466. showComments2(n)
  467. remove2(n)
  468. pokemon(n)
  469. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  470. end
  471. if a:find("google") then
  472. showComments3(n)
  473. remove2(n)
  474. google(n)
  475. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  476. end
  477. if (a:find("mice") or a:match("mouse")) and not (a:find("transformice")) then
  478. showComments4(n)
  479. remove2(n)
  480. mouse(n)
  481. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  482.  
  483. end
  484. if a:find("801") or a:match("village") then
  485. showComments5(n)
  486. remove2(n)
  487. village(n)
  488. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  489.  
  490. end
  491. if a:find("computer") then
  492. showComments6(n)
  493. remove2(n)
  494. computer(n)
  495. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  496. end
  497. if a:find("cafe") or a:match("café") then
  498. showComments7(n)
  499. remove2(n)
  500. cafe(n)
  501. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  502. end
  503. if a:find("fuzzy") then
  504. showComments8(n)
  505. remove2(n)
  506. fuzzy(n)
  507. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  508. end
  509. if a:find("news") then
  510. showComments9(n)
  511. remove2(n)
  512. news(n)
  513. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  514. end
  515. if a:find("world c") or a:find("wc") or a:find("worldc") then
  516. showComments10(n)
  517. remove2(n)
  518. worldcup(n)
  519. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  520. end
  521. if a:find("cake") then
  522. showComments11(n)
  523. remove2(n)
  524. cake(n)
  525. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  526. end
  527. if a:find("cheese") then
  528. showComments12(n)
  529. remove2(n)
  530. cheese(n)
  531. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  532. end
  533. if a:find("feces") or a:find("poop") or a:find("manure") then
  534. showComments13(n)
  535. remove2(n)
  536. feces(n)
  537. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  538. end
  539. if a:find("flower") then
  540. showComments14(n)
  541. remove2(n)
  542. flower(n)
  543. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  544. end
  545. if a:find("shama") then
  546. showComments15(n)
  547. remove2(n)
  548. shaman(n)
  549. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  550. end
  551. if a:find("noob") or a:find("lixo") then
  552. showComments16(n)
  553. remove2(n)
  554. noob(n)
  555. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  556. end
  557. if a:find("human") or a:find("sapien") or a:find("person") then
  558. showComments17(n)
  559. remove2(n)
  560. human(n)
  561. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  562. end
  563. if a:find("scienc") then
  564. showComments18(n)
  565. remove2(n)
  566. science(n)
  567. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  568. end
  569. if a:find("lol") or (a:find("lo") and a:find("ol")) then
  570. showComments19(n)
  571. remove2(n)
  572. lol(n)
  573. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  574. end
  575. if a:find("lolipop") or (a:find("lol") and a:find("op")) then
  576. showComments20(n)
  577. remove2(n)
  578. lollipop(n)
  579. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  580. end
  581. if a:find("barrel") then
  582. data[n].b=true
  583. data[n].barrelRoll=9
  584. data[n].times=-1
  585. end
  586. --
  587. searchDown(n)
  588. end
  589. ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
  590.  
  591.  
  592. end
  593.  
  594.  
  595.  
  596. function eventLoop()
  597. for n in next, tfm.get.room.playerList do
  598. barrel(n)
  599. end
  600. end
  601. ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", nil, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement