Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------Global Options----
- --DisableCommandDisplays--
- system.disableChatCommandDisplay("cheese",true)
- system.disableChatCommandDisplay("win",true)
- system.disableChatCommandDisplay("mort",true)
- system.disableChatCommandDisplay("left1",true)
- system.disableChatCommandDisplay("left2",true)
- system.disableChatCommandDisplay("left3",true)
- system.disableChatCommandDisplay("left4",true)
- system.disableChatCommandDisplay("jump1",true)
- system.disableChatCommandDisplay("jump2",true)
- system.disableChatCommandDisplay("jump3",true)
- system.disableChatCommandDisplay("jump4",true)
- system.disableChatCommandDisplay("right4",true)
- system.disableChatCommandDisplay("right3",true)
- system.disableChatCommandDisplay("right2",true)
- system.disableChatCommandDisplay("right1",true)
- system.disableChatCommandDisplay("off",true)
- system.disableChatCommandDisplay("help",true)
- system.disableChatCommandDisplay("pomoc",true)
- tfm.exec.disableAutoTimeLeft (true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(false)
- tfm.exec.disableAfkDeath(true)
- -----Maps-----
- maps={"@1427980","@161434","@216173","@2178800 ","@172621","@500000","@3908151","@168754","@512887","@306365","@1384078","@2130169","@410045","@3038589","@528032 ","@511136","@166032","@315666 ","@162482","@684566","@171480","@166271","@587501","@467137","@113156","@166333","@172605","@169228","@250153"}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- ---Fly by Shamousey--
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-60,false)
- end
- end
- ----New Player----
- function eventNewPlayer(playerName)
- --Callbacks Yes, Easter Egg.---
- ui.addTextArea(11, '<a href="event:left2"><CH>←2</CH></a>', playerName, 100, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(10, '<a href="event:left1"><CH>←1</CH></a>', playerName, 60, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(13, '<a href="event:left3"><CH>←3</CH></a>', playerName, 140, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(12, '<a href="event:left4"><CH>←4</CH></a>', playerName, 180, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(21, '<a href="event:right1"><CH>→1</CH></a>', playerName, 260, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(22, '<a href="event:right2"><CH>→2</CH></a>', playerName, 300, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(23, '<a href="event:right3"><CH>→3</CH></a>', playerName, 340, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(24, '<a href="event:right4"><CH>→4</CH></a>', playerName, 380, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(31, '<a href="event:jump1"><CH>↑1</CH></a>', playerName, 15, 60, 25, 15, nil, nil, 0.5)
- ui.addTextArea(32, '<a href="event:jump2"><CH>↑2</CH></a>', playerName, 15, 100, 25, 15, nil, nil, 0.5)
- ui.addTextArea(33, '<a href="event:jump3"><CH>↑3</CH></a>', playerName, 15, 140, 25, 15, nil, nil, 0.5)
- ui.addTextArea(34, '<a href="event:jump4"><CH>↑4</CH></a>', playerName, 15, 180, 25, 15, nil, nil, 0.5)
- ui.addTextArea(1111, '<a href="event:on"><j><B>ON</B></J></a>', playerName, 0, 220, 25, 15, nil, nil, nil)
- ui.addTextArea(1000, '<a href="event:off"><r><B>OFF</B></R></a>', playerName, 0, 260, 30, 15, nil, nil, nil)
- tfm.exec.respawnPlayer(playerName)
- tfm.exec.setUIShamanName("<J>Bootcamp</J>")
- ui.addPopup(1,0,"<b><font size='20'color='#E9BF23'>Welcome in <i><u>Cheat Bootcamp!</u></i></font></b><br /><br /><font size='12'color='#13A8B7'><b>To get informations for this room - click <B><font color='#98E2EB'>[•]</CH></B></font><color='#13A8B7'> in left map corner.",playerName,175,200,450)
- ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil)
- end
- ----Main options----
- function main()
- tfm.exec.disableAllShamanSkills(true)
- tfm.exec.disableAutoNewGame (true);
- tfm.exec.disableAutoShaman(true);
- tfm.exec.disableAutoTimeLeft (true);
- tfm.exec.disableAutoScore (true);
- tfm.exec.disableAfkDeath (true);
- end
- ----New Game----
- function eventNewGame()
- tfm.exec.setUIMapName("<CH>Cheat")
- tfm.exec.setGameTime (60*6);
- tfm.exec.setUIShamanName ("<J>Bootcamp</J>")
- end
- ---Commands---
- function eventChatCommand(playerName,command)
- if command=="mort" then
- tfm.exec.killPlayer(playerName)
- elseif command=="cheese" then
- tfm.exec.giveCheese(playerName)
- elseif command=="win" then
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(playerName)
- --JUMP--
- elseif command=="jump1" then
- tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
- elseif command=="jump2" then
- tfm.exec.movePlayer(playerName,0,0,true,0,-100,false)
- elseif command=="jump3" then
- tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
- elseif command=="jump4" then
- tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
- --LEFT--
- elseif command=="left1" then
- tfm.exec.movePlayer(playerName,0,0,true,-50,0,false)
- elseif command=="left2" then
- tfm.exec.movePlayer(playerName,0,0,true,-100,0,false)
- elseif command=="left3" then
- tfm.exec.movePlayer(playerName,0,0,true,-150,0,false)
- elseif command=="left4" then
- tfm.exec.movePlayer(playerName,0,0,true,-200,0,false)
- --RIGHT--
- elseif command=="right1" then
- tfm.exec.movePlayer(playerName,0,0,true,50,0,false)
- elseif command=="right2" then
- tfm.exec.movePlayer(playerName,0,0,true,100,0,false)
- elseif command=="right3" then
- tfm.exec.movePlayer(playerName,0,0,true,150,0,false)
- elseif command=="right4" then
- tfm.exec.movePlayer(playerName,0,0,true,200,0,false)
- end
- end
- ---Player Won/Player Died---
- function eventPlayerWon(name)
- tfm.exec.respawnPlayer(name)
- end
- function eventPlayerDied(name)
- tfm.exec.respawnPlayer(name)
- end
- ---Event with mouse----
- ----NOL----
- ---Event with Emotes----
- function eventEmotePlayed(playerName,emote)
- if emote==3 then
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(playerName)
- end
- end
- --Player=All--
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- ---With LUA started---
- print(" <BR /><T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=-<T>=<N>-<T>=<BR /><CH>#CheatBootcamp</CH><J>By Basterfeild<BR /><T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=-<T>=<N>-<T>=")
- ---Callbacks----
- ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil)
- function eventTextAreaCallback(id, playerName, text)
- if text == 'menu' then
- ui.addTextArea(1, '<font size="18">Welcome in <B><font face ="Elephant"><J>#CheatBootcamp!</J></font></B></font><BR /><font size="12">There, <B>You</B> have <j><b>cheats!</b></j>Press <B><a href="event:win">Kiss</a></b>, to <j><b>win!</b></j>Press <b>Space</b>, to <j><B>fly!</B></j><BR /><B>By</B> <j><i><B>Basterfeild</B>!</i></j><BR /><a href="event:global"><T><B>Page 2</B></T></a><BR /><a href="event:exit"><R><B>Exit</R></a>', playerName, 40, 40, 300, 200, nil, 0xD97922, nil)
- else if text == 'exit' then
- ui.removeTextArea(1, playerName)
- else if text == 'win' then
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(playerName)
- else if text == 'global' then
- ui.addTextArea(2, '<font size="20"><J><B><I>Options</I></B></J></font><N><BR /><a href="event:cheese"><font size="12"><b>Give cheese</b></a><BR /><a href="event:win2"><b>Give win</b></a><BR /><a href="event:jump"><B>Jump</B></a><BR /><a href="event:die"><B>Die</B></a><BR /><BR /><a href="event:m"><T><B>Page 1</B></T></a><a href="event:commands"><T><B>Page 3</B></T></a><BR /><BR /></a><a href="event:exit2"><R><B>Exit</R></a><BR />',playerName, 40, 40, 300, 200, nil, 0xD97922, nil)
- ui.removeTextArea(1, playerName)
- else if text == 'cheese' then
- tfm.exec.giveCheese(playerName)
- else if text == 'exit2' then
- ui.removeTextArea(2, playerName)
- else if text == 'win2' then
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(playerName)
- else if text == 'jump' then
- tfm.exec.movePlayer(playerName,0,0,true,0,-80,false)
- else if text == 'die' then
- tfm.exec.killPlayer(playerName)
- else if text == 'm' then
- ui.addTextArea(1, '<font size="18">Welcome in <B><font face ="Elephant"><J>#CheatBootcamp!</J></font></B></font><BR /><font size="12">There, <B>You</B> have <j><b>cheats!</b></j>Press <B><a href="event:win">Kiss</a></b>, to <j><b>win!</b></j>Press <b>Space</b>, to <j><B>fly!</B></j><BR /><B>By</B> <j><i><B>Basterfeild</B>!</i></j><BR /><a href="event:global"><T><B>Page 2</B></T></a><BR /><a href="event:exit"><R><B>Exit</R></a>', playerName, 40, 40, 300, 200, nil, 0xD97922, nil)
- ui.removeTextArea(2, playerName)
- else if text == 'commands' then
- ui.addTextArea(3, '<font size="20"><J><B><I>Commands</I></B></J></font><BR /><font size="12"><a href="event:die"><B>!mort</B></a> to die.<BR /><a href="event:cheese"><B>!cheese</B></a> to get cheese.<BR /><a href="event:win2"><B>!win</B></a> to win.<BR /><BR /><a href="event:jump1"><B>!jump1</B></a> to jump (1 lvl)<BR /><a href="event:jump2"><B>!jump2</B></a> to jump (2 lvl)<BR /><a href="event:jump3"><B>!jump3</B></a> to jump (3 lvl)<BR /><a href="event:jump4"><B>!jump4</B></a> to jump (4 lvl)<BR /><BR /><a href="event:left1"><B>!left1</B></a> to go left (1 lvl)<BR /><a href="event:left2"><B>!left2</B></a> to go left (2 lvl)<BR /><a href="event:left3"><B>!left3</B></a> to go left (3 lvl)<BR /><a href="event:left4"><B>!left4</B></a> to go left (4 lvl)<BR /><BR /><a href="event:right1"><B>!right1</B></a> to go right (1 lvl)<BR /><a href="event:right2"><B>!right2</B></a> to go right (2 lvl)<BR /><a href="event:right3"><B>!right3</B></a> to go right (3 lvl)<BR /><a href="event:right4"><B>!right4</B></a> to go right (4 lvl)<BR /><BR /><a href="event:p1"><T><B>Page 1</B></T></a><a href="event:p2"><T><B>Page 2</B></T></a><BR /><a href="event:exit3"><R><B>Exit</B></R></a>', playerName, 40, 40, 225, 350, nil, 0xD97922, 80)
- ui.removeTextArea(2, playerName)
- ---Jump----
- else if text== 'jump1' then
- tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
- else if text== 'jump2' then
- tfm.exec.movePlayer(playerName,0,0,true,0,-100,false)
- else if text== 'jump3' then
- tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
- else if text== 'jump4' then
- tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
- ----Left----
- else if text== 'left1' then
- tfm.exec.movePlayer(playerName,0,0,true,-50,0,false)
- else if text== 'left2' then
- tfm.exec.movePlayer(playerName,0,0,true,-100,0,false)
- else if text== 'left3' then
- tfm.exec.movePlayer(playerName,0,0,true,-150,0,false)
- else if text== 'left4' then
- tfm.exec.movePlayer(playerName,0,0,true,-200,0,false)
- -----Right---
- else if text== "right1" then
- tfm.exec.movePlayer(playerName,0,0,true,50,0,false)
- else if text== 'right2' then
- tfm.exec.movePlayer(playerName,0,0,true,100,0,false)
- else if text== 'right4' then
- tfm.exec.movePlayer(playerName,0,0,true,200,0,false)
- else if text== 'right3' then
- tfm.exec.movePlayer(playerName,0,0,true,150,0,false)
- else if text == 'exit3' then
- ui.removeTextArea(3, playerName)
- else if text == 'p1' then
- ui.removeTextArea(3, playerName)
- ui.addTextArea(1, '<font size="18">Welcome in <B><font face ="Elephant"><J>#CheatBootcamp!</J></font></B></font><BR /><font size="12">There, <B>You</B> have <j><b>cheats!</b></j>Press <B><a href="event:win">Kiss</a></b>, to <j><b>win!</b></j>Press <b>Space</b>, to <j><B>fly!</B></j><BR /><B>By</B> <j><i><B>Basterfeild</B>!</i></j><BR /><a href="event:global"><T><B>Page 2</B></T></a><BR /><a href="event:exit"><R><B>Exit</R></a>', playerName, 40, 40, 300, 200, nil, 0xD97922, nil)
- else if text == 'p2' then
- ui.removeTextArea(3, playerName)
- ui.addTextArea(2, '<font size="20"><J><B><I>Options</I></B></J></font><N><BR /><a href="event:cheese"><font size="12"><b>Give cheese</b></a><BR /><a href="event:win2"><b>Give win</b></a><BR /><a href="event:jump"><B>Jump</B></a><BR /><a href="event:die"><B>Die</B></a><BR /><BR /><a href="event:m"><T><B>Page 1</B></T></a><a href="event:commands"><T><B>Page 3</B></T></a><BR /><BR /></a><a href="event:exit2"><R><B>Exit</R></a><BR />',playerName, 40, 40, 300, 200, nil, 0xD97922, nil)
- --Ons/OFFs---
- else if text == 'off' then
- ui.removeTextArea(11, playerName)
- ui.removeTextArea(12, playerName)
- ui.removeTextArea(13, playerName)
- ui.removeTextArea(14, playerName)
- ui.removeTextArea(21, playerName)
- ui.removeTextArea(22, playerName)
- ui.removeTextArea(23, playerName)
- ui.removeTextArea(24, playerName)
- ui.removeTextArea(31, playerName)
- ui.removeTextArea(32, playerName)
- ui.removeTextArea(33, playerName)
- ui.removeTextArea(34, playerName)
- ui.removeTextArea(10, playerName)
- else if text == 'on' then
- ui.addTextArea(11, '<a href="event:left2"><CH>←2</CH></a>', playerName, 100, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(10, '<a href="event:left1"><CH>←1</CH></a>', playerName, 60, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(13, '<a href="event:left3"><CH>←3</CH></a>', playerName, 140, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(12, '<a href="event:left4"><CH>←4</CH></a>', playerName, 180, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(21, '<a href="event:right1"><CH>→1</CH></a>', playerName, 260, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(22, '<a href="event:right2"><CH>→2</CH></a>', playerName, 300, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(23, '<a href="event:right3"><CH>→3</CH></a>', playerName, 340, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(24, '<a href="event:right4"><CH>→4</CH></a>', playerName, 380, 25, 25, 15, nil, nil, 0.5)
- ui.addTextArea(31, '<a href="event:jump1"><CH>↑1</CH></a>', playerName, 15, 60, 25, 15, nil, nil, 0.5)
- ui.addTextArea(32, '<a href="event:jump2"><CH>↑2</CH></a>', playerName, 15, 100, 25, 15, nil, nil, 0.5)
- ui.addTextArea(33, '<a href="event:jump3"><CH>↑3</CH></a>', playerName, 15, 140, 25, 15, nil, nil, 0.5)
- ui.addTextArea(34, '<a href="event:jump4"><CH>↑4</CH></a>', playerName, 15, 180, 25, 15, nil, nil, 0.5)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement