Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version = 0.1
- cagnotte = {}
- tfm.exec.setUIMapName("<J><b><i>MiceBoyard</b></i>") -- Nom du script (map)
- chef = "Manacer"
- enjeu = {}
- ui.addPopup(1,0,"<p align='center'><font size='22'><b><font face='Time Sans MS'>Bienvenue dans<br><br>*------ <font color='#86ED89'>M</font><font color='#95957C'>i</font><font color='#F75F5F'>c</font><font color='#F75FF7'>e</font><font color='#B55FF7'>B</font><font color='#F7CF5F'>o</font><font color='#5FC0F7'>y</font><font color='#5FF7E8'>a</font><font color='#B0F75F'>r</font><font color='#5FF79C'>d</font> ------*</b><br><br></font><font size='12'>Faite !aide pour la liste des commandes.</font>",all,200,50,400)
- ui.addTextArea(0, "<font size='12' face='Levenim MT' color='#EA75BB' > <b>MiceBoyard</b> </font><b><font size='12' face='Levenim MT' color='#75EA8C' >"..version.." BETA - 2</font><font size='12' face='Levenim MT' color='#FEFEFE' ></b> By <b><font size='12' face='Levenim MT' color='#E7EA75' >Manacer</b><font size='12' face='Levenim MT' color='#FEFEFE' ></font>", all, 0, 380, 800, 20, 0)
- tfm.exec.newGame("@4488791")
- tfm.exec.disableAutoShaman(true)
- gameon = true
- ui.addTextArea(101,"<p align='center'><a href='event:jeu1'>Lancer le jeux numéro 1</a></p>",name,300,235,200,21,nil,0x3C5064,nil,true)
- function eventTextAreaCallback(id,name,callback)
- if callback=="jeu1" then
- tfm.exec.newGame("@4491262")
- ui.removeTextArea(101,all)
- ui.removeTextArea(102,all)
- ui.addPopup(7,2,"Rentrez le pseudo du participant !",chef,400,200,200)
- end
- if callback=="jeu2" then
- tfm.exec.newGame("@4491823")
- ui.removeTextArea(101,all)
- ui.removeTextArea(102,all)
- ui.removeTextArea(1010,all)
- ui.addPopup(8,2,"Rentrez le pseudo du participant !",chef,400,200,200)
- end
- if callback=="closewin" then
- ui.removeTextArea(101,name)
- ui.removeTextArea(2,name)
- ui.addPopup(4, 0, "", name, 300000000, 140, 325)
- end
- end
- function eventPlayerDied(playerName)
- ui.addPopup(1574, 1, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", name, -1000, -1000, 1000000)
- ui.addPopup(1575, 3, "<p align='center'><font color='#FA7C7C' size='15'><b>GAME OVER !!<br><br>Votre équipier à échoué vous avez perdu relancer le module pour une nouvelle partie.</b></font></p>", name, 300, 150, 200) end
- timer = 999
- ui.addTextArea(2, "", all, 38000000, 110,nil,nil,1234564444467495757)
- function eventPlayerGetCheese(playerName)
- ui.addPopup(2,0,"<p align='center'><b><font size='14' face='Levenim MT' color='#75EA8C' >"..playerName.."</b> a ramassé la clef ! </font>",all,400,50,200)
- ui.addTextArea(2, "<font size='14'>Bravo à <b>"..playerName.."</b> qui à réussi à s'emparer de la clef avant la fin du temps ! ("..timer..")</font>", all, 380, 110,nil,nil,1234564444467495757)
- ui.addTextArea(101,"<p align='center'><a href='event:closewin'>Fermer les fenêtres</a></p>",all,300,335,300,21,nil,0x3C5064,nil,true)
- timer = 999
- ui.addTextArea(1010,"<p align='center'><a href='event:jeu2'><b>Lancer le jeux numéro 2</b></a></p>",name,300,235,200,21,nil,0x3C5064,nil,true)tfm.exec.newGame("@4488791")
- end
- if gameon ==true then
- timer = 9999
- function eventLoop(currentTime, timeRemaining)
- timer = timer + 0.5
- if timer==31 then
- ui.addTextArea(2, "<font size='20'>0</font>", all, 380, 110,nil,nil,1234564444444499999666565)
- tfm.exec.newGame("0")
- ui.addPopup(1574, 1, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", name, -1000, -1000, 1000000)
- ui.addPopup(1575, 3, "<p align='center'><font color='#FA7C7C' size='15'><b>GAME OVER !!<br><br>Votre équipier à échoué vous avez perdu relancer le module pour une nouvelle partie.</b></font></p>", name, 300, 150, 200) end
- if timer==32 then
- ui.removeTextArea(2,all)
- end
- if timer==1 then
- ui.addTextArea(2, "<font size='20'><br> <b>30</b> ...</font>", all, 380, 210,nil,nil)
- end
- if timer==2.5 then
- ui.addTextArea(2, "<font size='20'>29</font>", all, 380, 110,nil,nil)
- end
- if timer==3 then
- ui.addTextArea(2, "<font size='20'>28</font>", all, 380, 110,nil,nil)
- end
- if timer==4 then
- ui.addTextArea(2, "<font size='20'>27</font>", all, 380, 110,nil,nil)
- end
- if timer==5 then
- ui.addTextArea(2, "<font size='20'>26</font>", all, 380, 110,nil,nil)
- end
- if timer==6 then
- ui.addTextArea(2, "<font size='20'>25</font>", all, 380, 110,nil,nil)
- end
- if timer==7 then
- ui.addTextArea(2, "<font size='20'>24</font>", all, 380, 110,nil,nil)
- end
- if timer==8 then
- ui.addTextArea(2, "<font size='20'>23</font>", all, 380, 110,nil,nil)
- end
- if timer==9 then
- ui.addTextArea(2, "<font size='20'>22</font>", all, 380, 110,nil,nil)
- end
- if timer==10 then
- ui.addTextArea(2, "<font size='20'>21</font>", all, 380, 110,nil,nil)
- end
- if timer==11 then
- ui.addTextArea(2, "<font size='20'>20</font>", all, 380, 110,nil,nil)
- end
- if timer==12 then
- ui.addTextArea(2, "<font size='20'>19</font>", all, 380, 110,nil,nil)
- end
- if timer==13 then
- ui.addTextArea(2, "<font size='20'>18</font>", all, 380, 110,nil,nil)
- end
- if timer==14 then
- ui.addTextArea(2, "<font size='20'>17</font>", all, 380, 110,nil,nil)
- end
- if timer==15 then
- ui.addTextArea(2, "<font size='20'>16</font>", all, 380, 110,nil,nil)
- end
- if timer==16 then
- ui.addTextArea(2, "<font size='20'>15</font>", all, 380, 110,nil,nil)
- end
- if timer==17 then
- ui.addTextArea(2, "<font size='20'>14</font>", all, 380, 110,nil,nil)
- end
- if timer==18 then
- ui.addTextArea(2, "<font size='20'>13</font>", all, 380, 110,nil,nil)
- end
- if timer==19 then
- ui.addTextArea(2, "<font size='20'>12</font>", all, 380, 110,nil,nil)
- end
- if timer==20 then
- ui.addTextArea(2, "<font size='20'>11</font>", all, 380, 110,nil,nil)
- end
- if timer==21 then
- ui.addTextArea(2, "<font size='20'>10</font>", all, 380, 110,nil,nil)
- end
- if timer==22 then
- ui.addTextArea(2, "<font size='20'>9</font>", all, 380, 110,nil,nil)
- end
- if timer==23 then
- ui.addTextArea(2, "<font size='20'>8</font>", all, 380, 110,nil,nil)
- end
- if timer==24 then
- ui.addTextArea(2, "<font size='20'>7</font>", all, 380, 110,nil,nil)
- end
- if timer==25 then
- ui.addTextArea(2, "<font size='20'>6</font>", all, 380, 110,nil,nil)
- end
- if timer==26 then
- ui.addTextArea(2, "<font size='20'>5</font>", all, 380, 110,nil,nil)
- end
- if timer==27 then
- ui.addTextArea(2, "<font size='20'>4</font>", all, 380, 110,nil,nil)
- end
- if timer==28 then
- ui.addTextArea(2, "<font size='20'>3</font>", all, 380, 110,nil,nil,1234564444444455556)
- end
- if timer==29 then
- ui.addTextArea(2, "<font size='20'>2</font>", all, 380, 110,nil,nil,1234564444444499999)
- end
- if timer==30 then
- ui.addTextArea(2, "<font size='20'>1</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==999 then
- ui.addTextArea(2, "", all, 380, 110,nil,nil,1234564444467495757)
- end
- end
- function eventPopupAnswer(idpopup, playerName, answer)
- if idpopup==7 then
- tfm.exec.newGame(""..answer.."")
- ui.addPopup(4, 0, "<font color='#5BD1C5' size='15'>• [Chef <b>"..playerName.."</b>] a choisis "..answer.." comme participant(e) de l'étape 1 !", all, 300, 140, 325)
- table.insert(enjeu, answer)
- tfm.exec.movePlayer(""..answer.."", 110, 0)
- timer = 0
- ui.addTextArea(2, "<font size='20'>Vous avez <br> <b>30 secondes pour ramasser la clef (fromage) GO !</b> ...</font>", all, 380, 210,nil,nil)
- end
- if idpopup==8 then
- tfm.exec.newGame(""..answer.."")
- ui.addPopup(4, 0, "<font color='#5BD1C5' size='15'>• [Chef <b>"..playerName.."</b>] a choisis "..answer.." comme participant(e) de l'étape 1 !", all, 300, 140, 325)
- table.insert(enjeu, answer)
- tfm.exec.movePlayer(""..answer.."", 110, 0)
- timer = 0
- ui.addTextArea(2, "<font size='20'>Vous avez <br> <b>30 secondes pour ramasser la clef (fromage) GO !</b> ...</font>", all, 380, 210,nil,nil)
- end
- end
- end
- function eventNewPlayer(playerName)
- ui.addTextArea(0, "<font size='12' face='Levenim MT' color='#EA75BB' > <b>MiceBoyard</b> </font><b><font size='12' face='Levenim MT' color='#75EA8C' >"..version.."</font><font size='12' face='Levenim MT' color='#FEFEFE' ></b> By <b><font size='12' face='Levenim MT' color='#E7EA75' >Manacer</b><font size='12' face='Levenim MT' color='#FEFEFE' ></font>", playerName, 0, 380, 800, 20, 0)
- ui.addPopup(1,0,"<p align='center'><font size='22'><b><font face='Time Sans MS'>Bienvenue dans<br><br>*------ <font color='#86ED89'>M</font><font color='#95957C'>i</font><font color='#F75F5F'>c</font><font color='#F75FF7'>e</font><font color='#B55FF7'>B</font><font color='#F7CF5F'>o</font><font color='#5FC0F7'>y</font><font color='#5FF7E8'>a</font><font color='#B0F75F'>r</font><font color='#5FF79C'>d</font> ------*</b><br><br></font><font size='12'>Faite !aide pour la liste des commandes.</font>",playerName,200,50,400)
- end
- function eventChatCommand(name,command) -- A partir de la il y'a les commandes
- if command == "aide" then
- ui.addPopup(1,0,"<p align='center'><font size='22'><b><font face='Time Sans MS'>*------ <font color='#86ED89'>M</font><font color='#95957C'>i</font><font color='#F75F5F'>c</font><font color='#F75FF7'>e</font><font color='#B55FF7'>B</font><font color='#F7CF5F'>o</font><font color='#5FC0F7'>y</font><font color='#5FF7E8'>a</font><font color='#B0F75F'>r</font><font color='#5FF79C'>d</font> ------*</b><br><br></font><font size='15'>Liste des commandes !</font><br><br><font size='12'>!argent : Savoir l'argent actuel de l'équipe<br>C'est tout pour le moment !",name,200,50,400)
- end
- if command == "argent" then
- ui.addPopup(2,0,"<p align='center'><font size='22'><b><font face='Time Sans MS'>Cagnotte de <b>l'équipe</b> <br><br>*------ <font color='#86ED89'>M</font><font color='#95957C'>i</font><font color='#F75F5F'>c</font><font color='#F75FF7'>e</font><font color='#B55FF7'>B</font><font color='#F7CF5F'>o</font><font color='#5FC0F7'>y</font><font color='#5FF7E8'>a</font><font color='#B0F75F'>r</font><font color='#5FF79C'>d</font> ------*</b><br><br></font><font size='15'><b>" .. table.concat(cagnotte) .. "</b> fraise(s)<br><br><br><br><font size='10'>Si rien ne s'affiche sa veut dire que vous avez 0 fraises.",name,200,50,400)
- end
- if command == "give" then
- table.insert(cagnotte, 1)
- end
- if command == "start" then
- gameon = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement