Advertisement
Unlocker001_TFM

Von Drekkemaus سكربت] تحدى]

Feb 6th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.60 KB | None | 0 0
  1. ------------------------------------------------------
  2. -- Von Drekkemaus سكربت : تحدى (Unlocker001) --
  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. {" .Von Drekkemaus مرحباً, اسمي", "<a href='event:nextQu2'>> .مرحباً </a>"}, -- 1 Général +0
  15. {"! لقد التقيتك اخيراً", "<a href='event:nextQu3'>> ! مسرور لرؤيتك </a>", "<a href='event:nextQu6'>> ... انا خائف </a>"}, -- 2 Général +0
  16. {"حتى ان كان بإمكاني ان اؤلمك ؟", "<a href='event:nextQu4'>> نعم !</a>", "<a href='event:nextQu5'>> ليس ما كنت اريد ان اقوله :(</a>"}, -- 3 Situationnel[2.1] +0
  17. {" ò.ó .يبدوا انك واثق بنفسك من دوقي ", "<a href='event:nextQu7'>-التالي-</a>"}, -- 4 Situationnel[3.1] +0
  18. {" ò.ó !!! اتمنى لك ", "<a href='event:nextQu7'>-التالي-</a>"}, -- 5 Situationnel[3.2] +1
  19. {" ò.ó . انت على حق ان تكون خائفاً مني ", "<a href='event:nextQu7'>-التالي-</a>"}, -- 6 Situationnel[2.2] +2
  20. {" مالدي تعرفه عني ؟ ", "<a href='event:nextQu8'>> لا اعرف الكتير </a>", "<a href='event:nextQu9'>> كل شئ !</a>"}, -- 7 Général +0
  21. {". ستتعلم ان تعرفني ادا", "<a href='event:nextQu12'>-التالي-</a>"}, -- 8 Situationnel[7.1] +1
  22. {"متل مادا ؟ ", "<a href='event:nextQu10'>> انت الفأر-الخفاش </a>", "<a href='event:nextQu11'>> . لا تحب العض </a>"}, -- 9 Situationnel[7.2] +0
  23. {"ò.ó اكتر شراً ", "<a href='event:nextQu12'>-التالي-</a>"}, -- 10 Situationnel[9.1] +2
  24. {"! سوف ترى ان اريد العض", "<a href='event:nextQu12'>-التالي-</a>"}, -- 11 Situationnel[9.2] -1
  25. {" ؟ 'Von Drekkemaus' و انا افكر, هل معك لقبي", "<a href='event:nextQu13'>> ... بصراحة لا</a>", "<a href='event:nextQu16'>> !!! هدا مأكد نعم </a>"}, -- 12 Général +0
  26. {". لا يهم, ينقصك فقط افضل لقب باللعبة", "<a href='event:nextQu14'>> ... انت تمزح</a>", "<a href='event:nextQu15'>> ... اعلم</a>"}, -- 13 Situationnel[12.1] +0
  27. {"! انت تناقضني ... احدر", "<a href='event:nextQu19'>-التالي-</a>"}, -- 14 Situationnel[13.1] +0
  28. {"... يبدوا انك لست صريح", "<a href='event:nextQu19'>-التالي-</a>"}, -- 15 Situationnel[13.2] -1
  29. {"... (انقر فوق 'تحديث الفأر' بعد ان تضع اللقب)... [/titre 307] ساتركك لكي تضع اللقب ", "<a href='event:nextQu17'>-التالي-</a>"}, -- 16 Situationnel[12.2] +0
  30. {". جيد جداً, بهدا اللقب, سيحترمك الجميع", "<a href='event:nextQu19'>-التالي-</a>"}, -- 17 Situationnel[16.0] +2
  31. {"ò.ó ! لقد كدبت علي انا لا احب هدا ", "<a href='event:nextQu19'>-التالي-</a>"}, -- 18 Situationnel[16.0] -1
  32. {"هل قتلت هيكل القط الخاص بي ؟", "<a href='event:nextQu21'>> نعم عدة مرات </a>", "<a href='event:nextQu20'>> لا, كان يقتلني</a>"}, -- 19 Général +0
  33. {"! اكره الفاشلين", "<a href='event:nextQu24'>-التالي-</a>"}, -- 20 Situationnel[19.2] -1
  34. {"هل كانت موجهته صعبة ؟", "<a href='event:nextQu22'>> . قليلاً </a>", "<a href='event:nextQu23'>> تقصد الشيواوا الصغير ؟ </a>"}, -- 21 Situationnel[19.2] +0
  35. {"! انني ادرك تماماً انشائي ", "<a href='event:nextQu24'>-التالي-</a>"}, -- 22 Situationnel[21.1] +1
  36. {"! القليل من الاحترام لحارسي الشخصي", "<a href='event:nextQu24'>-التالي-</a>"}, -- 23 Situationnel[21.2] +0
  37. {"هل تريد الان مقارنة اسنان مصاص الدماء الخاصة بك بخاصتي ؟", "<a href='event:nextQu25'>> نعم الان </a>", "<a href='event:nextQu28'>> لا اريد </a>"}, -- 24 Général +0
  38. {"البس اسنان مصاص الدماء الخاصة بك (انقر على 'تحديث الفأر' عندما ترتدي الاسنان) لوضع الاسنان", "<a href='event:nextQu26'>-التالي-</a>"}, -- 25 Situationnel[24.1] +0
  39. {"ò.ó يبدون افضل بكثير علي ! انت تبدو سخيفاً مواهاها ", "<a href='event:nextQu31'>-التالي-</a>"}, -- 27 Situationnel[25.0] +0
  40. {" ò.ó ! يبدو انك لم تضعها. انت محظوظ لانك لن تقارن اسنانك مع اسناني ò.ó", "<a href='event:nextQu31'>-Suivant-</a>"}, -- 26 Situationnel[25.0] +1
  41. {"لمادا لا تريد ان تريني اسنانك ؟", "<a href='event:nextQu29'>> لانني لا اريد</a>", "<a href='event:nextQu30'>> ...لانه ليس لدي</a>"}, -- 28 Situationnel[24.2] +0
  42. {" ò.ó ! انت محق, انها تبدوا افضل علي", "<a href='event:nextQu31'>-التالي-</a>"}, -- 29 Situationnel[28.1] +2
  43. {"...كيف, تريد المشاركة في هالوين بهده الحالة", "<a href='event:nextQu31'>-التالي-</a>"}, -- 30 Situationnel[28.2] +0
  44. {"هل تتدكر اسم حبيبتي ؟", "<a href='event:nextQu32'>> . Luffy نعم,اسمها </a>", "<a href='event:nextQu33'>> Buffy اظن ان اسمها</a>"}, -- 31 Général +0
  45. {" ò.ó ! Buffy ليست لديك داكرة جيدة اسمها", "<a href='event:nextQu34'>-التالي-</a>"}, -- 32 Situationnel[31.1] -1
  46. {" Buffy نعم هي : حبيبتي", "<a href='event:nextQu34'>-التالي-</a>"}, -- 33 Situationnel[31.2] +1
  47. {"قبل ان نقع في الحب, كان لديها عمل. ماهو برأيك ؟", "<a href='event:nextQu35'>> صائدة الخفافيش</a>", "<a href='event:nextQu36'>> حراسة الخفافيش</a>"}, -- 34 Général +0
  48. {". نعم و هدا العمل لم اكن احبه", "<a href='event:nextQu37'>-التالي-</a>"}, -- 35 Situationnel[34.1] +1
  49. {"لا ما اجمل هدا العمل", "<a href='event:nextQu37'>-التالي-</a>"}, -- 36 Situationnel[34.2] +2
  50. {"! نحن هنا, لقد حان الوقت لمعرفة اذا كنت حاسماً ", "<a href='event:nextQu38'>-التالي-</a>"}, -- 37 Général +0
  51. {"هل يمكنك اختراق بيتى ؟", "<a href='event:nextQu39'> ! نعم اظن دلك</a>", "<a href='event:nextQu39'> ! لا اعلم كتيراً</a>"}, -- 38 Général +0
  52. {"(هيا لنرى كم هو عدد نقاطك !!! (عليك الحصول على 10 نقاط او اكتر على 15", "<a href='event:nextQu40'>-التالي-</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> ! Von Drekkemaus تحدى </b></font></p>"
  56. .."<p align='center'><font color='#C2C2DA' face='DejaVu Sans Mono' size='18'>...اجب على الاسئلة</font></p><br>"
  57. .."<p align='center'><font color='#BABD2F' face='DejaVu Sans Mono' size='15'>لاختراق منزله, عليك « بكل بساطة » هزيمته Von Drekkemaus الهدف سهل, انت في حديقة </font></p><br>"
  58. .."<p align='center'><font color='#BABD2F' face='DejaVu Sans Mono' size='15'>و لهدا الغرض, يجب عليك الرد على اسئلته دون اغضابه. هناك نظام لحساب النقاط لو اجبت على الاسئلة متلما يريد سوف تنجح, و ادا فعلت العكس ستخسر</font></p><br>"
  59. .."<p align='right'><font color='#C2C2DA' face='DejaVu Sans Mono' size='15'><b>: عدد النقاط المقبول بها</b><br>عدد النقاط المجمعة ستوضع لك فى النهاية يمكنك الحصول على ما بين 0 و15. اذا جمعت على الاقل10 نقاط, يمكنك دخول منزله العملاق.</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'> سكربت : </font> <font color='#BABD2F'> By (Unlocker001) ! 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'>مرحباً</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'>! الى الزنزانة</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'>لقد جمعت "..players[name].pts.."/15. سافسح لك المجال لدخولي منزلي . استمتع جيداً !</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp1'>-! لاتتحرك قبل التوقف) ادخل)-</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'>لقد جمعت فقط "..players[name].pts.."/15. ò.ó .انا اسف, لست مقبولا في منزلي</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp2'>- لاتتحرك قبل التوقف) الانتقال)- [click 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'>تحديث الفأر</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'>تحديث الفأر</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'>لقد جمعت فقط "..players[name].pts.."/15. ò.ó .انا اسف, لست مقبولا في منزلي</font><br><br><font color='#C2C2DA' face='Dejavu Sans Mono' size='15'><a href='event:tp3'>- لاتتحرك قبل التوقف) الانتقال)- [click 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