Advertisement
Boeing747-8

Untitled

Jul 17th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.75 KB | None | 0 0
  1.  
  2. data={}
  3. for n,player in pairs(tfm.get.room.playerList) do
  4. data[n]={barrelRoll=0,b=false,times=0}
  5. end
  6.  
  7. function eventNewPlayer(n)
  8. data[n]={barrelRoll=0,b=false}
  9. end
  10. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  11.  
  12. comments1=""
  13. comments2=""
  14. comments3=""
  15. comments4=""
  16. comments5=""
  17. comments6=""
  18. comments7=""
  19. comments8=""
  20. comments9=""
  21. comments10=""
  22. comments11=""
  23. comments12=""
  24. comments13=""
  25. comments14=""
  26. comments15=""
  27. comments16=""
  28. comments17=""
  29. comments18=""
  30. comments19=""
  31. comments20=""
  32. function showComments1(n)
  33. 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)
  34. end
  35. function showComments2(n)
  36. 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)
  37. end
  38. function showComments3(n)
  39. 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)
  40. end
  41. function showComments4(n)
  42. 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)
  43. end
  44. function showComments5(n)
  45. 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)
  46. end
  47. function showComments6(n)
  48. 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)
  49. end
  50. function showComments7(n)
  51. 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)
  52. end
  53. function showComments8(n)
  54. 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)
  55. end
  56. function showComments9(n)
  57. 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)
  58. end
  59. function showComments10(n)
  60. 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)
  61. end
  62. function showComments11(n)
  63. 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)
  64. end
  65. function showComments12(n)
  66. 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)
  67. end
  68. function showComments13(n)
  69. 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)
  70. end
  71. function showComments14(n)
  72. 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)
  73. end
  74. function showComments15(n)
  75. 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)
  76. end
  77. function showComments16(n)
  78. 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)
  79. end
  80. function showComments17(n)
  81. 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)
  82. end
  83. function showComments18(n)
  84. 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)
  85. end
  86. function showComments19(n)
  87. 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)
  88. end
  89. function showComments20(n)
  90. 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)
  91. end
  92. function cafe(n)
  93. 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)
  94. end
  95. function transformice(n)
  96. 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)
  97. end
  98. function computer(n)
  99. 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)
  100. end
  101. function fuzzy(n)
  102. 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)
  103. end
  104. function mouse(n)
  105. 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)
  106. end
  107. function pokemon(n)
  108. 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)
  109. end
  110. function google(n)
  111. 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)
  112. end
  113. function village(n)
  114. 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)
  115. end
  116. function worldcup(n)
  117. 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)
  118. end
  119. function news(n)
  120. 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."
  121. 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)
  122. end
  123. function cake(n)
  124. 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)
  125. end
  126. function cheese(n)
  127. ui.addTextArea(10, "<font size='20'><b><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)
  128. end
  129. function feces(n)
  130. 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)
  131. end
  132. function flower(n)
  133. 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)
  134. end
  135. function shaman(n)
  136. 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)
  137. end
  138. function noob(n)
  139. 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)
  140. end
  141. function human(n)
  142. 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)
  143. end
  144. function science(n)
  145. 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)
  146. end
  147. function lol(n)
  148. 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)
  149. end
  150. function lollipop(n)
  151. 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)
  152. end
  153.  
  154. --
  155.  
  156. ui.addTextArea(15, "", nil, 0, 0, 800, 400, 0xffffff, 0xffffff, 1, true)
  157. function search(n)
  158. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  159. end
  160. function searchDown(n)
  161. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  162. end
  163. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", nil, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  164.  
  165. 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)
  166. function moveGoogleLogo(n)
  167. 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)
  168. end
  169. function normalLogoLocation(n)
  170. 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)
  171. end
  172. function remove(n)
  173. ui.removeTextArea(0,n)
  174. ui.removeTextArea(1,n)
  175. ui.removeTextArea(10,n)
  176. ui.removeTextArea(100,n)
  177. end
  178.  
  179. function remove2(n)
  180. ui.removeTextArea(11,n)
  181. end
  182. function eventTextAreaCallback(textArea, n, a)
  183. if a=="search" then
  184. normalLogoLocation(n)
  185. search(n)
  186. ui.removeTextArea(11,n)
  187. remove(n)
  188. ui.addPopup(2, 2, "", n, 226, 201, 349, true)
  189. ui.addTextArea(0, "", n, 131, 238, 578, 41, 0xffffff, 0xffffff, 1, true)
  190. ui.addTextArea(1, "", n, 131, 170, 578, 41, 0xffffff, 0xffffff, 1, true)
  191. elseif a=="comment1" then
  192. ui.addPopup(0, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  193. elseif a=="comment2" then
  194. ui.addPopup(1, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  195. elseif a=="comment3" then
  196. ui.addPopup(3, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  197. elseif a=="comment4" then
  198. ui.addPopup(4, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  199. elseif a=="comment5" then
  200. ui.addPopup(5, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  201. elseif a=="comment6" then
  202. ui.addPopup(6, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  203. elseif a=="comment7" then
  204. ui.addPopup(7, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  205. elseif a=="comment8" then
  206. ui.addPopup(8, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  207. elseif a=="comment9" then
  208. ui.addPopup(9, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  209. elseif a=="comment10" then
  210. ui.addPopup(10, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  211. elseif a=="comment11" then
  212. ui.addPopup(11, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  213. elseif a=="comment12" then
  214. ui.addPopup(12, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  215. elseif a=="comment13" then
  216. ui.addPopup(13, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  217. elseif a=="comment14" then
  218. ui.addPopup(14, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  219. elseif a=="comment15" then
  220. ui.addPopup(15, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  221. elseif a=="comment16" then
  222. ui.addPopup(16, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  223. elseif a=="comment17" then
  224. ui.addPopup(17, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  225. elseif a=="comment18" then
  226. ui.addPopup(18, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  227. elseif a=="comment19" then
  228. ui.addPopup(19, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  229. elseif a=="comment20" then
  230. ui.addPopup(20, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
  231.  
  232. end
  233. end
  234.  
  235. function searchNotFound(n)
  236. 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)
  237. end
  238.  
  239. function barrel(n)
  240. if data[n].b==true then
  241. data[n].barrelRoll=data[n].barrelRoll-1
  242. remove2(n)
  243. ui.removeTextArea(17,n)
  244. ui.removeTextArea(16,n)
  245. if data[n].barrelRoll==4 then
  246. 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)
  247. 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)
  248. 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)
  249. 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)
  250. 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)
  251. 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)
  252.  
  253. end
  254. if data[n].barrelRoll==3 then
  255. 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)
  256. 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)
  257. 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)
  258. 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)
  259. 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)
  260. 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)
  261.  
  262. end
  263. if data[n].barrelRoll==6 then
  264. for i=1,6 do
  265. ui.removeTextArea(i,n)
  266. end
  267.  
  268. 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)
  269.  
  270. end
  271. if data[n].barrelRoll==-1 then
  272. for i=1,6 do
  273. ui.removeTextArea(i,n)
  274. end
  275. ui.addTextArea(1, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'>G", nil, 213, 162, 48, 58, 0xffffff, 0xffffff, 0, true)
  276. ui.addTextArea(2, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>o", nil, 277, 162, 44, 59, 0xffffff, 0xffffff, 0, true)
  277. ui.addTextArea(3, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ffa600'>o", nil, 330, 162, 44, 60, 0xffffff, 0xffffff, 0, true)
  278. ui.addTextArea(4, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#5284d4'>g", nil, 376, 162, 64, 81, 0xffffff, 0xffffff, 0, true)
  279. ui.addTextArea(5, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#3fbf28'>l", nil, 435, 162, 72, 80, 0xffffff, 0xffffff, 0, true)
  280. ui.addTextArea(6, "<p align='center'><font color='#5284d4'><font size='50'><font face='helvetica'><font color='#ff0026'>e", nil, 489, 162, 74, 88, 0xffffff, 0xffffff, 0, true)
  281. end
  282. if data[n].barrelRoll==0 then
  283. for i=1,6 do
  284. ui.removeTextArea(i,n)
  285. end
  286.  
  287. 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)
  288. 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)
  289. 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)
  290. 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)
  291. 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)
  292. 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)
  293.  
  294. end
  295. if data[n].barrelRoll==5 then
  296. for i=1,6 do
  297. ui.removeTextArea(i,n)
  298. end
  299.  
  300. 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)
  301. 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)
  302. 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)
  303. 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)
  304. 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)
  305. 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)
  306. end
  307. if data[n].barrelRoll==1 then
  308. for i=1,6 do
  309. ui.removeTextArea(i,n)
  310. end
  311.  
  312. 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)
  313.  
  314. end
  315. if data[n].barrelRoll==8 then
  316. 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)
  317. 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)
  318. 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)
  319. 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)
  320. 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)
  321. 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)
  322.  
  323. end
  324. if data[n].barrelRoll==7 then
  325. 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)
  326. 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)
  327. 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)
  328. 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)
  329. 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)
  330. 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)
  331.  
  332. end
  333. if data[n].barrelRoll==-4 then
  334. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", nil, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  335.  
  336. 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)
  337. data[n].b=false
  338. for i=1,6 do
  339. ui.removeTextArea(i,n)
  340. end
  341. end
  342. end
  343. end
  344.  
  345. function eventPopupAnswer(popUp,n,a)
  346.  
  347. if popUp==0 and not a:match("<") and not a:match(">") then
  348. comments1=n..": "..a.."<br>"..comments1
  349. showComments1(n)
  350. end
  351. if popUp==1 and not a:match("<") and not a:match(">") then
  352. comments2=n..": "..a.."<br>"..comments2
  353. showComments2(n)
  354. end
  355. if popUp==3 and not a:match("<") and not a:match(">") then
  356. comments3=n..": "..a.."<br>"..comments3
  357. showComments3(n)
  358. end
  359. if popUp==4 and not a:match("<") and not a:match(">") then
  360. comments4=n..": "..a.."<br>"..comments4
  361. showComments4(n)
  362. end
  363. if popUp==5 and not a:match("<") and not a:match(">") then
  364. comments5=n..": "..a.."<br>"..comments5
  365. showComments5(n)
  366. end
  367. if popUp==6 and not a:match("<") and not a:match(">") then
  368. comments6=n..": "..a.."<br>"..comments6
  369. showComments6(n)
  370. end
  371. if popUp==7 and not a:match("<") and not a:match(">") then
  372. comments7=n..": "..a.."<br>"..comments7
  373. showComments7(n)
  374. end
  375. if popUp==8 and not a:match("<") and not a:match(">") then
  376. comments8=n..": "..a.."<br>"..comments8
  377. showComments8(n)
  378. end
  379. if popUp==9 and not a:match("<") and not a:match(">") then
  380. comments9=n..": "..a.."<br>"..comments9
  381. showComments9(n)
  382. end
  383. if popUp==10 and not a:match("<") and not a:match(">") then
  384. comments10=n..": "..a.."<br>"..comments10
  385. showComments10(n)
  386. end
  387. if popUp==11 and not a:match("<") and not a:match(">") then
  388. comments11=n..": "..a.."<br>"..comments11
  389. showComments11(n)
  390. end
  391. if popUp==12 and not a:match("<") and not a:match(">") then
  392. comments12=n..": "..a.."<br>"..comments12
  393. showComments12(n)
  394. end
  395. if popUp==13 and not a:match("<") and not a:match(">") then
  396. comments13=n..": "..a.."<br>"..comments13
  397. showComments13(n)
  398. end
  399. if popUp==14 and not a:match("<") and not a:match(">") then
  400. comments14=n..": "..a.."<br>"..comments14
  401. showComments14(n)
  402. end
  403. if popUp==15 and not a:match("<") and not a:match(">") then
  404. comments15=n..": "..a.."<br>"..comments15
  405. showComments15(n)
  406. end
  407. if popUp==16 and not a:match("<") and not a:match(">") then
  408. comments16=n..": "..a.."<br>"..comments16
  409. showComments16(n)
  410. end
  411. if popUp==17 and not a:match("<") and not a:match(">") then
  412. comments17=n..": "..a.."<br>"..comments17
  413. showComments17(n)
  414. end
  415. if popUp==18 and not a:match("<") and not a:match(">") then
  416. comments18=n..": "..a.."<br>"..comments18
  417. showComments18(n)
  418. end
  419. if popUp==19 and not a:match("<") and not a:match(">") then
  420. comments19=n..": "..a.."<br>"..comments19
  421. showComments19(n)
  422. end
  423. if popUp==20 and not a:match("<") and not a:match(">") then
  424. comments20=n..": "..a.."<br>"..comments20
  425. showComments20(n)
  426. end
  427. if popUp==2 then
  428. moveGoogleLogo(n)
  429. searchNotFound(n)
  430. remove(n)
  431. a=a:lower()
  432. --
  433. if a:match("tfm") or a:match("transformice") then
  434. showComments1(n)
  435. remove2(n)
  436. transformice(n)
  437. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  438.  
  439. end
  440. if a:match("pokemon") or a:match("pokémon") then
  441. showComments2(n)
  442. remove2(n)
  443. pokemon(n)
  444. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  445. end
  446. if a:find("google") then
  447. showComments3(n)
  448. remove2(n)
  449. google(n)
  450. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  451. end
  452. if a:find("mice") or a:match("mouse") then
  453. showComments4(n)
  454. remove2(n)
  455. mouse(n)
  456. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  457.  
  458. end
  459. if a:find("801") or a:match("village") then
  460. showComments5(n)
  461. remove2(n)
  462. village(n)
  463. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  464.  
  465. end
  466. if a:find("computer") then
  467. showComments6(n)
  468. remove2(n)
  469. computer(n)
  470. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  471. end
  472. if a:find("cafe") or a:match("café") then
  473. showComments7(n)
  474. remove2(n)
  475. cafe(n)
  476. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  477. end
  478. if a:find("fuzzy") then
  479. showComments8(n)
  480. remove2(n)
  481. fuzzy(n)
  482. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  483. end
  484. if a:find("news") then
  485. showComments9(n)
  486. remove2(n)
  487. news(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. end
  490. if a:find("world c") or a:find("wc") or a:find("worldc") then
  491. showComments10(n)
  492. remove2(n)
  493. worldcup(n)
  494. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  495. end
  496. if a:find("cake") then
  497. showComments11(n)
  498. remove2(n)
  499. cake(n)
  500. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  501. end
  502. if a:find("cheese") then
  503. showComments12(n)
  504. remove2(n)
  505. cheese(n)
  506. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  507. end
  508. if a:find("feces") or a:find("poop") or a:find("manure") then
  509. showComments13(n)
  510. remove2(n)
  511. feces(n)
  512. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  513. end
  514. if a:find("flower") then
  515. showComments14(n)
  516. remove2(n)
  517. flower(n)
  518. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  519. end
  520. if a:find("shama") then
  521. showComments15(n)
  522. remove2(n)
  523. shaman(n)
  524. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  525. end
  526. if a:find("noob") or a:find("lixo") then
  527. showComments16(n)
  528. remove2(n)
  529. noob(n)
  530. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  531. end
  532. if a:find("human") or a:find("sapien") or a:find("person") then
  533. showComments17(n)
  534. remove2(n)
  535. human(n)
  536. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  537. end
  538. if a:find("scienc") then
  539. showComments18(n)
  540. remove2(n)
  541. science(n)
  542. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  543. end
  544. if a:find("lol") or (a:find("lo") and a:find("ol")) then
  545. showComments19(n)
  546. remove2(n)
  547. lol(n)
  548. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  549. end
  550. if a:find("lolipop") or (a:find("lol") and a:find("op")) then
  551. showComments20(n)
  552. remove2(n)
  553. lollipop(n)
  554. ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
  555. end
  556. if a:find("barrel") then
  557. data[n].b=true
  558. data[n].barrelRoll=9
  559. data[n].times=-1
  560. end
  561. --
  562. searchDown(n)
  563. end
  564.  
  565.  
  566. end
  567.  
  568.  
  569.  
  570. function eventLoop()
  571. for n in next, tfm.get.room.playerList do
  572. barrel(n)
  573. end
  574. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement