Advertisement
podoko_Lua

PlayMap [v1.001]

Apr 30th, 2014
1,355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 52.99 KB | None | 0 0
  1. admin =         {       "Pseudo"  , "Pseudo"    }               -- Remplacez Pseudo par votre nom.
  2.  
  3.  
  4.  
  5.  --------------------------------------
  6.  --  Évitez de toucher à ce qui suit --
  7.  --------------------------------------
  8.  
  9.  
  10. liste = {}
  11.  
  12. liste["playlist"] =     {    }
  13. liste["P1"] =   {   "136","203","1767","2369","2697","3311","3603","3881","3908","5043","5091","5281","6243","8354","9048","10788","11291","12043","15152","15339","25839","39576","40572","41413","41441","42328","43129","43201","44454","45542","45690","46084","52038","62440","63366","64516","65322","66457","66602","68097","68439","69345","69568","70135","73039","73797","79772","83007","85662","100598","106197","108937","115767","116040","119012","119135","119217","119242","119389","119537","119540","119814","119884","119907","120013","120657","120696","120770","120845","120856","120876","121108","121416","121452","121772","121777","121941","122097","122148","122333","122547","122563","122576","122710","123123","123217","123299","123301","123330","123436","123522","123812","123906","124577","124717","124749","125078","125206","125723","125742","126325","126432","126496","126555","126858","127049","127159","127161","127853","128194","128859","129017","129067","129119","129745","129837","130029","130685","131224","131493","131540","132021","132590","132745","132789","133373","133404","133508","133519","133632","133649","133795","133916","134024","134039","134184","134590","134929","134996","135084","135340","135767","136276","136372","136418","136627","136778","137024","137068","137552","137657","138005","138017","139694","140566","141014","141224","141355","141898","142311","142577","143026","143511","144304","144888","145210","145354","146006","146247","147211","147936","149095","149846","151204","151723","153201","153252","153730","154915","154974","155180","155355","155460","155463","155578","155968","156000","156012","156461","156546","157033","157312","157590","157687","157712","157743","158033","158550","158563","158582","158687","158731","158963","159024","159038","159543","160091","160990","161177","162374","162561","163643","164114","164200","164213","165076","165443","165455","165565","166292","166368","167001","167100","167108","167402","167618","169024","170597","171086","171414","172855","173024","173694","173952","174718","176067","176748","176820","176936","177632","178025","178046","178354","178481","178631","179339","179829","180079","180127","180238","180246","180264","180347","181693","182121","182387","182822","182896","183895","185068","185090","185492","185516","185911","186372","187001","187069","187466","187756","188048","188273","188648","188816","189731","190129","190909","191222","191561","191583","191592","191698","192668","193187","193774","193813","194471","194688","195765","196160","196334","196520","196529","196584","196688","196702","196964","197383","197701","197837","198246","198620","198928","198949","198976","199195","199330","199806","199822","199903","200000","200667","200799","201148","201937","202107","202115","202953","202954","202957","204353","204475","204721","204722","205515","206400","206805","207073","207342","207662","208112","208767","210165","210215","210772","211536","211663","211815","212009","212231","212279","212456","214161","214781","215331","215337","215475","215588","216010","216104","216460","216727","217059","217385","217532","217836","217864","217942","218015","218188","218564","218848","219297","219444","219899","220239","220435","220530","220624","220904","221016","221535","222458","222560","222673","222680","223412","223588","223663","224053","224131","224223","224443","224530","224717","225132","225941","226115","226494","227051","227056","227346","227409","227600","227694","227791","229718","229916","229937","230469","230774","230848","231132","231528","231605","231794","232076","232664","232697","233093","233256","233274","233535","234494","235616","237106","237116","237240","237417","237580","237607","237654","237748","237759","237955","238749","238801","238819","239120","239719","239840","239901","239917","239928","239936","240185","240196","240622","240780","240849","241048","241129","241331","241608","242375","242396","242546","242572","243537","243562","243794","243862","243913","243962","243989","244304","244342","244357","244987","245282","245491","246821","247806","247831","247923","248162","248447","249122","249836","250589","251141","251575","252055","252219","253185","253253","253295","253821","253894","256169","256806","257072","257352","257815","257851","258445","258662","258688","260461","260486","260525","260547","260550","261270","261586","261748","262145","262174","262486","262580","262641","262885","262898","263164","263218","263772","263781","264152","264299","264473","264645","264703","264743","264784","265329","265662","266719","266951","267007","267153","267664","268202","268360","268496","268534","268976","269125","269296","269300","269855","270023","270791","271283","271601","272143","272224","272470","272697","273077","273130","273769","273993","274033","274333","274376","274707","274733","275684","276316","276477","276765","276995","277731","278694","278899","279054","279254","279292","279801","280977","281144","281536","281549","281833","282389","282649","284616","284654","284698","286011","286217","287193","288157","288380","289068","289376","290095","290238","290423","290486","290490","291297","291669","291694","291828","292107","292195","292239","292376","292494","292515","292579","293083","293217","293342","293659","294179","294525","294879","295515","295912","296131","296277","296361","297138","297418","297430","297935","298135","298149","298690","299156","299158","299260","299698","299932","300186","300836","301901","302089","303770","303774","304098","304215","304475","304489","305256","305402","306086","306314","306355","306685","307909","308681","308831","309806","310148","310507","310524","310677","310682","310685","310693","310702","310717","311161","311926","312401","312696","312789","312816","312826","312919","313091","313281","313368","313671","313783","314861","315298","315487","315747","316361","316640","317193","317215","317282","317335","317656","317688","317763","317764","319426","320653","321079","321326","321358","321362","321692","322014","322022","322119","322216","322575","323318","323327","324655","325360","325502","325536","325997","326032","326865","326904","327130","328155","328352","328718","328903","329588","329681","329959","330109","330199","330469","330950","331054","331559","331615","331704","331706","331727","331742","331787","331800","331821","332112","332117","332119","332122","332144","332146","332149","332156","332159","332177","332540","332547","333044","333068","333074","333170","333188","333697","334249","334250","335900","336108","336600","336614","336660","337230","337440","337546","337588","338114","338157","338327","338895","339068","339290","339398","339596","339688","339749","339859","339873","339904","340220","341934","342405","343098","343593","343801","344104","344274","344621","344951","345290","345749","346069","346677","346690","346691","346693","347190","347463","347470","347531","348083","348093","348140","348367","349285","350258","350722","350770","351355","351361","351566","351777","352057","352807","353818","354247","354249","354251","355502","355630","356638","356909","356961","357158","357531","357641","357663","357666","358131","358201","358281","359339","359813","359995","360279","360308","360480","360792","360812","361015","361032","361286","361294","361303","361307","361495","361525","361691","361793","361804","361852","362061","362244","362395","362469","362492","362661","363040","363680","363684","364676","364751","364828","365009","365011","365716","365865","365908","366109","366120","366222","366268","366269","366741","368413","368452","368505","368687","368830","368856","369121","369681","370090","370179","370831","371023","371837","372401","372636","373206","373748","374078","374125","374175","374880","375514","376333","376396","376713","377190","377377","378330","378386","378820","379257","379758","380417","380691","381253","382106","383820","384048","384247","384310","384371","384990","385105","385110","385169","385840","385867","385936","386043","387336","387464","387798","388470","388828","389173","389657","389918","390146","390223","390595","391261","392441","392639","392829","395318","395468","395605","395749","396163","397311","398213","398326","399688","400020","401124","401127","401128","401137","401142","401427","401428","401476","401501","401665","401807","401912","402000","402204","402274","403124","403186","403200","403697","404035","404251","404541","405668","405686","406075","406483","406863","407007","407029","407192","407291","408023","408648","409454","409601","410121","410520","410575","410761","411351","411466","411687","411956","411975","411979","412266","412768","413929","414440","414919","415469","415896","415936","415970","416107","416504","416625","417959","418301","418943","419062","420001","420239","420293","420398","420483","420771","420818","420969","421580","421611","421718","421775","422019","422944","423161","423192","423720","423779","423796","423882","423889","424234","424284","424297","424459","424611","424998","425229","426149","426479","426608","426619","426813","426992","427016","427023","427135","427256","427634","428183","428672","428688","430455","430660","430805","430875","430877","430987","431721","432652","433950","434314","434375","435599","435893","436073","436086","436215","436354","437035","437409","437646","437742","438546","438596","439198","439547","439635","440517","440667","440803","441339","441402","442041","442109","442206","442510","443129","443252","443319","443584","444470","444669","445078","445142","445167","445278","445284","445675","445897","446022","447416","447604","448034","448465","448567","448591","448673","448688","448731","448764","449330","449355","449532","449688","449769","449785","449925","450262","450426","450430","450606","450684","450698","450711","450742","450856","450885","450971","451030","451570","451659","451749","452040","452055","452078","452080","452353","452402","452480","453191","453247","453463","453778","453781","453910","454245","454535","455247","455254","455306","455499","455506","455662","455756","455812","456159","456355","456581","456647","457180","457300","457604","457693","457768","457966","458081","458194","458282","458439","458651","458689","460097","460552","460759","460772","460942","461167","461541","461661","462784","463669","463833","464729","464759","465183","466312","467131","467304","468020","468270","468306","468601","468823","468972","469280","469595","469972","469979","470111","470286","470759","470956","471221","471276","472035","472194","473946","474438","474775","475224","475390","475402","475496","475513","475985","476124","476141","476149","476169","476180","476304","476886","477138","477193","477297","477351","477415","477492","477719","477904","477952","478077","478338","478349","478353","478496","478624","478865","478976","479001","479394","479507","479608","479690","479765","479870","480500","480826","481141","481156","481302","481418","481477","481658","481884","482383","482909","483957","484821","485004","485657","485685","485985","486057","486326","486553","486791","486805","487571","487678","487872","487891","487960","488159","488486","488704","488799","489170","489372","489903","489946","489992","490050","490127","490479","490552","490701","490904","491069","491104","491773","492248","492411","492892","492964","493721","493809","493848","494505","494920","494975","495785","496051","496209","496611","496973","497002","497337","497619","497933","498000","498173","498396","498408","498835","499030","499033","499334","499472","499780","499816","499821","500187","500332","500575","500641","500747","500945","501254","501357","501652","502190","502649","502809",}
  14. liste["P3"] =   {   "113156","124000","149422","149451","150607","150651","150664","151655","152260","152733","153996","155480","155606","155611","155628","155765","156720","157004","157203","157805","157960","158345","158417","158909","159131","159187","159298","159932","160841","161023","161434","162482","163094","163159","163172","163506","163531","163596","164544","164916","165186","166032","166037","166056","166271","166333","166361","166430","166805","167075","168204","168754","169059","169076","169110","169139","169228","170514","171148","171480","171482","171776","172501","172512","172520","172547","172605","172621","172951","172976","173623","173816","174223","175204","175280","176253","176507","176619","176710","176729","179005","179488","179492","179807","180801","182370","182769","183139","183141","184648","184817","184868","185289","185428","185529","185873","185887","186066","189819","190646","190996","191177","191203","191205","191443","191642","192158","192255","192959","193662","195116","197229","198988","199210","199710","199826","201000","202574","203664","204488","204647","205240","205506","206396","208056","208373","208548","208653","208940","209848","213752","213755","213874","214631","214755","216171","216173","217261","220352","222377","222910","223174","223947","224108","225744","226266","230588","231137","231921","232469","232678","235037","236768","237091","242291","250153","254785","257218","257324","257715","258192","258908","259319","261298","261814","263819","263926","264091","268915","270143","270924","271193","271411","272183","272402","272518","272689","277427","277513","277824","279337","281948","282584","284134","286254","289865","295465","295630","295932","297442","299942","299983","301610","302080","303151","303939","304861","305567","305614","305705","305820","306365","306384","306655","307324","313216","314743","315666","315800","316012","318129","319443","320483","320626","322582","327354","327743","329200","329318","329571","330933","330967","331344","331988","332130","332906","333002","336305","337644","342035","343456","354984","357814","361500","365061","368839","372255","372419","373105","375455","376704","378704","380516","391924","392240","393426","394132","395216","395310","395961","397467","397469","397478","399364","401630","403755","403940","408577","408643","410040","410045","412467","412913","419369","419635","420877","422981","423311","424604","424685","424900","425747","425884","431433","431749","432501","435812","438333","438364","438449","439092","444589","447805","449496","454049","455271","457726","458528","460961","467137","476706","478236","482791","492222","492399","496610","496886","497965","499986","500000","500690","500748","500894","504485","505619","506032","506613","506940","510996","511136","512887","514311","522719","523270","528032","531084","536905","541223","541693","541729","543010","549666","551317","552986","556575","556841","557066","557074","560526","560583","562897","563436","564198","568122","571683","574183","575497","584783","586901","587501","593204","593431","593530","596239","598845","605255","608368","612415","618999","654894","684566","692650","692740","721319","722837","729863","758595","783547","801683","815336","834297","842019","842167","868262","881158","886744","898934","912356","914570","919484","970919","976944","999963","1000006","1004622","1014313","1018394","1046877","1066607","1111252","1130256","1156092","1157281","1162831","1164086","1225867","1226207","1242584","1255359","1265789","1266330","1301649","1303323","1323048","1333846","1383297","1384078","1390405","1398609","1403454","1413528","1427980","1435902","1494499","1503203","1526894","1531604","1540221","1580356","1580835","1593066","1595965","1615753","1615949","1620703","1647131","1678634","1722755","1733211","1788490","1807217","1809410","1989803","1990413","2024960","2040569","2130169","2178800","2311703","2329940","2416969","2423300","2451444","2469365","2520540","2636519","2788517","2794566","2795201","2846829","2989803","3038589","3136410","3199998","3295967","3326197","3333223","3380788","3456260","3551333","3668866","3668888","3690269","3907267","3908151","3988424","4000000","4067327","4074214","4445580"}
  15. liste["P4"] =   {   "120806","126092","131444","151712","155582","155982","156966","158280","159709","164663","165741","166138","168872","169710","171093","171097","172357","173231","179968","182878","183705","183740","183760","186482","187059","187088","188821","199112","199265","200017","213781","215312","219032","234373","234665","239860","239941","245354","249255","250889","251052","273581","308787","317521","326777","348365","355562","357214","357644","360778","364544","364688","365734","367747","371007","379805","382841","384181","392150","398828","404226","413242","416324","420875","421185","421195","423670","426398","427273","431506","433332","436128","437313","438271","442098","444118","452653","452773","453948","455820","458677","460646","461925","467799","470160","474113","474477","484159","489046","490175","497021","500471","504166","504567","509320","515250","517344","524924","528954","562802","576319","576456","584430","598394","607131","617225","743739","772825","773147","776051","798052","812808","853788","901990","909734","923878","1031070","1061308","1124454","1139501","1149009","1150596","1193841","1196336","1233889","1341479","1346981","1347532","1360297","1372143","1377965","1381446","1400684","1406626","1476450","1510908","1519938","1570590","1584280","1596859","1615397","1622242","1641473","1655360","1696123","1697034","1732919","1752164","1754420","1796428","1836964","1845748","1871593","1927549","1937184","1964128","1965721","2087280","2104751","2113338","2151169","2199656","2406202","2417669","2462668","2465963","2577135","2579134","2587007","2597411","2630179","2645143","2661109","2668819","2693292","2703778","2722183","2782301","2847459","2905546","2907925","2915515","2927599","2932610","2957283","2957682","3008334","3016804","3017381","3024969","3028325","3043400","3047886","3049560","3051156","3060750","3097109","3112222","3147428","3168488","3310640","3532970","3534630","3583744","3593731","3594988","3617459","3798375","3799806","3820670","3837616","3932849","3971113","3981622","3996892","3997006","3997083","3997117","3998852","3999440","4007168","4012245","4062696","4087743","4127339","4141157","4367103","4530334","4624694","4657760","4767239","4818624"}
  16. liste["P5"] =   {   "129420","154859","202952","224120","230970","235931","238162","247992","256797","257777","257782","261886","263215","263800","270238","277994","280679","287044","290549","299897","306561","315632","317110","330773","330797","334645","350441","448507","450140","453765","457558","476658","485653","495829","506218","525684","543398","578714","604406","617254","638159","706326","744348","750942","763156","779260","786497","848208","878196","899457","927182","979494","1135318","1164011","1200519","1211568","1214279","1259600","1262441","1262576","1263900","1268550","1300245","1334402","1349031","1352113","1412929","1452622","1478116","1485916","1528279","1573316","1695882","1697837","1708963","1712533","1716752","1730988","1738125","1738989","1746290","1749688","1756788","1762434","1762519","1766747","1777814","1787404","1796467","1799015","1800626","1820179","1830174","1836823","1844159","1846067","1847621","1849171","1860790","1863924","1872587","1889408","1889794","1913370","1942013","1956373","1976323","1980188","1984663","1998819","2012914","2018904","2019344","2052945","2066584","2115470","2119048","2139252","2154135","2203483","2220773","2239451","2270547","2328121","2360279","2367228","2372033","2376836","2407012","2427381","2429189","2446305","2446697","2455096","2462352","2470112","2476115","2479910","2490148","2539757","2546729","2552396","2563171","2621331","2636264","2637780","2638619","2688651","2760552","2763000","2780261","2784715","2794881","2796541","2798026","2802862","2852625","2866381","2880542","2932572","2949304","2953001","2957089","2961043","2971843","2975039","2996913","3007211","3014000","3018693","3019964","3023538","3026528","3052500","3067412","3100888","3107962","3110059","3121566","3122999","3128066","3130657","3130919","3132651","3167482","3171809","3191094","3191391","3213325","3237957","3283533","3295987","3295997","3296008","3305726","3312511","3327927","3335221","3344068","3358845","3396857","3421888","3436062","3451399","3471523","3473320","3474595","3477001","3561784","3572354","3574034","3593473","3631500","3676167","3678544","3688100","3692406","3815717","3910771","3924361","3932627","3938620","3969167","4000418","4048823","4048949","4081617","4094915","4202281","4297651","4346298","4365311","4455415","4457730","4550279","4586150","4656673","4784470","4868634","4869079","4893002"}
  17. liste["P6"] =   {   "49101","60303","113235","119308","121043","121494","123777","124969","126151","127440","133082","139581","141827","147831","149476","155262","155591","158569","160303","164404","164859","166106","167093","169959","171290","179384","183423","183427","184294","192144","192155","196950","198823","204059","206891","208692","211171","211533","213396","217333","219350","220999","226423","238926","239907","242204","242381","246776","248490","248644","250042","251430","251448","254893","272272","275965","285235","290801","293308","301206","306730","313415","314416","315612","317820","323597","325027","327706","333365","334288","339035","340745","341270","346316","356553","356643","356892","370937","372968","389671","407025","411996","413183","418415","425247","434768","437196","478655","486012","491590","499940","515187","581701","605286","660510","672430","693009","697877","702824","748650","778287","868686","921661","923485","928583","941707","944540","993954","1090395","1245573","1249188","1255674","1297039","1333143","1391896","1412254","1412359","1427861","1432572","1505167","1542565","1634606","1698766","1709809","1779549","1783602","1854137","1928572","1933292","1957536","2002821","2036283","2261863","2270500","2305185","2305294","2373533","2394359","2434490","2435302","2456807","2465212","2468712","2493085","2493651","2515079","2618581","2655603","2686903","2734103","2766068","2803902","2865445","2868361","2884007","2885923","2918771","2929292","2973170","2984874","2999899","3038859","3078733","3096613","3118578","3131890","3132494","3150249","3157116","3176749","3197968","3211751","3229524","3265107","3265446","3270078","3286276","3296011","3333614","3361309","3382202","3464484","3478259","3478807","3499928","3529629","3641144","3659540","3661853","3674055","3729243","3753845","3765910","3954735","4000179","4141348","4702404","4796116"}
  18. liste["P7"] =   {   "3078","8679","82090","127419","129835","142101","142738","146364","146615","147437","149853","155415","159076","159204","164931","165808","169033","169909","178486","179656","180035","181261","182233","185646","185955","185985","186484","186695","197413","197442","197503","197742","201502","201606","210217","211248","212576","212903","213470","214465","214788","215601","219889","220737","221767","222730","228517","233294","233333","235464","237251","238378","240994","244642","245152","247329","247904","248906","250491","261462","266889","269131","269534","274963","276098","280637","281784","284702","286087","292057","294500","298123","302456","303391","306755","313182","318970","321268","327447","329627","335361","337813","352622","353079","363635","364490","366205","369138","371072","371332","402190","405795","417816","421885","422655","423989","424864","429339","433483","446627","446819","455094","466871","470069","482003","500133","505196","511007","520258","523865","547602","552213","557334","581408","611234","629731","639804","659216","667934","724780","763961","780286","847540","1053516","1107804","1190826","1193625","1222017","1222509","1252255","1255253","1368022","1429444","1481024","1502799","1550076","1556972","1563226","1662570","1683790","1698845","1699288","1855968","1864676","1931963","1943359","1958341","1970001","2006183","2019746","2188104","2208335","2223354","2227644","2261303","2311047","2355739","2378818","2419958","2439335","2444362","2458243","2558294","2589845","2598599","2616341","2675699","2708773","2746128","2805602","2808729","2813218","2827176","2842279","2847966","2870002","2929597","2932980","2959762","2959999","2960917","2969368","2972400","2973921","2978151","3014728","3051957","3117749","3124696","3224383","3237735","3270188","3279863","3297112","3314017","3373223","3407209","3425103","3432133","3452208","3464359","3469357","3497411","3512325","3526384","3560912","3586018","3603116","3605217","3710926","3714605","3779546","3865524","3866374","4017491","4018172","4116927","4293755","4524913","4545101","4688903","4839357"}
  19. liste["P8"] =   {   "125204","149514","159903","176885","185685","197214","198028","212956","216809","263777","270489","294822","322898","343455","350169","352617","404907","414991","421583","422305","465849","476573","481925","484218","497904","498707","506950","508252","509145","515913","542870","544675","570888","593948","609552","626107","742744","898449","1089882","1095753","1100306","1296882","1341133","1365330","1380404","1390764","1405207","1452753","1474189","1518389","1568962","1651220","1653564","1662853","1696100","1703817","1709353","1721620","1758349","1789491","1805044","1819830","1821046","1830591","1887755","1901078","1912644","1984585","2002867","2099300","2110278","2170579","2190794","2241748","2472355","2476452","2479717","2541893","2562533","2564902","2574988","2611862","2768546","2779096","2781563","2785680","2850049","2854223","2859994","2866657","2873024","2876773","2877342","2902195","2993038","3036001","3056988","3165231","3175580","3189412","3210210","3265149","3294077","3296020","3296027","3296031","3418308","3460996","3482188","3514818","3518304","3537721","3605225","3611506","3630912","3688810","3755513","3797905","3810119","3866756"}
  20. liste["P9"] =   {   "121024","134300","139360","141301","144903","145968","151850","156030","163770","163833","165264","165993","180301","183676","186490","187672","191021","205280","218061","225041","237089","238365","239853","239883","253864","257008","260953","266723","269622","270403","277517","278557","304325","308541","313076","316859","324426","327308","328997","332114","333333","348115","352154","361426","365347","365742","370045","377297","379521","379615","382746","382906","384457","384989","387280","402313","415547","421576","421608","434730","445108","445520","449424","449673","450986","452850","482845","499397","512836","542808","569959","599834","604878","605894","622358","628530","631342","651831","716537","716722","744202","765392","772557","798831","808378","852256","869358","874246","875176","876556","963540","969431","970117","970198","976697","977262","1081250","1086601","1104249","1174479","1188688","1200915","1224372","1272516","1275389","1299027","1306989","1311201","1318294","1338514","1344447","1352685","1394013","1396768","1419534","1428388","1429835","1493128","1505195","1712362","1734175","1740898","1751478","1793831","1798816","1877115","1909167","1923014","1966907","1967293","1999118","2079741","2106356","2107419","2252334","2302488","2319756","2384762","2386468","2447229","2524170","2618582","2639255","2686331","2724484","2741272","2763444","2843248","2851032","2856758","2858383","2887942","2899026","2901352","2913522","2914749","2916200","2920810","2922622","2930438","2934496","2952221","2964580","3008618","3037332","3100074","3113666","3120127","3176576","3196883","3224581","3244657","3269221","3296037","3401753","3420275","3433913","3450006","3472929","3556145","3567150","3574216","3606940","3612172","3692263","3745142","3745152","3917762","3991389","4041464","4241382","4787072"}
  21. liste["P10"] =  {   "276534","279689","280120","280159","281431","281479","281492","281649","289932","289964","290388","290546","290725","290865","290971","290974","291399","291643","292592","292672","292678","293222","293487","295988","296033","299123","300404","302224","304198","304482","305748","305753","306106","306360","306382","307925","307930","311496","333020","390383","390386","390649","390657","391057","391643","391664","391738","392616","392646","393406","395246","397066","459284","464787","478116","479091","481676","489470","489829","490248","492283","495880","500312","521931","540495","573817","697561","741041","770675","787131","793117","797964","799141","802103","802958","802975","803074","811211","848697","852617","866256","908739","937383","958881","1026249","1277941","1388662","1414787","1463332","1492805","1514928","1515058","1519483","1522692","1525486","1528388","1533333","1533374","1539148","1543937","1545834","1659906","1661909","1754355","1794873","1794907","1812056","2360566","2408376","2526952","2723249","2732060","2842113","2931068","2939549","2964900","3061252","3067251","3107377","3146721","3175437","3295213","3322939","3349286","3400319","3419948","3473722","3480467","3540608","3549404","3550350","3579303","3584123","3584826","3587860","3620709","3670885","3685564","3699989","4329532","4543602","4552105","4661919","4679748","4688670","4705798","4819396","4842994","4844438","4850852","4873593","4876027","4907956","4911760","4934730"}
  22. liste["P11"] =  {   "258972","334445","423793","615791","760329","812007","931408","931435","946893","955523","1296883","1542025","1638989","1676629","1782151","2389613","2393716","2403639","2428213","2429313","2435372","2541364","2561153","2563004","2680717","2683284","2686097","2693083","2761246","2821033","2910904","2929496","2938327","2940045","2944932","2951616","2953590","2956031","2956156","2971085","2975699","2976059","2983430","2986318","2999898","3001393","3006311","3020988","3027934","3032840","3033710","3044452","3057493","3061098","3068111","3069138","3079426","3090849","3101671","3103683","3105156","3110659","3119050","3128337","3140275","3167932","3170618","3187755","3195331","3197349","3225462","3240230","3292389","3296041","3333339","3334083","3337200","3359267","3377553","3430472","3435288","3460936","3485896","3488764","3509662","3515991","3548160","3611033","3745155","3745168","3808004","3930498","3946003","4343671"}
  23. liste["P13"] =  {   "155517","159116","159145","167333","170007","175454","176615","177652","186855","187035","195453","197368","212322","215933","229974","235717","249760","253469","255943","257092","258289","259854","266398","277631","277835","280949","281668","281985","285589","285961","292668","292808","293658","294478","295487","296020","298424","301559","305680","313138","313214","320607","322922","330590","342640","343875","346684","353356","357837","366809","368585","371579","374995","392861","431873","503679","507341","507884","515684","544695","549759","554154","591528","593003","597348","597804","621850","639878","651656","655207","658960","720672","733146","763368","814311","823329","1102513","1110982","1134969","1296299","1526368","1533335","1551020","1568331","1584555","1610638","1636814","1642725","1646448","1657819","1705006","1719709","1737297","1737800","1737914","1766343","1802012","1802528","1828801","1830551","1852910","1853529","1853689","1869912","1872179","1893451","1923584","1949730","1951944","1952415","1962695","1972688","2009003","2031184","2033229","2036898","2050389","2080400","2082776","2128560","2132250","2176211","2202628","2208924","2239788","2242899","2252731","2297260","2309030","2341982","2346943","2357991","2362046","2378364","2395201","2420714","2427910","2432090","2444812","2448730","2466489","2474044","2484316","2574744","2574960","2601214","2636207","2643916","2668918","2669415","2673019","2682583","2692883","2693344","2693587","2704483","2707566","2708585","2718406","2719419","2738370","2747525","2750014","2758747","2772507","2777168","2789121","2797076","2803483","2805938","2811229","2812309","2817711","2818330","2819876","2828481","2844637","2850177","2854813","2858882","2860211","2860683","2869337","2877042","2884392","2887929","2890123","2901717","2914456","2917286","2918822","2920826","2925531","2925762","2933011","2933390","2941840","2945156","2947140","2961800","2963166","2967631","2974387","2996951","2998268","2999994","3000006","3003490","3008319","3008515","3012178","3012311","3016226","3023941","3024238","3024606","3034308","3041105","3042080","3043779","3053202","3062939","3075090","3076903","3085218","3089270","3099302","3118161","3118286","3133917","3137929","3142783","3146209","3149125","3161324","3163166","3164813","3182006","3182487","3185979","3200001","3219400","3225624","3241030","3243455","3250426","3281758","3292308","3293485","3295954","3295960","3311534","3337127","3338283","3343092","3343148","3374634","3386996","3395605","3399831","3402881","3404894","3424529","3428069","3430712","3434941","3447134","3459986","3463050","3471016","3473704","3473925","3483300","3484437","3491601","3493456","3493490","3500755","3513929","3526517","3527399","3530999","3535850","3547571","3558682","3560999","3561333","3571256","3576303","3588395","3603631","3619320","3637540","3645415","3659983","3668877","3690128","3702819","3707630","3725142","3734988","3734989","3734990","3734991","3734996","3734997","3734998","3734999","3745158","3747520","3750360","3759157","3767893","3768117","3779861","3780618","3799357","3804078","3815568","3820501","3826546","3838020","3846632","3849999","3850000","3860578","3866660","3866663","3875019","3920916","3937567","3938895","3939000","3944386","3944814","3958217","3964892","3969628","3976766","3979220","3995343","3999110","3999979","3999991","3999992","3999997","4000007","4000008","4000009","4000662","4019421","4027263","4038388","4039451","4058168","4093488","4107909","4121359","4209243","4220381","4234558","4237910","4241333","4249695","4283009","4291422","4311255","4317592","4334509","4337732","4362335","4365527","4367270","4390388","4413656","4484685","4506542","4537590","4593355","4594304","4644584","4675691","4697673","4720851","4748429","4794517","4822672","4883346"}
  24. liste["P17"] =  {   "2283","2806","3154","72339","103182","107544","112790","114122","117548","120152","122911","124359","130763","136966","138036","138678","140850","144468","144677","145020","146801","147436","148424","150692","152299","155168","156685","156847","158128","159351","160762","161730","163682","164802","165112","165747","165843","166705","167941","168776","169065","169892","171152","175205","176263","177236","177813","178545","178657","179541","180191","180255","180274","180469","180509","180619","181312","184110","184924","185760","185774","186604","190026","191201","191716","191749","191753","192391","192566","193009","193588","193936","194676","195720","196433","196468","196574","197219","197501","198549","198715","199219","201323","201442","206810","208058","208162","208914","209315","209708","209799","210188","211041","211528","211565","211885","212542","213331","213697","213933","214037","214660","214775","215938","216439","216505","216553","216735","217282","217881","217900","219548","220500","221564","222098","223293","223810","223986","224441","225017","226069","226879","226883","227417","227851","228462","229814","229827","229830","229834","229835","229944","230510","230741","231254","231694","231905","232140","232274","232451","232699","232791","233230","233345","233398","233687","234039","234502","234959","235034","235501","235651","236146","237000","237041","237263","237269","237278","237281","237297","237321","237744","238380","238791","239826","239880","240544","240548","240973","241211","241295","242708","243279","244006","244699","244888","245223","246790","246973","247815","247818","248098","250610","250634","251459","252033","252759","252806","253883","254291","255098","255542","255893","258717","259604","259716","259833","260024","260292","260338","260377","260384","260478","260678","261078","261172","261720","261959","262144","262212","262239","263163","263182","263624","263907","264132","264232","264348","265221","266704","266765","266807","266854","266913","266930","267187","267597","268985","269337","270668","270819","271523","273434","274321","275017","275514","277687","277784","278506","278916","279100","279256","280382","280896","281730","282101","282434","282694","283526","283715","283874","284299","285752","286333","287268","289821","291628","292348","292614","293065","294522","294943","299002","299503","299971","300055","301315","302936","304356","305677","306213","308280","308435","308694","308711","308729","308992","309029","309057","309169","309834","312713","313245","314159","314205","315801","316289","317696","317754","317779","318378","318813","319524","319841","321339","321712","321814","321906","322771","323085","323115","323366","323600","324355","325172","326192","326585","327254","327266","330441","332210","332290","332467","333277","333656","333837","335507","337581","337774","339272","339418","339643","339896","340069","340901","341116","341239","343048","344361","344865","344952","345257","345312","345943","348479","348801","349140","349389","349984","350251","350519","352381","352710","352885","354616","354878","355658","355676","355769","355957","356722","356982","357328","357428","357629","359055","359521","359901","360201","360271","360273","360365","361382","362549","363411","363625","363638","363822","364186","364998","365315","365464","365652","365774","367520","369160","369230","370444","370850","371076","371078","372970","373511","375381","378826","379326","379550","379745","379866","381043","381287","381305","381569","381669","382977","384206","384869","385203","385295","386029","386046","386959","387012","387180","387270","387290","387638","388447","389582","391625","391693","391831","391868","391990","392446","392492","392913","393675","393851","394890","395459","395585","395607","395638","396223","396332","396347","396645","396861","397296","397501","397812","397938","398011","398041","398081","398942","399633","399673","400429","400666","400866","401443","401778","401945","401995","402214","402239","402453","402936","403698","403910","404440","404590","405075","405295","405339","405497","405679","405833","405955","406266","406486","406881","406982","407165","407230","407294","407455","407457","407488","407495","407536","407686","407746","408978","409199","410230","410532","410565","410608","410736","410813","412211","412316","412657","412752","413408","414188","414460","414899","416015","416142","416552","418022","418196","418265","418293","418323","418337","418600","418606","418658","419374","419735","420806","420956","421302","421717","422361","422509","422580","422939","423062","423449","423517","423672","424361","424786","424795","425030","425044","425215","425349","425548","425600","425771","425797","425806","426638","427300","428517","429262","429822","429897","430145","430219","430736","431142","431373","431887","433937","434887","436041","436107","436447","437860","438154","440676","441047","441376","441598","443309","444490","444830","444964","445133","445219","447556","448281","452016","453701","455167","459349","463195","463977","465205","468260","470687","470727","471053","472379","472665","475151","475790","477370","477603","480023","482951","483924","484992","494706","496091","496945","499109","499682","499684","499687","500074","501428","501711","501916","504409","504461","504704","504951","505109","505963","506215","507308","507325","508106","508451","508796","509047","509082","510194","511187","511275","512291","512927","514412","514510","514982","517005","517697","523046","528428","531569","536235","537776","538116","545493","549470","551126","556253","556426","558790","563183","563484","564033","566347","566438","571144","580031","583056","583715","586622","586688","587458","590641","592204","594049","594883","595447","603381","606719","606723","608459","610137","611320","613985","616373","616433","620996","624098","624721","627609","634945","645288","646800","658464","664949","667920","669031","670226","694900","704015","732880","734476","737824","737841","749102","759128","763371","763378","789058","792062","798953","813156","824082","829657","838069","846805","849224","879616","905496","972616","976721","976786","979179","982242","1015436","1015582","1019378","1033170","1034035","1051378","1051384","1058681","1085530","1102815","1130728","1132357","1132639","1142116","1143815","1144548","1162611","1167153","1167734","1172426","1174107","1195842","1208798","1208979","1210037","1214182","1216253","1221661","1222899","1229246","1231216","1234914","1249601","1252122","1253523","1255130","1255148","1256845","1262248","1281700","1281981","1286910","1307880","1311059","1321417","1321664","1341396","1346440","1351308","1352534","1358446","1359797","1364063","1368222","1368233","1371239","1371294","1372941","1373000","1373748","1375345","1378209","1393405","1394120","1398732","1404417","1405249","1405496","1416040","1425101","1428436","1445160","1448760","1450554","1453667","1471124","1483155","1487161","1490438","1491022","1492120","1495344","1503393","1504586","1506007","1509474","1512355","1513407","1525272","1531388","1538895","1539515","1539791","1542618","1542736","1555532","1555862","1556661","1564762","1567620","1573213","1573997","1580508","1583655","1586439","1587904","1588884","1589026","1591471","1592767","1595600","1595610","1597594","1600443","1601492","1601786","1601857","1602654","1603050","1605364","1608259","1608638","1609978","1611631","1612436","1612796","1613550","1613927","1614563","1618110","1619934","1621611","1622737","1623300","1628732","1629164","1632294","1632541","1632706","1632746","1634741","1637638","1639996","1643157","1644638","1646120","1648583","1651658","1654096","1654105","1654841","1654903","1657021","1657360","1658171","1659639","1659716","1661852","1663380","1663415","1665249","1665516","1665775","1669046","1673174","1674534","1675083","1687268","1689382","1692628","1693705","1694602","1702169","1703617","1705316","1716693","1716949","1718723","1724289","1728943","1749434","1751944","1759287","1768347","1778687","1787232","1787239","1794287","1802907","1841744","1845710","1848032","1851411","1851568","1851968","1856349","1857829","1862800","1862823","1873736","1923785","1924227","1926831","1927270","1932796","1951856","1952851","1954369","1954898","1956002","1956555","1964700","1964752","1965819","1973574","1975275","1975286","1975684","1975753","1976007","1976857","1979131","1982476","1985019","1987990","2005559","2007170","2007205","2007295","2012147","2018511","2023552","2030343","2046467","2047177","2048474","2068543","2070768","2076632","2079190","2089069","2098621","2101747","2106576","2118599","2134537","2138401","2141379","2144010","2149382","2150335","2174319","2176620","2180790","2185089","2194041","2214661","2219308","2223685","2228834","2245005","2255210","2262476","2286056","2287914","2331474","2347666","2372538","2378820","2393139","2417713","2453022","2509175","2527934","2536577","2538131","2546484","2557885","2564883","2577060","2580114","2582610","2586491","2588032","2592421","2617003","2645615","2682985","2683170","2686505","2725924","2726034","2794075","2796001","2813487","2816067","2840770","2854246","2868414","2883986","2894072","2928081","2953315","2988325","2989266","2991507","2992312","3005251","3008155","3026533","3029580","3036416","3120368","3123384","3142015","3156569","3175920","3209087","3213562","3249833","3267620","3347209","3408247","3444803","3447108","3453351","3469987","3504036","3517347","3518418","3535192","3537419","3544895","3545845","3548376","3548378","3548406","3549484","3549627","3549840","3556405","3556489","3556690","3572407","3574927","3575034","3575108","3575170","3575216","3575293","3575425","3575463","3579335","3579476","3582577","3584275","3584689","3592471","3594130","3595900","3603799","3603802","3603809","3604799","3607846","3611702","3611885","3613029","3617674","3620542","3630433","3631748","3637041","3638794","3639993","3644272","3652003","3652102","3654416","3662698","3667358","3668754","3670084","3674997","3676141","3676555","3679397","3679666","3679884","3680180","3680220","3680221","3680223","3682405","3683201","3683224","3683294","3683383","3683393","3683520","3683600","3684229","3684455","3684457","3684465","3684784","3684802","3685352","3685382","3685486","3688419","3690578","3691609","3691622","3693822","3696662","3700155","3700684","3702767","3705931","3706599","3712183","3716560","3721990","3727755","3728013","3737576","3738767","3778389","3795907","3799507","3799857","3799951","3801780","3816622","3818249","3821104","3834905","3845214","3847244","3854268","3857914","3889414","3901403","3909339","3912540","3931290","3946626","3948683","3953320","3953425","3967150","3967250","3970909","3984750","3985806","3986301","3988460","3992276","3992671","3994471","4003729","4008546","4024450","4035194","4049042","4059294","4088014","4088129","4091580","4103460","4119705","4148332","4174318","4174320","4189235","4201049","4212491","4229660","4234534","4234556","4238784","4271298","4323335","4338921","4344186","4413613","4465679","4483851","4489653","4508416","4516043","4551993","4612295","4636754","4666540","4681759","4684611","4685111","4701213","4707191","4708958","4717377","4724027","4726846","4734427","4746635","4747722","4758350","4806841","4815404","4823707","4836483","4872121","4902526","4956492"}
  25. liste["P18"] =  {   "767142","1299415","1408349","2067212","2350333","2391874","2403601","2724523","2828653","3360371","3389471","3485735","3542818","3588592","3594075","3594982","3597078","3599387","3604095","3604466","3607701","3607702","3608780","3608970","3609021","3609664","3610314","3610391","3610645","3611760","3612194","3613669","3614156","3614384","3617974","3618476","3618594","3619690","3619917","3620309","3620571","3620811","3621663","3622939","3624107","3624400","3625576","3627013","3629143","3630267","3631170","3632905","3634588","3636939","3637386","3638927","3646346","3653815","3656275","3656585","3661916","3662299","3664724","3666517","3682449","3698736","3714415","3716681","3720793","3729289","3730104","3731768","3745172","3745177","3745187","3745190","3745194","3745200","3745207","3745213","3745218","3745220","3753765","3758473","3761727","3766438","3775820","3776993","3784736","3787386","3791957","3793911","3794214","3800947","3815985","3816093","3822307","3841025","3844155","3845523","3849777","3865414","3871718","3911773","3957626","3969735","4044140"}
  26. liste["vanilla"] = {    1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143 }
  27.  
  28.  
  29.  
  30. P =     { "P1","P3","P4","P5","P6","P7","P8","P9","P10","P11","P13","P17","P18", "vanilla", [0] = "playlist"}
  31.  
  32.  
  33. rota = {}
  34. rota [ "playlist"] =    {}
  35. rota [ "random" ]   =   {}
  36. rota [ "defilante" ] =  { "P18" }
  37. rota [ "survivor" ] =   { "P11", "P10", "P10", "P10", "P10", "P10", "P10", "P10" }
  38. rota [ "racing" ] =     { "P17" }
  39. rota [ "vanilla" ] =    { "vanilla" }
  40. rota [ "bootcamp" ] =   { "P3", "P3", "P13", }
  41. rota [ "normal" ] =     { "vanilla" , "P1" , "P5" , "P9" , "vanilla" , "P6" , "P7" , "P8" , "vanilla" , "P1" , "P4" , "P6" }
  42.  
  43. currentP = "vanilla"
  44.  
  45.  
  46. time =      {   playlist = 120, vanilla = 120, P1 = 120, P3 = 360, P4 = 120, P5 = 120, P6 = 120, P7 = 120, P8 = 120, P9 = 120, P10 = 120, P11 = 120,P13 = 360, P17 = 63, P18 = 120, P32 = 120}
  47. timeLeft =  {   playlist = false, vanilla = false, P1 = false, P3 = true, P4 = false, P5 = false, P6 = false, P7 = false, P8 = false, P9 = false, P10 = false, P11 = true, P13 = true, P17 = false, P18 = true, P32 = false}
  48. shaman =    {   playlist = false, vanilla = false, P1 = false, P3 = true, P4 = false, P5 = false, P6 = false, P7 = true, P8 = false, P9 = false, P10 = false, P11 = true, P13 = true, P17 = true, P18 = true, P32 = false}
  49.  
  50. rotation = "vanilla"
  51. rotaPos = 1
  52.  
  53. -------------------------------------------------------------------
  54.  
  55. histoMap =  { }
  56. histoP =    { }
  57. histoPos =  0
  58.  
  59. playlistPos = 0
  60.  
  61.     for k, pseudo in pairs ( admin ) do
  62.        
  63.         ui.addTextArea (0, "<font size='20' color='#1'><b> <a href='event:selection'>•</a> <a href='event:prev'>«</a> ‹ <a href='event:restart'>∞</a> › <a href='event:next'>»</a> </b></font>", pseudo, 340, 20, 140, 30, 0, 0, 1, true)
  64.  
  65.     end
  66.  
  67.  
  68.  
  69. selection = false
  70.  
  71. function eventTextAreaCallback ( id, name, callback )
  72.  
  73.         if callback == 'selection' then
  74.  
  75.             if selection then
  76.                 ui.removeTextArea ( 2 , name )
  77.                 selection = false
  78.             else
  79.                 ui.addTextArea  ( 2, "<font size='14' color='#1'><b> <a href='event:playlist'>playlist</a> \n <a href='event:random'>random</a> \n <a href='event:normal'>normal</a> \n <a href='event:vanilla'>vanilla</a> \n <a href='event:racing'>racing</a> \n <a href='event:bootcamp'>bootcamp</a> \n <a href='event:defilante'>defilante</a> \n <a href='event:survivor'>survivor</a> </b></font>", name, 340,40, 100, 180, 0, 0, 1, 1 )
  80.                 selection = true
  81.             end
  82.  
  83.         else
  84.  
  85.             eventChatCommand ( name , callback )
  86.  
  87.         end
  88.  
  89. end
  90.  
  91.  
  92. -------------------------------------------------------------------
  93.  
  94.  
  95. function eventPopupAnswer (id, name, answer)
  96.  
  97.        
  98.         for map in string.gmatch( answer, "%d+" ) do
  99.             print(map)
  100.             table.insert ( liste["playlist"] , "@"..map)
  101.      end
  102.  
  103.  
  104.  
  105.  
  106. end
  107. -------------------------------------------------------------------
  108.  
  109.  
  110.  
  111. playerList = {}
  112. alive = 0
  113.  
  114. tfm.exec.disableAutoNewGame ( true )
  115.  
  116.  
  117.  
  118. for name, v in pairs ( tfm.get.room.playerList ) do
  119.        
  120.         table.insert ( playerList, name )
  121.  
  122. end
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. function launchGame ( )
  130.        
  131.     if rotation == "playlist" then
  132.        
  133.         if #liste["playlist"] > 0 then
  134.             currentP = P[0]
  135.             playlistPos = playlistPos % #liste[currentP] + 1
  136.            
  137.             nextMap = liste[currentP] [playlistPos]
  138.            
  139.         else
  140.        
  141.             print ( "Aucune map dans la playlist \nTapez !add pour ajouter des maps." )
  142.             nextMap = 0
  143.            
  144.         end
  145.    
  146.     else
  147.    
  148.         if rotation == "random" then
  149.             currentP = P [math.random ( #P )]
  150.         else
  151.             rotaPos = rotaPos % #rota [ rotation ] + 1
  152.             currentP = rota [rotation] [ rotaPos ]
  153.         end
  154.        
  155.         nextMap = liste [currentP] [math.random ( #liste[currentP] )]
  156.        
  157.     end
  158.        
  159.  
  160.  
  161.    
  162.    
  163.     tfm.exec.disableAutoShaman ( shaman [currentP] )
  164.            
  165.  
  166.  
  167.     tfm.exec.newGame ( nextMap )
  168.     print(currentP..' '..nextMap)
  169.  
  170.  
  171. end
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. function eventChatCommand ( name , action )
  190.  
  191.     if action == "mort" then
  192.         tfm.exec.killPlayer(name)
  193.    
  194.     elseif isInTable ( admin , name ) then
  195.         if rota [ action ] ~= nil then
  196.             if action == "playlist" and #liste["playlist"] < 1 then
  197.                  
  198.                 eventChatCommand ( name , "add" )
  199.                    
  200.             end
  201.                
  202.             rotation = action
  203.             print ( "rotation : " .. rotation .. "\nLa nouvelle rotation commencera à la prochaine carte." )
  204.  
  205.         elseif action == "next" then
  206.            
  207.             if histoPos == #histoMap then
  208.                     launchGame ( )
  209.             else
  210.                 currentP = histoP [ histoPos + 1 ]
  211.                 tfm.exec.disableAutoShaman ( shaman [ currentP ] )
  212.                 tfm.exec.newGame ( histoMap [ histoPos + 1 ] )
  213.             end
  214.                    
  215.         elseif action == "prev" then
  216.  
  217.             if histoPos > 1 then
  218.                 histoPos = histoPos - 2
  219.                 eventChatCommand ( name , "next" )         
  220.             else
  221.                 print ( "Vous n'avez pas encore joué assez de cartes" )   
  222.             end
  223.            
  224.         elseif action == "restart" then
  225.                
  226.             histoPos = histoPos - 1
  227.             eventChatCommand ( name , "next" )
  228.            
  229.         elseif action == "add" then
  230.                
  231.             ui.addPopup ( 1, 2, "Entrez la liste de vos cartes", name, 300, 200, 200, true )
  232.        
  233.        
  234.         elseif action:sub(0,4) == "time" then
  235.            
  236.             tfm.exec.setGameTime( action:sub(6) )
  237.            
  238.        
  239.         else
  240.        
  241.             print ( "Je ne connais pas cette commande" )
  242.        
  243.            
  244.         end
  245.            
  246.            
  247.     else
  248.    
  249.         print ( "Vous n'avez pas accès à cette commande." )
  250.     end
  251.            
  252. end
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. function eventLoop (past, remaining)
  266.  
  267.         if ( remaining < 500 or alive == 0 ) and past > 3000 then
  268.            
  269.             launchGame ( ) 
  270.  
  271.         end
  272.        
  273. end
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280. function eventNewGame ( )                                       -- reinitialise le nombre de joueurs / configure la partie / met l'historique à jour
  281.        
  282.  
  283.         alive = #playerList
  284.  
  285.         tfm.exec.setGameTime( time[currentP] )
  286.         tfm.exec.disableAutoTimeLeft ( timeLeft[currentP] )
  287.        
  288.         histoPos = histoPos + 1
  289.         histoMap [ histoPos ] = tfm.get.room.currentMap
  290.         histoP [ histoPos ] = currentP
  291.        
  292.  
  293. end
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. function eventPlayerDied ( name )
  301.  
  302.         if currentP == "P3" or currentP == "P13" then
  303.             tfm.exec.respawnPlayer ( name )
  304.  
  305.         else
  306.             alive = alive - 1
  307.  
  308.         end
  309.  
  310. end
  311.  
  312.  
  313. function eventPlayerRespawn ( name )
  314.        
  315.         alive = alive + 1
  316.        
  317.  
  318. end
  319.  
  320.  
  321.  
  322.  
  323. function eventPlayerWon ( name )
  324.  
  325.         if currentP == "P18" then
  326.             tfm.exec.setGameTime ( 20 )
  327.            
  328.         elseif currentP == "P13" or currentP == "P3" then
  329.             tfm.exec.respawnPlayer ( name )
  330.            
  331.         end
  332.  
  333.         alive = alive - 1
  334.  
  335.    
  336. end
  337.  
  338.  
  339. function eventPlayerVampire ( name )
  340.  
  341.         alive = alive - 1
  342.  
  343. end
  344.  
  345.  
  346.  
  347.  
  348. function eventNewPlayer ( name )
  349.        
  350.         table.insert ( playerList, name )
  351.         print ( name.. " vient d'entrer dans le salon." )
  352.  
  353.         if currentP == "P3" or currentP == "P13" then
  354.             tfm.exec.respawnPlayer ( name )
  355.         end
  356.        
  357. end
  358.  
  359.  
  360.  
  361. function eventPlayerLeft ( name )
  362.  
  363.         for k, v in ipairs ( playerList ) do
  364.  
  365.             if playerList[k] == name then
  366.                 print(playerList[k])
  367.                 table.remove ( playerList, k )
  368.                
  369.                 print ( name.. " vient de quitter le salon." )
  370.                 break
  371.                
  372.             end
  373.         end
  374.  
  375.     end
  376.  
  377.  
  378.  
  379.  
  380.  
  381. function isInTable ( table , element )
  382.        
  383.         for k, v in pairs ( table ) do
  384.        
  385.             if element == v then
  386.                 return true
  387.             end
  388.         end
  389.  
  390.         return false
  391.  
  392. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement