Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function removeAll(n)
- for i=0,900 do
- ui.removeTextArea(i,n)
- end
- 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)
- end
- function open(n)
- ui.addTextArea(15, "", n, 0, 0, 800, 400, 0xffffff, 0xffffff, 1, true)
- ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- 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)
- end
- data={}
- for n,player in pairs(tfm.get.room.playerList) do
- data[n]={barrelRoll=0,b=false,times=0}
- end
- function eventNewPlayer(n)
- 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)
- data[n]={barrelRoll=0,b=false}
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- comments1=""
- comments2=""
- comments3=""
- comments4=""
- comments5=""
- comments6=""
- comments7=""
- comments8=""
- comments9=""
- comments10=""
- comments11=""
- comments12=""
- comments13=""
- comments14=""
- comments15=""
- comments16=""
- comments17=""
- comments18=""
- comments19=""
- comments20=""
- function showComments1(n)
- 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)
- end
- function showComments2(n)
- 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)
- end
- function showComments3(n)
- 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)
- end
- function showComments4(n)
- 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)
- end
- function showComments5(n)
- 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)
- end
- function showComments6(n)
- 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)
- end
- function showComments7(n)
- 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)
- end
- function showComments8(n)
- 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)
- end
- function showComments9(n)
- 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)
- end
- function showComments10(n)
- 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)
- end
- function showComments11(n)
- 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)
- end
- function showComments12(n)
- 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)
- end
- function showComments13(n)
- 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)
- end
- function showComments14(n)
- 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)
- end
- function showComments15(n)
- 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)
- end
- function showComments16(n)
- 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)
- end
- function showComments17(n)
- 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)
- end
- function showComments18(n)
- 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)
- end
- function showComments19(n)
- 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)
- end
- function showComments20(n)
- 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)
- end
- function cafe(n)
- 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)
- end
- function transformice(n)
- 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)
- end
- function computer(n)
- 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)
- end
- function fuzzy(n)
- 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)
- end
- function mouse(n)
- 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)
- end
- function pokemon(n)
- 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)
- end
- function google(n)
- 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)
- end
- function village(n)
- 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)
- end
- function worldcup(n)
- 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)
- end
- function news(n)
- 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."
- 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)
- end
- function cake(n)
- 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)
- end
- function cheese(n)
- 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)
- end
- function feces(n)
- 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)
- end
- function flower(n)
- 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)
- end
- function shaman(n)
- 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)
- end
- function noob(n)
- 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)
- end
- function human(n)
- 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)
- end
- function science(n)
- 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)
- end
- function lol(n)
- 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)
- end
- function lollipop(n)
- 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)
- end
- --
- ui.addTextArea(15, "", nil, 0, 0, 800, 400, 0xffffff, 0xffffff, 1, true)
- function search(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- function searchDown(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- 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)
- function moveGoogleLogo(n)
- 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)
- end
- function normalLogoLocation(n)
- 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)
- end
- function remove(n)
- ui.removeTextArea(0,n)
- ui.removeTextArea(1,n)
- ui.removeTextArea(10,n)
- ui.removeTextArea(100,n)
- end
- function remove2(n)
- ui.removeTextArea(11,n)
- end
- function eventTextAreaCallback(textArea, n, a)
- if a=="search" then
- normalLogoLocation(n)
- search(n)
- ui.removeTextArea(11,n)
- remove(n)
- ui.addPopup(2, 2, "", n, 226, 201, 349, true)
- ui.addTextArea(0, "", n, 131, 238, 578, 41, 0xffffff, 0xffffff, 1, true)
- ui.addTextArea(1, "", n, 131, 170, 578, 41, 0xffffff, 0xffffff, 1, true)
- elseif a=="comment1" then
- ui.addPopup(0, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="close" then
- removeAll(n)
- elseif a=="open" then
- open(n)
- elseif a=="comment2" then
- ui.addPopup(1, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment3" then
- ui.addPopup(3, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment4" then
- ui.addPopup(4, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment5" then
- ui.addPopup(5, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment6" then
- ui.addPopup(6, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment7" then
- ui.addPopup(7, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment8" then
- ui.addPopup(8, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment9" then
- ui.addPopup(9, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment10" then
- ui.addPopup(10, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment11" then
- ui.addPopup(11, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment12" then
- ui.addPopup(12, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment13" then
- ui.addPopup(13, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment14" then
- ui.addPopup(14, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment15" then
- ui.addPopup(15, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment16" then
- ui.addPopup(16, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment17" then
- ui.addPopup(17, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment18" then
- ui.addPopup(18, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment19" then
- ui.addPopup(19, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- elseif a=="comment20" then
- ui.addPopup(20, 2, "<p align='center'><font color='#B9B9B9'>Comment:", n, 61, 254, 200, true)
- end
- end
- function searchNotFound(n)
- 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)
- end
- function barrel(n)
- if data[n].b==true then
- data[n].barrelRoll=data[n].barrelRoll-1
- remove2(n)
- ui.removeTextArea(17,n)
- ui.removeTextArea(16,n)
- if data[n].barrelRoll==4 then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==3 then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==6 then
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- 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)
- end
- if data[n].barrelRoll==-1 then
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==0 then
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==5 then
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==1 then
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- 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)
- end
- if data[n].barrelRoll==8 then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==7 then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- if data[n].barrelRoll==-4 then
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 226, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- 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)
- ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
- data[n].b=false
- for i=1,6 do
- ui.removeTextArea(i,n)
- end
- end
- end
- end
- function eventPopupAnswer(popUp,n,a)
- if popUp==0 and not a:match("<") and not a:match(">") then
- comments1=n..": "..a.."<br>"..comments1
- showComments1(n)
- end
- if popUp==1 and not a:match("<") and not a:match(">") then
- comments2=n..": "..a.."<br>"..comments2
- showComments2(n)
- end
- if popUp==3 and not a:match("<") and not a:match(">") then
- comments3=n..": "..a.."<br>"..comments3
- showComments3(n)
- end
- if popUp==4 and not a:match("<") and not a:match(">") then
- comments4=n..": "..a.."<br>"..comments4
- showComments4(n)
- end
- if popUp==5 and not a:match("<") and not a:match(">") then
- comments5=n..": "..a.."<br>"..comments5
- showComments5(n)
- end
- if popUp==6 and not a:match("<") and not a:match(">") then
- comments6=n..": "..a.."<br>"..comments6
- showComments6(n)
- end
- if popUp==7 and not a:match("<") and not a:match(">") then
- comments7=n..": "..a.."<br>"..comments7
- showComments7(n)
- end
- if popUp==8 and not a:match("<") and not a:match(">") then
- comments8=n..": "..a.."<br>"..comments8
- showComments8(n)
- end
- if popUp==9 and not a:match("<") and not a:match(">") then
- comments9=n..": "..a.."<br>"..comments9
- showComments9(n)
- end
- if popUp==10 and not a:match("<") and not a:match(">") then
- comments10=n..": "..a.."<br>"..comments10
- showComments10(n)
- end
- if popUp==11 and not a:match("<") and not a:match(">") then
- comments11=n..": "..a.."<br>"..comments11
- showComments11(n)
- end
- if popUp==12 and not a:match("<") and not a:match(">") then
- comments12=n..": "..a.."<br>"..comments12
- showComments12(n)
- end
- if popUp==13 and not a:match("<") and not a:match(">") then
- comments13=n..": "..a.."<br>"..comments13
- showComments13(n)
- end
- if popUp==14 and not a:match("<") and not a:match(">") then
- comments14=n..": "..a.."<br>"..comments14
- showComments14(n)
- end
- if popUp==15 and not a:match("<") and not a:match(">") then
- comments15=n..": "..a.."<br>"..comments15
- showComments15(n)
- end
- if popUp==16 and not a:match("<") and not a:match(">") then
- comments16=n..": "..a.."<br>"..comments16
- showComments16(n)
- end
- if popUp==17 and not a:match("<") and not a:match(">") then
- comments17=n..": "..a.."<br>"..comments17
- showComments17(n)
- end
- if popUp==18 and not a:match("<") and not a:match(">") then
- comments18=n..": "..a.."<br>"..comments18
- showComments18(n)
- end
- if popUp==19 and not a:match("<") and not a:match(">") then
- comments19=n..": "..a.."<br>"..comments19
- showComments19(n)
- end
- if popUp==20 and not a:match("<") and not a:match(">") then
- comments20=n..": "..a.."<br>"..comments20
- showComments20(n)
- end
- if popUp==2 then
- moveGoogleLogo(n)
- searchNotFound(n)
- remove(n)
- a=a:lower()
- --
- if a:match("tfm") or a:match("transformic") then
- showComments1(n)
- remove2(n)
- transformice(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:match("pokemon") or a:match("pokémon") then
- showComments2(n)
- remove2(n)
- pokemon(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("google") then
- showComments3(n)
- remove2(n)
- google(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if (a:find("mice") or a:match("mouse")) and not (a:find("transformice")) then
- showComments4(n)
- remove2(n)
- mouse(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("801") or a:match("village") then
- showComments5(n)
- remove2(n)
- village(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("computer") then
- showComments6(n)
- remove2(n)
- computer(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("cafe") or a:match("café") then
- showComments7(n)
- remove2(n)
- cafe(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("fuzzy") then
- showComments8(n)
- remove2(n)
- fuzzy(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("news") then
- showComments9(n)
- remove2(n)
- news(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("world c") or a:find("wc") or a:find("worldc") then
- showComments10(n)
- remove2(n)
- worldcup(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("cake") then
- showComments11(n)
- remove2(n)
- cake(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("cheese") then
- showComments12(n)
- remove2(n)
- cheese(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("feces") or a:find("poop") or a:find("manure") then
- showComments13(n)
- remove2(n)
- feces(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("flower") then
- showComments14(n)
- remove2(n)
- flower(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("shama") then
- showComments15(n)
- remove2(n)
- shaman(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("noob") or a:find("lixo") then
- showComments16(n)
- remove2(n)
- noob(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("human") or a:find("sapien") or a:find("person") then
- showComments17(n)
- remove2(n)
- human(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("scienc") then
- showComments18(n)
- remove2(n)
- science(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("lol") or (a:find("lo") and a:find("ol")) then
- showComments19(n)
- remove2(n)
- lol(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("lolipop") or (a:find("lol") and a:find("op")) then
- showComments20(n)
- remove2(n)
- lollipop(n)
- ui.addTextArea(16, "<font color='#909090'><a href='event:search'><font size='13'>Search", n, 235, 356, 330, 23, 0xf2f2f2, 0xd6d6d6, 1, true)
- end
- if a:find("barrel") then
- data[n].b=true
- data[n].barrelRoll=9
- data[n].times=-1
- end
- --
- searchDown(n)
- end
- ui.addTextArea(99, "<p align='center'><b><font size='10'><a href='event:close'>X", n, 773, 370, 20, 20, 0xab0000, 0xab0000, 1, true)
- end
- function eventLoop()
- for n in next, tfm.get.room.playerList do
- barrel(n)
- end
- end
- 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