Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- comments1=""
- comments2=""
- comments3=""
- comments4=""
- comments5=""
- comments6=""
- comments7=""
- comments8=""
- comments9=""
- comments10=""
- comments11=""
- comments12=""
- comments13=""
- comments14=""
- comments15=""
- 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 cafe(n)
- ui.addTextArea(10, "<font size='20'><b><font face='calibri'><font color='#505050'>Cafe\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 tfm(n)
- ui.addTextArea(10, "<font size='20'><b><font face='calibri'><font color='#505050'>Transformice ! »\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'><b><font face='calibri'><font color='#505050'>Computer\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'><b><font face='calibri'><font color='#505050'>Fuzzyfirsdog#0000\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'><b><font face='calibri'><font color='#505050'>Mice\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'><b><font face='calibri'><font color='#505050'>Pokémon<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'><b><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'><b><font face='calibri'><font color='#505050'>Village/801 Room<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'><b><font face='calibri'><font color='#505050'><font color='#FF0000'>France <font color='#a0a0a0'>National<font color='#0000FF'> Soccer Team</font></font></font>\n<font size='14'>\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'><b><font face='calibri'><font color='#505050'>Cake Dessert<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'><b><font face='calibri'><font color='#505050'>Cheese<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'><b><font face='calibri'><font color='#505050'>Feces (poop)<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'><b><font face='calibri'><font color='#505050'>Flowers<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
- --
- 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", nil, 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=="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)
- 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 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==2 then
- moveGoogleLogo(n)
- searchNotFound(n)
- remove(n)
- a=a:lower()
- --
- if a:match("tfm") or a:match("transformice") then
- showComments1(n)
- remove2(n)
- tfm(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") 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
- --
- searchDown(n)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement