Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- map="0"
- mapping=false
- trollbool=false
- trollrandom=math.random(2,5)
- trollcount=0
- first=false
- admin1="Tat#0020"
- admin2="Camelshet#2851"
- admin3="Trapin"
- admin4="Mimidonut"
- admin5="Destinyruiz" --don't add admin6 unless u know how to code this.
- colorpicked=0xE68D43
- function eventNewGame()
- tfm.exec.setUIMapName("#TrollVanilla")
- tfm.exec.addImage("1544dc69486.jpg","?3",0,0)
- for name,player in pairs(tfm.get.room.playerList) do
- end
- nocheese=false
- balls=false
- swap2=false
- if troll==true then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."] Trolololololol</font>",nil)
- end
- end
- tfm.exec.addImage("1544dc69486.jpg","?3",0,0)
- system.disableChatCommandDisplay("s all", true)
- system.disableChatCommandDisplay("vampire", true)
- system.disableChatCommandDisplay("troll", true)
- system.disableChatCommandDisplay("nocheese", true)
- system.disableChatCommandDisplay("balls", true)
- system.disableChatCommandDisplay("swap", true)
- system.disableChatCommandDisplay("help", true)
- system.disableChatCommandDisplay("m", true)
- system.disableChatCommandDisplay("np", true)
- system.disableChatCommandDisplay("s all", true)
- troll=false
- function eventColorPicked(colorPickerId, playerName, color )
- colorpicked=string.format("%X", color)
- end
- p={}
- trollmaps={"@4500045", "@5651178", "@5018395", "@6010060", "@6124757", "@6123862", "@5929021", "@6178788", "@6133069", "@6127609", "@6222523", "@6222598", "@6222662", "@6113351", "@6422227", "@5018481", "@5543945", "@6122745", "@6130459", "@6135167", "@6313103", "@5018508", "@5858646", "@6127224", "@6123442", "@5977759", "@6135200", "@5932565", "@6110650", "@5018552", "@5528077", "@5018625", "@5858647", "@1395371", "@6207985", "@6218403", "@6329560", "@6179538", "@5622009", "@5875455", "@6192664", "@5018731", "@6044446", "@5858583", "@5858585", "@5966424", "@5966445", "@5704644", "@6173496", "@5436800", "@6329565", "@5018771", "@5719514", "@5704627", "@6125960", "@6127589", "@6127747", "@6192402", "@6184390", "@6329568", "@5018836", "@5719492", "@5858628", "@6124001", "@5564186", "@6217094", "@5018961", "@5858631", "@5640463", "@6217035", "@6186461", "@4040403", "@5019057", "@5621250", "@6172370", "@5436588", "@6207483", "@6222159", "@5019123", "@5019191", "@6126005", "@5436981", "@5019223", "@6232081", "@6232089", "@6232095", "@6232098", "@5019302", "@5440478", "@6206380", "@5621960", "@6127550", "@6136351", "@6217055", "@6369921", "@6108198", "@5019328", "@5629311", "@5803326", "@5858564", "@5858586", "@5858587", "@5918098", "@5966392", "@5966405", "@1193082", "@6186304", "@5543399", "@5019350", "@5719394", "@5949452", "@6115548", "@5019382", "@6173592", "@6172417", "@5019421", "@6186328", "@5457626", "@6126256", "@5543671", "@5019530", "@5564274", "@6205274", "@5048881", "@6156082", "@6277845", "@5621395", "@5724761", "@5724763", "@5724765", "@5966396", "@6094395", "@5565050", "@5605309", "@6277853", "@6313226", "@5049526", "@5704629", "@6270048", "@5910464", "@5966432", "@5966438", "@6126145", "@6127710", "@6127719", "@6377332", "@6148478", "@6314518", "@6127135", "@5621346", "@5049660", "@5875460", "@5875461", "@5628930", "@6172472", "@6186377", "@6189703", "@5910501", "@6127290", "@6223454", "@6132502", "@6127154", "@6332528", "@5018652", "@5836826", "@5858595", "@5858625", "@5858639", "@6124832", "@6127211", "@5602310", "@6244710", "@6250422", "@5595910", "@5858644", "@6147952", "@5621139", "@5621147", "@6272568", "@5621219", "@5910108", "@6107893", "@6190625", "@5605249", "@6254763", "@5910088", "@6119333", "@5966429", "@5949462", "@6203629", "@6186396", "@6205616", "@6207848", "@4157329", "@5910104", "@6173687", "@6116175", "@5910095", "@6189594", "@6313270", "@5858581", "@5858632", "@6104360", "@5436707", "@6329552", "@6400422", "@5803313", "@5918089", "@5649499", "@6174089", "@5621196", "@6125319", "@5960204", "@6205095", "@6205714", "@5949349", "@5723872", "@5836910", "@5858598", "@5902874", "@6127184", "@6335762", "@5858641", "@5902875", "@6127705", "@5605065", "@6205203", "@6100256", "@5621555", "@5910116", "@6174019", "@5910077", "@5862868", "@5862874", "@6192863", "@5621716", "@5852948", "@5854243", "@5621865", "@6122725", "@6113306", "@5836845", "@6185835", "@5050018", "@6189570", "@2721399", "@5875458", "@6400412", "@6299153", "@5580276", "@6299335"}
- maps={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}
- id=0
- function eventChatCommand(name, message)
- if name==admin1 or name==admin2 or name==admin3 or name==admin4 or name==admin5 then
- if message=="s all" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."]".." Go! Fight shamans!</font>",nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- end
- elseif message=="color" then
- ui.showColorPicker (1, name, 0xE68D43, "Color" )
- elseif message=="vampire" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."]".." A random mouse has been chosen as a vampire. RUN!!!</font>",nil)
- for name, player in pairs(tfm.get.room.playerList) do
- table.insert(p, name)
- end
- tfm.exec.setVampirePlayer(p[math.random(1,#p)])
- for name, player in pairs(tfm.get.room.playerList) do
- table.remove(p)
- end
- elseif message=="troll" then
- troll=true
- elseif message=="nocheese" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."]".." Don't get the cheese! It's poisonous!</font>",nil)
- nocheese=true
- elseif message=="balls" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."]".." IT'S RAINING BALLS!!!</font>",nil)
- balls=true
- elseif message:sub(0,1)=="m" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."] "..message:sub(3).."</font>",nil)
- elseif message=="swap" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."]".." It's time to swap people around hehe</font>",nil)
- swap=true
- elseif message:sub(0,2)=="np" then
- tfm.exec.newGame(message:sub(4))
- elseif message=="help" then
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."] The commands are: swap, balls, nocheese, troll, vampire, s all, help, np @code, color</font>",name)
- elseif message=="skip" then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- end
- timestamp=999999999999999999999999999999
- choose=0
- function eventLoop(time,remaining)
- local iz=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- iz=iz+1
- end
- end
- if iz==0 then
- choose=math.random(#maps)
- tfm.exec.newGame(maps[choose])
- end
- if remaining<=0 then
- if troll==true then
- tfm.exec.newGame(trollmaps[math.random(#trollmaps)])
- else
- if not trollrandom==trollcount then
- tfm.exec.newGame(maps[math.random(#maps)])
- trollcount=trollcount+1
- else
- tfm.exec.newGame(trollmaps[math.random(#trollmaps)])
- troll=true
- trollrandom=math.random(2,5)
- end
- end
- first=false
- end
- if balls==true then
- tfm.exec.addShamanObject(6, math.random(0,800), -300, 0, 0, 5, false)
- end
- if swap==true then
- timestamp=time
- swap=false
- swap2=true
- end
- if time>timestamp+10000 and swap2==true then
- timestamp=time
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."] SWAP!</font>",nil)
- for name, player in pairs(tfm.get.room.playerList) do
- table.insert(p, name)
- end
- count=#p
- while count>1 do
- random1=math.random(1,#p)
- x1=tfm.get.room.playerList[p[random1]].x
- y1=tfm.get.room.playerList[p[random1]].y
- name1=p[random1]
- table.remove(p,random1)
- random2=math.random(1,#p)
- x2=tfm.get.room.playerList[p[random2]].x
- y2=tfm.get.room.playerList[p[random2]].y
- name2=p[random2]
- table.remove(p,random2)
- tfm.exec.movePlayer(name1,x2,y2,false,0,0,false)
- tfm.exec.movePlayer(name2,x1,y1,false,0,0,false)
- count=count-2
- end
- if count==1 then
- table.remove(p)
- end
- end
- end
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- end
- end
- if i==0 then
- if troll==true then
- tfm.exec.newGame(trollmaps[math.random(#trollmaps)])
- else
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- end
- function eventPlayerGetCheese(name)
- if nocheese==true then
- tfm.exec.killPlayer(name)
- tfm.exec.chatMessage("<font color='#"..tostring(colorpicked).."'>["..tfm.get.room.name.."] Told ya!",name)
- end
- end
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventNewPlayer(name)
- print(name)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
Advertisement
Add Comment
Please, Sign In to add comment