Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game={}
- function game.main()
- function eventNewPlayer(n)
- tfm.exec.respawnPlayer(n)
- 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)
- ui.addMenu(0, txt, nil, 5, 25, 300, 360,true)
- end
- for _,v in pairs ({'disableAfkDeath','disableAutoScore','disablePhysicalConsumables','disableAutoNewGame','disableMinimalistMode','disableMortCommand','disableAutoTimeLeft','disableAutoShaman','disableDebugCommand'}) do
- tfm.exec[v](true)
- end
- helpers={
- en={
- "Grimmaro#0020","Shamousey#0015","Drescen#0000","Charbz#3144","Grapeup#0020","Kimsterjay#0000"
- },
- fr={
- "Philae#0010","Tortuegreen#0000","Arkuo#9521","Katow#0020","Mew#6244","Plyk#0000","Cillanne#0000","Viaxeiro#0000","Etyla#0015","Mrelliot#0000"
- },
- br={
- "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"
- },
- es={
- "Ratacp#0015","Nicor22#0000","Dolni#0000","Lunarahelper#2539","Pashelper#7578","Phliperama#0000"
- },
- tr={
- "Jack#9386","Keinja#0000","Meloysochan#0000","Mindedly#0000","Surgeon#7452","Vampirellax#0000"
- },
- ar={
- "Cagataymlov#0000","Amrtast#0000","Bodykudo#0000","Hguhfmohamed#0000","Jack_sparrow#8381","Ragekitteee#0000","Turkitutu#0000","Unlocker001#0000","Tokimei_san#3485","Wassimevicw#0000"
- },
- ru={
- "Alisenokm#0000","Belajasova#0000","Jerry#0015","Lovca#0000","Samandaira#0000"
- },
- ro={
- "Chibi#0015","Awfullies#6351","Dandelion#0010","Gaby#6369","Hellium#8720","Kamiko#6079","Sakakibara#8353","Sky#1999"
- },
- nl={
- "Distances#0095","Holmenkol#0000","Santa#0010"
- },
- pl={
- "Coska#0015","Faz_x#0000","Gekon_lamparci#0000","Kingapysia#0000","Michipol#0000","Mysiaapl#0000","Migotka#0010","Rkubi#0000","Staszekowaty#0010","Syberin#0000"
- },
- de={
- "Nachtfell#0000","Colakatze#0000","Mrslouzifer#0000"
- },
- cz={
- "Cincle#0000","Natallienatt#0000","Ladobaren#0000"
- },
- hu={
- "Toby#3989","Peanut_butter#0015","Seyira#0000","Shiba#9496","Vividia#0015"
- },
- ["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"},
- }
- 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"}
- table.sort(commus)
- online={}
- for n in pairs(helpers) do
- for i,p in pairs(helpers[n]) do
- system.loadPlayerData(p)
- end
- end
- function eventPlayerDataLoaded(n,pD)
- if pD then
- online[#online+1]=n
- end
- table.sort(online)
- end
- function table.find(list,value,index,f)
- for k,v in next,list do
- local i = (type(v) == "table" and index and v[index] or v)
- if (not f and i or f(i)) == value then
- return true,k
- end
- end
- return false,0
- end
- function ui.addMenu(id, text, n, x, y, w, h, fixed)
- x=x+6
- y=y+6
- ui.addTextArea(id, "", n, x, y, w, h, 0x47707d, 0x47707d, 1, fixed)
- ui.addTextArea(id+1, "", n, x, y, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
- ui.addTextArea(id+2, "", n, x + w - 20, y, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
- ui.addTextArea(id+3, "", n, x, y + h - 20, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
- ui.addTextArea(id+4, "", n, x + w - 20, y + h - 20, 20, 20, 0x1e6180, 0x1e6180, 1, fixed)
- ui.addTextArea(id+5, "", n, x, y + (h + 40) / 4, w, ((h - 40) / 2), 0x0e3642, 0x0e3642, 1, fixed)
- ui.addTextArea(id+6, "", n, x + (w + 40) / 4, y, ((w - 40) / 2), h, 0x0e3642, 0x0e3642, 1, fixed)
- ui.addTextArea(id+7, text, n, x + 3, y + 3, w - 6, h - 6, 0x193542, 0x0E1619, 1, fixed)
- end
- function nameTagFormat(name, size, color1, color2)
- local Name, Hash = name:match("([^#]+)(#%d+)")
- Name = Name or name
- Hash = Hash or ""
- local size = tonumber(size or 12)
- local color1 = color1 or 'V'
- local color2 = color2 or 'VI'
- 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>"
- return string.format(colorN, Name)..string.format(colorH, Hash)
- end
- lastTxt=""
- txt=""
- system.newTimer(function()
- online={}
- for n in pairs(helpers) do
- for i,p in pairs(helpers[n]) do
- system.loadPlayerData(p)
- end
- end
- system.newTimer(function()
- txt="<p align='center'><b><font size='16'>The online Helpers are:</b></p>"
- for i,p in pairs(commus) do
- for n,k in pairs(online) do
- if table.find(helpers[p],k) then
- txt=txt.."\n".."["..string.upper(p).."] - <b><a href='event:"..k.."'>"..nameTagFormat(k).."</a></b>"
- end
- end
- end
- if lastTxt~=txt then
- ui.addMenu(0, txt, nil, 5, 25, 300, 360,true)
- end
- lastTxt=txt
- end,1500,false)
- end,1000,true)
- function eventTextAreaCallback(id,n,cb)
- tfm.exec.chatMessage("<J>/c "..cb,n)
- end
- tfm.exec.newGame("@7564241")
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement