Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------Global Options----
- --DisableCommandDisplays--
- system.disableChatCommandDisplay(invisiblecommands,true)
- invisiblecommands={"cheese","win","mort","left1","left2","left3","left4","right1","right2","right3","right4","jump1","jump2","jump3","jump4","off","help","pomoc","tpon","tpoff","flyon","flyoff"}
- ---Other---
- tfm.exec.disableAutoTimeLeft (true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(false)
- tfm.exec.disableAfkDeath(true)
- A01={}
- A02={}
- -----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","@173623 ","@169139","@562897 ","@403940","@155480","@176253","@155611","@549759 ","@215933","@170007","@177652","@156510","@2208924","@2918822","@2854813"}
- 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 code--
- function eventNewPlayer(playerName)
- system.bindMouse(playerName, true)
- tfm.exec.bindKeyboard(playerName,32,true,true)
- A01[playerName]=off
- A02[playerName]=off
- end
- for playerName in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(playerName,32,true,true)
- A01[playerName]=off
- A02[playerName]=off
- system.bindMouse(playerName, true)
- end
- function eventKeyboard(playerName,key,down,x,y)
- if key==32 and A01[playerName]==1 then
- tfm.exec.movePlayer(playerName,0,0,true,0,-60,false)
- end
- end
- ----New Player----
- function eventNewPlayer(playerName)
- --Callbacks.---
- 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,0.5)
- ui.addTextArea(1000, '<a href="event:off"><r><B>OFF</B></R></a>', playerName, 0, 260, 30, 15, nil, nil,0.5)
- tfm.exec.respawnPlayer(playerName)
- tfm.exec.setUIShamanName("<J>Bootcamp</J>")
- ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil,0.5)
- ui.addTextArea(12345, '<font size="20"face="elephant"><T><p align="center">Fly</p></T></font><font size="14"><a href="event:flyon"><J><B>ON</B></J></a></font><font size="12"><a href="event:flyoff"><R><B>OFF</B></R></a></font><BR /><BR /><font size="20"face="elephant"><T><p align="center">TP</p></T></font><font size="14"><BR /><a href="event:tpon"><J><B>ON</B></J></a></font><font size="12"><a href="event:tpoff"><R><B>OFF</B></R></a></font>', playerName, 700, 26, 80, 809, nil, 0xB82414, 0)
- 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)
- ----Able and Disable Fly, tp----
- elseif command=="flyon" then
- A01[playerName]=on
- elseif command=="flyoff" then
- A01[playerName]=0
- elseif command=="tpon" then
- A02[playerName]=1
- elseif command=="tpoff" then
- A02[playerName]=0
- 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----
- function eventMouse(playerName, x, y)
- if A02[playerName] == 1 then
- tfm.exec.movePlayer(playerName, x, y, false, 0, 1, false)
- end
- end
- ---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
- system.bindMouse(name, true)
- 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>=")
- tfm.exec.newGame(maps[math.random(#maps)])
- ---Callbacks----
- ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil,0.5)
- 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, nil, 0.5)
- 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, nil, 0.5)
- 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, nil, 0.5)
- 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 /><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, nil, 0.5)
- 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)
- elseif text=='flyon' then
- A01[playerName]=1
- elseif text=='flyoff' then
- A01[playerName]=0
- elseif text=='tpon' then
- A02[playerName]=1
- elseif text=='tpoff' then
- A02[playerName]=0
- 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