Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.newGame(math.random(1, 143))--CLOWFISH БЫДЛО КОДЕР
- function eventNewPlayer(name)
- for i,key in ipairs({32}) do
- tfm.exec.bindKeyboard(name,key,true,true)
- end
- end
- function eventKeyboard(name,key,down,x,y)
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-50,true)
- end
- end
- function eventChatCommand(name,command)
- if command=="help" then
- ui.addPopup(9999, 999, "Welcome, "..name..", to the Minigame Test.Type !list for the commands.", name, 250, 150, 300)
- elseif command=="list" then
- ui.addPopup(9324,0,"! commands : !next , !snow , !cheese , !mort , !respawn, !meep , !sham , !vamp , !(color) ; colors available : black, white, red, orange, yellow, green, blue, purple", nil,250,150,400) elseif command=="cheese" then
- elseif command=="mort" then
- tfm.exec.killPlayer(name)
- elseif command=="respawn" then
- tfm.exec.respawnPlayer(name)
- elseif command=="cheese" then
- tfm.exec.giveCheese(name)
- elseif command:sub(1,2)=="np" then
- tfm.exec.newGame(command:sub(4))
- elseif command=="sham" then
- tfm.exec.setShaman(name)
- elseif command=="vamp" then
- tfm.exec.setVampirePlayer(name)
- elseif command=="next" then
- tfm.exec.newGame(math.random(1, 143))
- elseif command=="meep" then
- tfm.exec.giveMeep(name)
- elseif command=="snow" then
- tfm.exec.snow()
- print("It's Snowing!")
- elseif command=="white" then
- tfm.exec.setNameColor(name, 0xffffff)
- elseif command=="black" then
- tfm.exec.setNameColor(name, 0x000000)
- elseif command=="red" then
- tfm.exec.setNameColor(name, 0xFF0000)
- elseif command=="blue" then
- tfm.exec.setNameColor(name, 0x0D00FF)
- elseif command=="yellow" then
- tfm.exec.setNameColor(name, 0xFFEE00)
- elseif command=="green" then
- tfm.exec.setNameColor(name, 0x11FF00)
- elseif command=="orange" then
- tfm.exec.setNameColor(name, 0xFFAE00)
- elseif command=="purple" then
- tfm.exec.setNameColor(name, 0xD400FF)
- end
- end
- function eventNewGame()
- tfm.exec.disableAfkDeath(true)
- tfm.exec.setGameTime(120, true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setUIShamanName("<font color='#C2C2DA' size='11' >*Uknown*</font>")
- tfm.exec.setUIMapName("<font color='#C2C2DA' size='11' >Minigame Test</font><font color='#BABD2F' size='11' >")
- end
- function eventNewPlayer(name)
- ui.addPopup(2, 999, "Type !help for more information.", name, 300, 200, 200)
- end
- function eventPlayerGetCheese(name)
- ui.addPopup(3, 999, "You have gotten the cheese, go back to the hole!", name, 5, 300, 200)
- end
- function eventPlayerDied(name)
- ui.addPopup(4,999, "No Cheese For You ^-^" ,name,5,120,200)
- end
- function eventPlayerWon(name)
- ui.addPopup(5,999, "Cheese *-*" ,name,5,120,200)
- tfm.exec.setNameColor(name,0x98E2EB)
- tfm.exec.newGame(math.random(1, 143))
- end
- for name in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(name) end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventLoop()
- tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30)
- end--CLOWFISH БЫДЛО КОДЕР
Advertisement
Add Comment
Please, Sign In to add comment