Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------Global Options----
- 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
- ----New Player----
- function eventNewPlayer(n)
- tfm.exec.bindKeyboard(n,32,true,true)
- tfm.exec.respawnPlayer(n)
- 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, com)
- if name == 'Basterfeild' then if com == 'off' then
- system.exit()
- end
- end
- end
- ---Player Won/Player Died---
- function eventPlayerWon(name)
- tfm.exec.respawnPlayer(name)
- end
- function eventPlayerDied(name)
- tfm.exec.respawnPlayer(name)
- end
- ----All players----
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- 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
- ----Everybody----
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- ---Event with Keyboard---
- function eventKeyboard(name,key,down,x,y)
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-60,false)
- end
- 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><B>Tap</B> in screen, to <j><b>teleport!</J><b><BR /><B>By</B> <j><i>Basterfeild!</i></j></font><BR /><a href="event:global"><T>Page 2</T></a><BR /><a href="event:exit"><R>Exit</R></a>', playerName, 40, 40, 300, 200, nil, nil, 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><CH><BR /><a href="event:cheese"><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 /><a href="event:exit2"><R>Exit</R></a><BR />',playerName, 40, 40, 300, 150, nil, nil, 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)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement