Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. game={}
  2. function game.main()
  3. function eventNewPlayer(n)
  4. tfm.exec.respawnPlayer(n)
  5. tfm.exec.chatMessage("<FC><b>/room #bodykudo0Toriko</b></FC>\n<FC><b>/room #bodykudo0Mouse</b></FC>\n<FC><b>/room #bodykudo0Plane</b></FC>\n<FC><b>/room #bodykudo0Crazy</b></FC>\n<FC><b>/room #bodykudo0Npc</b></FC>",n)
  6. ui.addMenu(0, txt, nil, 5, 25, 300, 360,true)
  7. end
  8. for _,v in pairs ({'disableAfkDeath','disableAutoScore','disablePhysicalConsumables','disableAutoNewGame','disableMinimalistMode','disableMortCommand','disableAutoTimeLeft','disableAutoShaman','disableDebugCommand'}) do
  9. tfm.exec[v](true)
  10. end
  11.  
  12. helpers={
  13. en={
  14. "Grimmaro#0020","Shamousey#0015","Drescen#0000","Charbz#3144","Grapeup#0020","Kimsterjay#0000"
  15. },
  16. fr={
  17. "Philae#0010","Tortuegreen#0000","Arkuo#9521","Katow#0020","Mew#6244","Plyk#0000","Cillanne#0000","Viaxeiro#0000","Etyla#0015","Mrelliot#0000"
  18. },
  19. br={
  20. "Bapereira#0000","Daydream#0015","Gbp_helper#0828","Greedy#6459","Ikke#0015","Imperfectper#0000","Ironhelper#7236","Lovinghelper#7596","Matterhorn#6820","Misfaith#0000","Opulence#6266","Vlump#0000","Worldgustavo#0000"
  21. },
  22. es={
  23. "Ratacp#0015","Nicor22#0000","Dolni#0000","Lunarahelper#2539","Pashelper#7578","Phliperama#0000"
  24. },
  25. tr={
  26. "Jack#9386","Keinja#0000","Meloysochan#0000","Mindedly#0000","Surgeon#7452","Vampirellax#0000"
  27. },
  28. ar={
  29. "Cagataymlov#0000","Amrtast#0000","Bodykudo#0000","Hguhfmohamed#0000","Jack_sparrow#8381","Ragekitteee#0000","Turkitutu#0000","Unlocker001#0000","Tokimei_san#3485","Wassimevicw#0000"
  30. },
  31. ru={
  32. "Alisenokm#0000","Belajasova#0000","Jerry#0015","Lovca#0000","Samandaira#0000"
  33. },
  34. ro={
  35. "Chibi#0015","Awfullies#6351","Dandelion#0010","Gaby#6369","Hellium#8720","Kamiko#6079","Sakakibara#8353","Sky#1999"
  36. },
  37. nl={
  38. "Distances#0095","Holmenkol#0000","Santa#0010"
  39. },
  40. pl={
  41. "Coska#0015","Faz_x#0000","Gekon_lamparci#0000","Kingapysia#0000","Michipol#0000","Mysiaapl#0000","Migotka#0010","Rkubi#0000","Staszekowaty#0010","Syberin#0000"
  42. },
  43. de={
  44. "Nachtfell#0000","Colakatze#0000","Mrslouzifer#0000"
  45. },
  46. cz={
  47. "Cincle#0000","Natallienatt#0000","Ladobaren#0000"
  48. },
  49. hu={
  50. "Toby#3989","Peanut_butter#0015","Seyira#0000","Shiba#9496","Vividia#0015"
  51. },
  52. ["en - ro"]={"Cristinescu#0000"},["en - nl"]={"Jordy#0010"},["en - de"]={"Notearl#0000","Perlchen#0000"},["en - br"]={"Wolfyfoxy#7673"},["fr - ar"]={"Fysil#0000"},["br - es"]={"Sufp#0000"},
  53. }
  54.  
  55. commus={"en","fr","br","es","ar","tr","ro","ru","nl","pl","de","cz","hu","en - ro","en - nl","en - de","en - br","fr - ar","br - es"}
  56. table.sort(commus)
  57. online={}
  58.  
  59. for n in pairs(helpers) do
  60. for i,p in pairs(helpers[n]) do
  61. system.loadPlayerData(p)
  62. end
  63. end
  64.  
  65. function eventPlayerDataLoaded(n,pD)
  66. if pD then
  67. online[#online+1]=n
  68. end
  69. table.sort(online)
  70. end
  71.  
  72. function table.find(list,value,index,f)
  73. for k,v in next,list do
  74. local i = (type(v) == "table" and index and v[index] or v)
  75. if (not f and i or f(i)) == value then
  76. return true,k
  77. end
  78. end
  79. return false,0
  80. end
  81.  
  82. function ui.addMenu(id, text, n, x, y, w, h, fixed)
  83. x=x+6
  84. y=y+6
  85. ui.addTextArea(id, "", n, x, y, w, h, 0x47707d, 0x47707d, 1, fixed)
  86. ui.addTextArea(id+1, "", n, x, y, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
  87. ui.addTextArea(id+2, "", n, x + w - 20, y, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
  88. ui.addTextArea(id+3, "", n, x, y + h - 20, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
  89. ui.addTextArea(id+4, "", n, x + w - 20, y + h - 20, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
  90. ui.addTextArea(id+5, "", n, x, y + (h + 40) / 4, w, ((h - 40) / 2), 0x0e3642, 0x0e3642, 1, fixed)
  91. ui.addTextArea(id+6, "", n, x + (w + 40) / 4, y, ((w - 40) / 2), h, 0x0e3642, 0x0e3642, 1, fixed)
  92. ui.addTextArea(id+7, text, n, x + 3, y + 3, w - 6, h - 6, 0x193542, 0x0E1619, 1, fixed)
  93. end
  94.  
  95. function nameTagFormat(name, size, color1, color2)
  96. local Name, Hash = name:match("([^#]+)(#%d+)")
  97. Name = Name or name
  98. Hash = Hash or ""
  99. local size = tonumber(size or 12)
  100. local color1 = color1 or 'V'
  101. local color2 = color2 or 'VI'
  102. local colorN, colorH = (color1:match("#") and "<font color='"..color1.."' size='"..size.."'>%s</font>" ) or "<font size='"..size.."'><"..color1..">%s</"..color1.."></font>" , ( color2:match("#") and "<font color='"..color2.."' size='".. math.floor(size*2/3) .."'>%s</font>" ) or "<font size='".. math.floor(size*2/3) .."'><"..color2..">%s</"..color2.."></font>"
  103. return string.format(colorN, Name)..string.format(colorH, Hash)
  104. end
  105.  
  106. lastTxt=""
  107. txt=""
  108. system.newTimer(function()
  109. online={}
  110. for n in pairs(helpers) do
  111. for i,p in pairs(helpers[n]) do
  112. system.loadPlayerData(p)
  113. end
  114. end
  115.  
  116. system.newTimer(function()
  117. txt="<p align='center'><b><font size='16'>The online Helpers are:</b></p>"
  118. for i,p in pairs(commus) do
  119. for n,k in pairs(online) do
  120. if table.find(helpers[p],k) then
  121. txt=txt.."\n".."["..string.upper(p).."] - <b><a href='event:"..k.."'>"..nameTagFormat(k).."</a></b>"
  122. end
  123. end
  124. end
  125. if lastTxt~=txt then
  126. ui.addMenu(0, txt, nil, 5, 25, 300, 360,true)
  127. end
  128. lastTxt=txt
  129. end,1500,false)
  130. end,1000,true)
  131.  
  132. function eventTextAreaCallback(id,n,cb)
  133. tfm.exec.chatMessage("<J>/c "..cb,n)
  134. end
  135.  
  136. tfm.exec.newGame("@7564241")
  137. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  138. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement