Advertisement
Tortuegreen

Défiez Von Drekkemaus pv1.0 [v1.3]

Oct 6th, 2015
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.97 KB | None | 0 0
  1. ------------------------------------------------------
  2. -- Module : Défiez Von Drekkemaus (par Tortuegreen) --
  3. ------------------------------------------------------
  4.  
  5. tfm.exec.disableAutoNewGame(true)
  6. tfm.exec.disableAutoScore (true)
  7. tfm.exec.disableAfkDeath (true)
  8. tfm.exec.disableAutoTimeLeft (true)
  9. tfm.exec.disableAutoShaman (true)
  10.  
  11. players = {}
  12. ptsQu = {0, 0, 0, 0, 1, 2, 0, 1, 0, 2, -1, 0, 0, 0, -1, 0, 2, -1, 0, -1, 0, 1, 0, 0, 0, 0, 1, 0, 2, 0, 0, -1, 1, 0, 1, 2, 0, 0, 0, 0, 0}
  13. story = {
  14.     {"Bonjour, je m'appelle Archain Von Drekkemaus.", "<a href='event:nextQu2'>> Salut.</a>"}, -- 1 Général +0
  15.     {"Je te rencontre enfin !", "<a href='event:nextQu3'>> Content de te voir !</a>", "<a href='event:nextQu6'>> J'ai peur...</a>"}, -- 2 Général +0
  16.     {"Même si je peux te faire du mal ?", "<a href='event:nextQu4'>> Ben ouais !</a>", "<a href='event:nextQu5'>> C'est pas ce que je voulais dire :(</a>"}, -- 3 Situationnel[2.1] +0
  17.     {"Tu as l'air un peu trop sûr de toi à mon goût. ò.ó", "<a href='event:nextQu7'>-Suivant-</a>"}, -- 4 Situationnel[3.1] +0
  18.     {"J'espère pour toi !!! ò.ó", "<a href='event:nextQu7'>-Suivant-</a>"}, -- 5 Situationnel[3.2] +1
  19.     {"Tu as raison d'avoir peur de moi. ò.ó", "<a href='event:nextQu7'>-Suivant-</a>"}, -- 6 Situationnel[2.2] +2
  20.     {"Qu'est-ce que tu sais sur moi ?", "<a href='event:nextQu8'>> Pas grand chose</a>", "<a href='event:nextQu9'>> Tout !</a>"}, -- 7 Général +0
  21.     {"Tu vas apprendre à me connaître alors.", "<a href='event:nextQu12'>-Suivant-</a>"}, -- 8 Situationnel[7.1] +1
  22.     {"Comme quoi ?", "<a href='event:nextQu10'>> Tu es une souris-vampire.</a>", "<a href='event:nextQu11'>> Tu n'aimes pas mordre.</a>"}, -- 9 Situationnel[7.2] +0
  23.     {"La plus démoniaque de toutes ò.ó", "<a href='event:nextQu12'>-Suivant-</a>"}, -- 10 Situationnel[9.1] +2
  24.     {"Tu vas voir si j'ai pas envie de mordre !", "<a href='event:nextQu12'>-Suivant-</a>"}, -- 11 Situationnel[9.2] -1
  25.     {"Tant que j'y pense, as-tu mon titre 'Von Drekkemaus' ?", "<a href='event:nextQu13'>> Je t'avous que non...</a>", "<a href='event:nextQu16'>> Bien sûr que oui !</a>"}, -- 12 Général +0
  26.     {"C'est pas grave, il te manque juste le meilleur titre du jeu.", "<a href='event:nextQu14'>> N'importe quoi.</a>", "<a href='event:nextQu15'>> Je sais...</a>"}, -- 13 Situationnel[12.1] +0
  27.     {"Tu oses me contredire... Attention à toi !", "<a href='event:nextQu19'>-Suivant-</a>"}, -- 14 Situationnel[13.1] +0
  28.     {"Tu n'as pas l'air sincère...", "<a href='event:nextQu19'>-Suivant-</a>"}, -- 15 Situationnel[13.2] -1
  29.     {"Je te laisse le mettre [/titre 307] (clique sur 'Actualiser sa souris' en haut à gauche dès que tu l'as changé avant de valider)...", "<a href='event:nextQu17'>-Suivant-</a>"}, -- 16 Situationnel[12.2] +0
  30.     {"Très bien, avec ça, tout le monde te respectera.", "<a href='event:nextQu19'>-Suivant-</a>"}, -- 17 Situationnel[16.0] +2
  31.     {"Il semblerait que tu m'ais MENTI et je n'aime pas ça ! ò.ó", "<a href='event:nextQu19'>-Suivant-</a>"}, -- 18 Situationnel[16.0] -1
  32.     {"Sinon, as-tu déjà battu mon chat squelette ?", "<a href='event:nextQu21'>> Plusieurs fois oui</a>", "<a href='event:nextQu20'>> Non, il m'a assomé avant.</a>"}, -- 19 Général +0
  33.     {"Je déteste les nuls !", "<a href='event:nextQu24'>-Suivant-</a>"}, -- 20 Situationnel[19.2] -1
  34.     {"Etait-il dur à affronter ?", "<a href='event:nextQu22'>> Un peu quand même.</a>", "<a href='event:nextQu23'>> Ce petit chiwawa ?</a>"}, -- 21 Situationnel[19.2] +0
  35.     {"Je reconnais bien là ma création !", "<a href='event:nextQu24'>-Suivant-</a>"}, -- 22 Situationnel[21.1] +1
  36.     {"Un peu de respect pour mon garde je te prie !", "<a href='event:nextQu24'>-Suivant-</a>"}, -- 23 Situationnel[21.2] +0
  37.     {"Veux-tu maintenant comparer tes dents de vampire aux miennes ?", "<a href='event:nextQu25'>> Oui tout de suite</a>", "<a href='event:nextQu28'>> Non ça ira</a>"}, -- 24 Général +0
  38.     {"Équipe- toi donc des dents de vampire !(clique sur 'Actualiser sa souris' en haut à gauche dès que tu l'as changé avant de valider) ", "<a href='event:nextQu26'>-Suivant-</a>"}, -- 25 Situationnel[24.1] +0
  39.     {"Apparemment, elles me vont beaucoup mieux à moi qu'à toi ! Tu as l'air ridicule muahaha ò.ó", "<a href='event:nextQu31'>-Suivant-</a>"}, -- 27 Situationnel[25.0] +0
  40.     {"On dirait que tu ne les as pas mises. Heuresement pour toi, tu ne peux pas te comparer à moi. ò.ó", "<a href='event:nextQu31'>-Suivant-</a>"}, -- 26 Situationnel[25.0] +1
  41.     {"Pourquoi tu ne veux pas montrer tes dents de vampire ?", "<a href='event:nextQu29'>> Parce que je ne veux pas</a>", "<a href='event:nextQu30'>> Parce que je ne les ai pas...</a>"}, -- 28 Situationnel[24.2] +0
  42.     {"Tu as raison, elles ne vont bien que sur moi ! ò.ó", "<a href='event:nextQu31'>-Suivant-</a>"}, -- 29 Situationnel[28.1] +2
  43.     {"Comment veux-tu participer à Halloween dans cette état...", "<a href='event:nextQu31'>-Suivant-</a>"}, -- 30 Situationnel[28.2] +0
  44.     {"Tu rappelles-tu le nom de celle que j'aime ?", "<a href='event:nextQu32'>> Oui, elle s'appelle Luffy.</a>", "<a href='event:nextQu33'>> Je crois qu'elle s'appelle Buffy</a>"}, -- 31 Général +0
  45.     {"Tu n'as pas une bonne mémoire dis donc. C'était Buffy ! ò.ó", "<a href='event:nextQu34'>-Suivant-</a>"}, -- 32 Situationnel[31.1] -1
  46.     {"C'est bien elle : ma Buffy chérie !", "<a href='event:nextQu34'>-Suivant-</a>"},  -- 33 Situationnel[31.2] +1
  47.     {"Avant que l'on tombe amoureux, elle avait un métier. Lequel d'après toi ?", "<a href='event:nextQu35'>> Chasseuse de vampires</a>", "<a href='event:nextQu36'>> Protectrice de vampires</a>"},  -- 34 Général +0
  48.     {"Oui et ce n'était pas un métier qui aurait pu me plaire.", "<a href='event:nextQu37'>-Suivant-</a>"}, -- 35 Situationnel[34.1] +1
  49.     {"Non mais quel beau métier ça aurait été...", "<a href='event:nextQu37'>-Suivant-</a>"},  -- 36 Situationnel[34.2] +2
  50.     {"Voilà, il est temps pour toi de savoir si tu as été assez concluant !", "<a href='event:nextQu38'>-Suivant-</a>"}, -- 37 Général +0
  51.     {"Pourras-tu pénétrer dans ma demeure ?", "<a href='event:nextQu39'>Je pense que oui !</a>", "<a href='event:nextQu39'>Je ne sais pas trop...</a>"}, -- 38 Général +0
  52.     {"Voyons donc quel score tu as récolté (tu dois avoir 10 points ou plus sur 15) !!!", "<a href='event:nextQu40'>-Suivant-</a>"} -- 39 Général +0
  53. }
  54. closeEntDoor = 0
  55. rules = "<p align='center'><font color='#EB1D51' face='DejaVu Sans Mono' size='25'><b>Défiez Archain Von Drekkemaus !</b></font></p>"
  56. .."<p align='center'><font color='#C2C2DA' face='DejaVu Sans Mono' size='18'>Répondez à ses questions...</font></p><br>"
  57. .."<p align='center'><font color='#BABD2F' face='DejaVu Sans Mono' size='15'>Le but est simple, vous êtes dans le jardin de Von Drekkemaus. Pour rentrer dans sa demeure, il vous faudra « simplement » le convaincre...</font></p><br>"
  58. .."<p align='center'><font color='#BABD2F' face='DejaVu Sans Mono' size='15'>Pour cela, répondez à ses questions en essayant de ne pas le contrarier. Un système de points est en place : si vous répondez comme il veut, vous gagnerez des points, sinon vous en perdrez.</font></p><br>"
  59. .."<p align='left'><font color='#C2C2DA' face='DejaVu Sans Mono' size='15'><b>Complément</b><br>Le nombre de points récoltés vous sera affiché à la fin. Vous pouvez avoir entre 0 et 15. Si vous réussissez à avoir au moins 10, vous pourrez entrer dans sa gigantesque demeure.</font></p>"
  60.  
  61. function eventNewPlayer(name)
  62.     tfm.exec.respawnPlayer(name)
  63.     players[name] = {
  64.         pts = 3,
  65.         temp = 0,
  66.     }
  67.     initStory(name)
  68.     setHelp(name)
  69. end
  70.  
  71. function eventNewGame()
  72.     tfm.exec.setUIMapName ("<font color='#C2C2DA'>Module :</font> <font color='#BABD2F'>Défiez Von Drekkemaus !</font>")
  73.     tfm.exec.addPhysicObject(1, 400, 390, {type=14, restitution=0.2, friction=0, width=800, height=20})
  74.     tfm.exec.addPhysicObject(2, 770, 530, {type=14, restitution=0.2, friction=0, width=20, height=330})
  75.     tfm.exec.addPhysicObject(3, 800, 370, {type=14, restitution=0.2, friction=0, width=10, height=1500, angle = -65})
  76.     tfm.exec.addPhysicObject(4, 800, 325, {type=14, restitution=0.2, friction=0, width=10, height=1500, angle = -65})
  77.     tfm.exec.addPhysicObject(5, 1870, 697, {type=14, restitution=0.35, friction=0.3, width=50, height=25, angle = -30})
  78.     tfm.exec.addPhysicObject(6, 2020, 632, {type=14, restitution=0, friction=100, width=80, height=10})
  79.     tfm.exec.addPhysicObject(7, 130, 50, {type=14, restitution=0, friction=100, width=80, height=10, angle = -70})
  80.     tfm.exec.addPhysicObject(8, 1900, 632, {type=14, restitution=0, friction=0, width=10, height=200})
  81.     tfm.exec.addPhysicObject(9, 600, 200, {type=14, restitution=0, friction=100, width=80, height=10, angle = 40})
  82.     tfm.exec.addPhysicObject(10, 600, 200, {type=14, restitution=20, friction=0, width=80, height=10, angle = 40})
  83.     tfm.exec.addPhysicObject(11, 960, -150, {type=14, restitution=0, friction=0, width=1000, height=10, angle = -40})
  84.     tfm.exec.addPhysicObject(12, 700, 150, {type=14, restitution=0, friction=0, width=200, height=10, angle = -40})
  85.     tfm.exec.addPhysicObject(13, 1000, 85, {type=14, restitution=0, friction=0, width=430, height=10})
  86.     tfm.exec.addPhysicObject(14, 1000, 0, {type=14, restitution=0, friction=0, width=800, height=10})
  87.     tfm.exec.addPhysicObject(15, 1400, 170, {type=14, restitution=0, friction=0, width=400, height=10, angle = 23})
  88.     tfm.exec.addPhysicObject(16, 1450, 120, {type=14, restitution=0, friction=0, width=600, height=10, angle = 23})
  89.     tfm.exec.addPhysicObject(17, 1900, 200, {type=12, restitution=0, friction=0, width=10, height=600})
  90.     tfm.exec.addPhysicObject(18, 1545, 500, {type=12, restitution=0, friction=0, width=40, height=200})
  91.     tfm.exec.addPhysicObject(19, 1700, 475, {type=12, restitution=0, friction=0, width=400, height=10})
  92.     ui.addTextArea(71, "<p align='center'><font color='#C54305' face='Dejavu Sans Mono' size='12'>Bienvenue</font></p>", nil, 2080, 525, 100, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  93.     tfm.exec.addPhysicObject(72, 2060, 567, {type=12, restitution=0.2, friction=0.3, width=10, height=10, color=0x3C2A1D, miceCollision=false, foreground=true, angle=-45})
  94.     tfm.exec.addPhysicObject(73, 2070, 555, {type=12, restitution=0.2, friction=0.3, width=10, height=10, color=0x3C2A1D, miceCollision=false, foreground=true, angle=-45})
  95.     ui.addTextArea(74, "<p align='center'><font color='#C54305' face='Dejavu Sans Mono' size='15'>Au cachot !</font></p>", nil, 1300, 250, 130, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  96.     tfm.exec.addPhysicObject(75, 1450, 260, {type=12, restitution=0.2, friction=0.3, width=12, height=12, color=0x3C2A1D, miceCollision=false, foreground=true, angle=-45})
  97.     tfm.exec.addPhysicObject(76, 1475, 255, {type=12, restitution=0.2, friction=0.3, width=12, height=12, color=0x3C2A1D, miceCollision=false, foreground=true, angle=-45})
  98. end
  99.  
  100. function initStory(name)
  101.     ui.addTextArea(1, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[1][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[1][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  102. end
  103.  
  104. function updatePts(name, pts)
  105.     players[name].pts = players[name].pts+pts
  106.     if pts ~= 0 then
  107.     end
  108. end
  109.  
  110. function eventTextAreaCallback(tAId, name, cb)
  111.     if cb:sub(0,6) == "nextQu" then
  112.         i = tonumber(cb:sub(7))
  113.         ui.removeTextArea(tAId, name)
  114.         if i == 40 then
  115.             if players[name].pts >= 10 then
  116.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>Tu as récolté un total de "..players[name].pts.."/15. Je te laisse entrer dans mon domaine. Bonne visite !</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp1'>-Entrer ! (NE PAS BOUGER AVANT L'ARRÊT)-</a></font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  117.             else
  118.                 i = i+1
  119.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>Tu as récolté seulement "..players[name].pts.."/15. Je suis désolé, tu n'es pas accepté dans mon domaine. ò.ó</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp2'>-Se téléporter... (NE PAS BOUGER AVANT L'ARRÊT) [Clic 1/2]-</a></font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  120.             end
  121.         elseif i == 25 then
  122.             ui.addTextArea(45, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='15'><a href='event:updMouse'>Actualiser sa souris</font></p>", name, 10, 30, 200, weight, 0x3C2A1D, 0x3C2A1D, 1, true)
  123.             ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  124.         elseif i == 26 then
  125.             ui.removeTextArea(45, name)
  126.             players[name].look = string.gsub(tfm.get.room.playerList[name].look, ";", ",")
  127.             for j=1,3 do
  128.                 players[name].temp = string.find(tfm.get.room.playerList[name].look:sub(players[name].temp), ",")+1
  129.                 if j == 2 then
  130.                     players[name].limInf = string.find(tfm.get.room.playerList[name].look:sub(players[name].temp), ",")+1
  131.                 elseif j == 3 then
  132.                     players[name].limSup = string.find(tfm.get.room.playerList[name].look:sub(players[name].temp), ",")-1
  133.                     players[name].mouth = tonumber(tfm.get.room.playerList[name].look:sub(players[name].limInf,players[name].limSup))
  134.                 end
  135.             end
  136.             if players[name].mouth == 24 then
  137.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  138.             else
  139.                 i = i+1
  140.                 ui.addTextArea(i+1, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  141.             end
  142.         elseif i == 16 then
  143.             ui.addTextArea(45, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='15'><a href='event:updMouse'>Actualiser sa souris</font></p>", name, 10, 30, 200, weight, 0x3C2A1D, 0x3C2A1D, 1, true)
  144.             ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  145.         elseif i == 17 then
  146.             ui.removeTextArea(45, name)
  147.             if tfm.get.room.playerList[name].title == 307 then
  148.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  149.             else
  150.                 i = i+1
  151.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  152.             end
  153.         else
  154.             if story[i][3] ~= nil then
  155.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."<br>"..story[i][3].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  156.             else
  157.                 ui.addTextArea(i, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>"..story[i][1].."</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'>"..story[i][2].."</font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  158.             end
  159.         end
  160.         updatePts(name, ptsQu[i])
  161.     elseif cb == "updMouse" then
  162.         tfm.exec.killPlayer(name)
  163.         tfm.exec.respawnPlayer(name)
  164.     elseif cb:sub(0,2) == "tp" then
  165.         i = tonumber(cb:sub(3))
  166.         ui.removeTextArea(tAId, name)
  167.         if i == 1 then
  168.             tfm.exec.movePlayer(name, 175, 50, false)
  169.             tfm.exec.removePhysicObject(8)
  170.             closeEntDoor = 8.5
  171.         elseif i == 2 then
  172.             tfm.exec.movePlayer(name, 570, 700, false)
  173.             ui.addTextArea(41, "<p align='center'><font color='#BABD2F' face='Dejavu Sans Mono' size='20'>Tu as récolté seulement "..players[name].pts.."/15. Je suis désolé, tu n'es pas accepté dans mon domaine. ò.ó</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp3'>-Se téléporter... (NE PAS BOUGER AVANT L'ARRÊT) [Clic 2/2]-</a></font></p>", name, 180, 430, 400, weight, 0x3C2A1D, 0x3C2A1D, 1, false)
  174.         elseif i == 3 then
  175.             tfm.exec.movePlayer(name, 670, 150, false)
  176.         end
  177.     elseif cb == "openHelp" then
  178.         ui.removeTextArea(0, name)
  179.         setHelp(name)
  180.     elseif cb == "closeHelp" then
  181.         ui.addTextArea(0, "<p align='center'><font color='#C2C2DA' face='DejaVu Sans Mono' size='18'><a href='event:openHelp'><b>?</b></a></font></p>", name, 775, 24, 25, weight, 0x6A7495, 0x6A7495, 1, true)
  182.         for i=51,61 do
  183.             ui.removeTextArea(i, name)
  184.         end
  185.     end
  186. end
  187.  
  188. function setHelp(name)
  189.     heightBase = 640
  190.     weightBase = 320
  191.     xBase = math.ceil((800-heightBase)/2)
  192.     yBase = math.ceil((400-weightBase)/2)
  193.     ui.addTextArea(51, "", name, xBase, yBase, heightBase, weightBase, 0x2D211A, 0x2D211A, 0.8, true)
  194.     ui.addTextArea(52, "", name, tonumber(xBase+1), tonumber(yBase+1), tonumber(heightBase-2), tonumber(weightBase-2), 0x986742, 0x986742, 1, true)
  195.     ui.addTextArea(53, "", name, tonumber(xBase+4), tonumber(yBase+4), tonumber(heightBase-8), tonumber(weightBase-8), 0x171311, 0x171311, 1, true)
  196.     ui.addTextArea(54, "", name, tonumber(xBase+5), tonumber(yBase+5), tonumber(heightBase-10), tonumber(weightBase-10), 0x0C191C, 0x0C191C, 1, true)
  197.     ui.addTextArea(55, "", name, tonumber(xBase+6), tonumber(yBase+6), tonumber(heightBase-12), tonumber(weightBase-12), 0x24474D, 0x24474D, 1, true)
  198.     ui.addTextArea(56, "", name, tonumber(xBase+7), tonumber(yBase+7), tonumber(heightBase-14), tonumber(weightBase-14), 0x183337, 0x183337, 1, true)
  199.     ui.addTextArea(57, "", name, tonumber(xBase+8), tonumber(yBase+8), tonumber(heightBase-16), tonumber(weightBase-16), 0x122528, 0x122528, 1, true)
  200.     ui.addTextArea(58, rules, name, tonumber(xBase+8), tonumber(yBase+8), tonumber(heightBase-16), tonumber(weightBase-50), 0, 0, 0, true)
  201.     ui.addTextArea(59, "", name, tonumber(xBase+16), tonumber(yBase+weightBase-33), tonumber(heightBase-34), 18, 0x5D7D90, 0x5D7D90, 1, true)
  202.     ui.addTextArea(60, "", name, tonumber(xBase+18), tonumber(yBase+weightBase-31), tonumber(heightBase-34), 18, 0x11171C, 0x11171C, 1, true)
  203.     ui.addTextArea(61, "<p align='center'><font color='#C2C2DA' size='11'><a href='event:closeHelp'>Fermer cette fenêtre</a></font></p>", name, tonumber(xBase+17), tonumber(yBase+weightBase-32), tonumber(heightBase-34), 18, 0x3C5064, 0x3C5064, 1, true)
  204. end
  205.  
  206. function eventLoop(t1, t2)
  207.     closeEntDoor = closeEntDoor-0.5
  208.     if closeEntDoor == 0.5 then
  209.         tfm.exec.addPhysicObject(8, 1900, 632, {type=14, restitution=0, friction=0, width=10, height=200})
  210.     end
  211. end
  212.    
  213. for name in pairs(tfm.get.room.playerList) do
  214.     eventNewPlayer(name)
  215. end
  216.  
  217. tfm.exec.newGame("@6277028")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement