Advertisement
Manacer

BETA 0.1 - BoyardMice

Nov 9th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.39 KB | None | 0 0
  1. tfm.exec.addShamanObject(26, -310, 88)
  2. tfm.exec.addShamanObject(27, 1088, 86)
  3. version = 0.1
  4. cagnotte = {}
  5. 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)
  6. ui.addTextArea(0, "<font size='12' face='Levenim MT' color='#EA75BB' > <b>MiceBoyard</b> </font><b><font size='12' face='Levenim MT' color='#75EA8C' >BETA "..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>", all, 0, 380, 800, 20, 0)
  7. tfm.exec.newGame("@4488791")
  8. gameon = true
  9. game1 = false
  10.  
  11. function eventNewGame()
  12. gameon = false
  13. tfm.exec.addShamanObject(26, -310, 88)
  14. tfm.exec.addShamanObject(27, 1088, 86)
  15. end
  16.  
  17. function eventTextAreaCallback(id,name,callback)
  18.   if callback=="jeu1" then
  19.     ui.addPopup(1,0,"<p align='center'><font size='15'><b><font face='Time Sans MS'>Le jeu1 étant en travaux vous ne pouvez pas l'utiliser !</font>",all,200,50,400)
  20.     tfm.exec.newGame("@3816093")
  21.     ui.removeTextArea(101,all)
  22.   end
  23.   end
  24.  
  25. if gameon ==true then
  26. timer = 0
  27. function eventLoop(currentTime, timeRemaining)
  28.   timer = timer + 0.5
  29.   if timer==31 then
  30.     ui.addTextArea(2, "<font size='20'>0</font>", all, 380, 110,nil,nil,1234564444444499999666565)
  31.   end
  32.   if timer==32 then
  33.   ui.removeTextArea(2,all)
  34.   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)
  35.   end
  36.   if timer==1 then
  37.     ui.addTextArea(2, "<font size='20'>Début du jeu dans<br> <b>30 secondes</b> ...</font>", all, 380, 210,nil,nil)
  38.   end
  39.   if timer==2.5 then
  40.     ui.addTextArea(2, "<font size='20'>29</font>", all, 380, 110,nil,nil)
  41.   end
  42.   if timer==3 then
  43.     ui.addTextArea(2, "<font size='20'>28</font>", all, 380, 110,nil,nil)
  44.   end
  45.   if timer==4 then
  46.     ui.addTextArea(2, "<font size='20'>27</font>", all, 380, 110,nil,nil)
  47.   end
  48.   if timer==5 then
  49.     ui.addTextArea(2, "<font size='20'>26</font>", all, 380, 110,nil,nil)
  50.     end
  51.   if timer==6 then
  52.     ui.addTextArea(2, "<font size='20'>25</font>", all, 380, 110,nil,nil)
  53.     end
  54.   if timer==7 then
  55.     ui.addTextArea(2, "<font size='20'>24</font>", all, 380, 110,nil,nil)
  56.     end
  57.   if timer==8 then
  58.     ui.addTextArea(2, "<font size='20'>23</font>", all, 380, 110,nil,nil)
  59.     end
  60.   if timer==9 then
  61.     ui.addTextArea(2, "<font size='20'>22</font>", all, 380, 110,nil,nil)
  62.     end
  63.   if timer==10 then
  64.     ui.addTextArea(2, "<font size='20'>21</font>", all, 380, 110,nil,nil)
  65.     end
  66.   if timer==11 then
  67.     ui.addTextArea(2, "<font size='20'>20</font>", all, 380, 110,nil,nil)
  68.     end
  69.   if timer==12 then
  70.     ui.addTextArea(2, "<font size='20'>19</font>", all, 380, 110,nil,nil)
  71.     end
  72.   if timer==13 then
  73.     ui.addTextArea(2, "<font size='20'>18</font>", all, 380, 110,nil,nil)
  74.     end
  75.   if timer==14 then
  76.     ui.addTextArea(2, "<font size='20'>17</font>", all, 380, 110,nil,nil)
  77.     end
  78.   if timer==15 then
  79.     ui.addTextArea(2, "<font size='20'>16</font>", all, 380, 110,nil,nil)
  80.     end
  81.   if timer==16 then
  82.     ui.addTextArea(2, "<font size='20'>15</font>", all, 380, 110,nil,nil)
  83.     end
  84.   if timer==17 then
  85.     ui.addTextArea(2, "<font size='20'>14</font>", all, 380, 110,nil,nil)
  86.     end
  87.   if timer==18 then
  88.     ui.addTextArea(2, "<font size='20'>13</font>", all, 380, 110,nil,nil)
  89.     end
  90.   if timer==19 then
  91.     ui.addTextArea(2, "<font size='20'>12</font>", all, 380, 110,nil,nil)
  92.     end
  93.   if timer==20 then
  94.     ui.addTextArea(2, "<font size='20'>11</font>", all, 380, 110,nil,nil)
  95.     end
  96.   if timer==21 then
  97.     ui.addTextArea(2, "<font size='20'>10</font>", all, 380, 110,nil,nil)
  98.     end
  99.   if timer==22 then
  100.     ui.addTextArea(2, "<font size='20'>9</font>", all, 380, 110,nil,nil)
  101.     end
  102.   if timer==23 then
  103.     ui.addTextArea(2, "<font size='20'>8</font>", all, 380, 110,nil,nil)
  104.     end
  105.   if timer==24 then
  106.     ui.addTextArea(2, "<font size='20'>7</font>", all, 380, 110,nil,nil)
  107.     end
  108.   if timer==25 then
  109.     ui.addTextArea(2, "<font size='20'>6</font>", all, 380, 110,nil,nil)
  110.     end
  111.   if timer==26 then
  112.     ui.addTextArea(2, "<font size='20'>5</font>", all, 380, 110,nil,nil)
  113.     end
  114.   if timer==27 then
  115.     ui.addTextArea(2, "<font size='20'>4</font>", all, 380, 110,nil,nil)
  116.     end
  117.   if timer==28 then
  118.     ui.addTextArea(2, "<font size='20'>3</font>", all, 380, 110,nil,nil,1234564444444455556)
  119.     end
  120.   if timer==29 then
  121.     ui.addTextArea(2, "<font size='20'>2</font>", all, 380, 110,nil,nil,1234564444444499999)
  122.     end
  123.   if timer==30 then
  124.     ui.addTextArea(2, "<font size='20'>1</font>", all, 380, 110,nil,nil,1234564444467495757)
  125.     end
  126. end
  127. end
  128.        
  129. function eventNewPlayer(playerName)
  130. 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>", all, 0, 380, 800, 20, 0)
  131. 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)
  132. end
  133.  
  134.  
  135. function eventChatCommand(name,command) -- A partir de la il y'a les commandes
  136.   if command == "aide" then
  137.   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)
  138. end
  139.   if command == "argent" then
  140.       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)
  141. end
  142.   if command == "give" then
  143.   table.insert(cagnotte, 1)
  144. end
  145.   if command == "start" then
  146.   gameon = false
  147.   end
  148.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement