Advertisement
Guest User

#CheatBootcamp v6.0.0

a guest
Oct 25th, 2013
1,262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.06 KB | None | 0 0
  1. ------Global Options----
  2.              --DisableCommandDisplays--
  3. system.disableChatCommandDisplay(invisiblecommands,true)
  4. invisiblecommands={"cheese","win","mort","left1","left2","left3","left4","right1","right2","right3","right4","jump1","jump2","jump3","jump4","off","help","pomoc","tpon","tpoff","flyon","flyoff"}
  5.  
  6.     ---Other---
  7. tfm.exec.disableAutoTimeLeft (true)
  8. tfm.exec.disableAutoShaman(true)
  9. tfm.exec.disableAutoNewGame(true)
  10. tfm.exec.disableAutoScore(false)
  11. tfm.exec.disableAfkDeath(true)
  12. A01={}
  13. A02={}
  14. -----Maps-----
  15. 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"}
  16. tfm.exec.newGame(maps[math.random(#maps)])
  17. function eventLoop(time,remaining)
  18.     if remaining<=0 then
  19.         tfm.exec.newGame(maps[math.random(#maps)])
  20.    
  21.     end
  22. end
  23. ---Fly code--
  24. function eventNewPlayer(playerName)
  25.     system.bindMouse(playerName, true)
  26.     tfm.exec.bindKeyboard(playerName,32,true,true)
  27.    A01[playerName]=off
  28.    A02[playerName]=off
  29. end
  30. for playerName in pairs(tfm.get.room.playerList) do
  31.   tfm.exec.bindKeyboard(playerName,32,true,true)
  32.   A01[playerName]=off
  33.   A02[playerName]=off
  34.   system.bindMouse(playerName, true)
  35. end
  36. function eventKeyboard(playerName,key,down,x,y)
  37.     if key==32 and A01[playerName]==1 then
  38.         tfm.exec.movePlayer(playerName,0,0,true,0,-60,false)
  39.     end
  40. end
  41. ----New Player----
  42. function eventNewPlayer(playerName)
  43.          --Callbacks.---
  44.        ui.addTextArea(11, '<a href="event:left2"><CH>←2</CH></a>', playerName, 100, 25, 25, 15, nil, nil, 0.5)
  45.        ui.addTextArea(10, '<a href="event:left1"><CH>←1</CH></a>', playerName, 60, 25, 25, 15, nil, nil, 0.5)
  46.        ui.addTextArea(13, '<a href="event:left3"><CH>←3</CH></a>', playerName, 140, 25, 25, 15, nil, nil, 0.5)
  47.        ui.addTextArea(12, '<a href="event:left4"><CH>←4</CH></a>', playerName, 180, 25, 25, 15, nil, nil, 0.5)
  48.        ui.addTextArea(21, '<a href="event:right1"><CH>→1</CH></a>', playerName, 260, 25, 25, 15, nil, nil, 0.5)
  49.        ui.addTextArea(22, '<a href="event:right2"><CH>→2</CH></a>', playerName, 300, 25, 25, 15, nil, nil, 0.5)
  50.        ui.addTextArea(23, '<a href="event:right3"><CH>→3</CH></a>', playerName, 340, 25, 25, 15, nil, nil, 0.5)
  51.        ui.addTextArea(24, '<a href="event:right4"><CH>→4</CH></a>', playerName, 380, 25, 25, 15, nil, nil, 0.5)
  52.        ui.addTextArea(31, '<a href="event:jump1"><CH>↑1</CH></a>', playerName, 15, 60, 25, 15, nil, nil, 0.5)
  53.        ui.addTextArea(32, '<a href="event:jump2"><CH>↑2</CH></a>', playerName, 15, 100, 25, 15, nil, nil, 0.5)
  54.        ui.addTextArea(33, '<a href="event:jump3"><CH>↑3</CH></a>', playerName, 15, 140, 25, 15, nil, nil, 0.5)
  55.        ui.addTextArea(34, '<a href="event:jump4"><CH>↑4</CH></a>', playerName, 15, 180, 25, 15, nil, nil, 0.5)
  56.        ui.addTextArea(1111, '<a href="event:on"><j><B>ON</B></J></a>', playerName, 0, 220, 25, 15, nil, nil,0.5)
  57.        ui.addTextArea(1000, '<a href="event:off"><r><B>OFF</B></R></a>', playerName, 0, 260, 30, 15, nil, nil,0.5)
  58.         tfm.exec.respawnPlayer(playerName)
  59.          tfm.exec.setUIShamanName("<J>Bootcamp</J>")
  60.          
  61.                     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)
  62. 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)
  63. end
  64. ----Main options----
  65. function main()
  66.         tfm.exec.disableAllShamanSkills(true)
  67.         tfm.exec.disableAutoNewGame (true);
  68.         tfm.exec.disableAutoShaman(true);
  69.         tfm.exec.disableAutoTimeLeft (true);
  70.         tfm.exec.disableAutoScore (true);
  71.         tfm.exec.disableAfkDeath (true);
  72. end
  73. ----New Game----
  74. function eventNewGame()
  75.         tfm.exec.setUIMapName("<CH>Cheat")
  76.         tfm.exec.setGameTime (60*6);
  77.         tfm.exec.setUIShamanName ("<J>Bootcamp</J>")
  78. end
  79. ---Commands---
  80. function eventChatCommand(playerName,command)
  81.           if command=="mort" then
  82.         tfm.exec.killPlayer(playerName)
  83.        elseif command=="cheese" then
  84.     tfm.exec.giveCheese(playerName)
  85.        elseif command=="win" then
  86.     tfm.exec.giveCheese(playerName)
  87.     tfm.exec.playerVictory(playerName)
  88.        
  89.               --JUMP--
  90.              
  91.        elseif command=="jump1" then
  92.            tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
  93.        elseif command=="jump2" then
  94.            tfm.exec.movePlayer(playerName,0,0,true,0,-100,false)
  95.        elseif command=="jump3" then
  96.            tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
  97.        elseif command=="jump4" then
  98.            tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
  99.  
  100.                  --LEFT--
  101.                  
  102.         elseif command=="left1" then
  103.            tfm.exec.movePlayer(playerName,0,0,true,-50,0,false)
  104.         elseif command=="left2" then
  105.            tfm.exec.movePlayer(playerName,0,0,true,-100,0,false)
  106.         elseif command=="left3" then
  107.            tfm.exec.movePlayer(playerName,0,0,true,-150,0,false)
  108.         elseif command=="left4" then
  109.            tfm.exec.movePlayer(playerName,0,0,true,-200,0,false)
  110.            
  111.                  --RIGHT--
  112.                  
  113.         elseif command=="right1" then
  114.            tfm.exec.movePlayer(playerName,0,0,true,50,0,false)
  115.         elseif command=="right2" then
  116.            tfm.exec.movePlayer(playerName,0,0,true,100,0,false)
  117.         elseif command=="right3" then
  118.            tfm.exec.movePlayer(playerName,0,0,true,150,0,false)
  119.         elseif command=="right4" then
  120.            tfm.exec.movePlayer(playerName,0,0,true,200,0,false)
  121.            
  122. ----Able and Disable Fly, tp----
  123.  
  124.           elseif command=="flyon" then
  125.       A01[playerName]=on
  126.       elseif command=="flyoff" then
  127.        A01[playerName]=0
  128.  
  129.           elseif command=="tpon" then
  130.        A02[playerName]=1
  131.        
  132.           elseif command=="tpoff" then
  133.        A02[playerName]=0
  134. end
  135. end
  136. ---Player Won/Player Died---
  137. function eventPlayerWon(name)
  138.     tfm.exec.respawnPlayer(name)
  139. end
  140. function eventPlayerDied(name)
  141.     tfm.exec.respawnPlayer(name)
  142. end
  143. ---Event with mouse----
  144. function eventMouse(playerName, x, y)
  145.     if A02[playerName] == 1 then
  146.     tfm.exec.movePlayer(playerName, x, y, false, 0, 1, false)
  147.     end
  148. end
  149. ---Event with Emotes----
  150. function eventEmotePlayed(playerName,emote)
  151.     if emote==3 then
  152.         tfm.exec.giveCheese(playerName)
  153.         tfm.exec.playerVictory(playerName)
  154.     end
  155. end
  156. --Player=All--
  157. for name,player in pairs(tfm.get.room.playerList) do
  158.     system.bindMouse(name, true)
  159.     eventNewPlayer(name)
  160. end
  161. ---With LUA started---
  162. 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>=")
  163.         tfm.exec.newGame(maps[math.random(#maps)])
  164.        
  165. ---Callbacks----
  166. 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)
  167. function eventTextAreaCallback(id, playerName, text)
  168.     if text == 'menu' then
  169.     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)
  170.     else if text == 'exit' then
  171.     ui.removeTextArea(1, playerName)
  172.  
  173.     else if text == 'win' then
  174.     tfm.exec.giveCheese(playerName)
  175.     tfm.exec.playerVictory(playerName)
  176.     else if text == 'global' then
  177.     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)
  178.  
  179.        ui.removeTextArea(1, playerName)
  180.     else if text == 'cheese' then
  181.     tfm.exec.giveCheese(playerName)
  182.          else if text == 'exit2' then
  183.     ui.removeTextArea(2, playerName)
  184.        else if text == 'win2' then
  185.     tfm.exec.giveCheese(playerName)
  186.     tfm.exec.playerVictory(playerName)
  187.        else if text == 'jump' then
  188.             tfm.exec.movePlayer(playerName,0,0,true,0,-80,false)
  189.         else if text == 'die' then
  190.             tfm.exec.killPlayer(playerName)
  191.         else if text == 'm' then
  192.              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)
  193.        ui.removeTextArea(2, playerName)
  194.         else if text == 'commands' then
  195.               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)
  196.        ui.removeTextArea(2, playerName)
  197.        
  198. ---Jump----
  199.                else if text== 'jump1' then
  200.            tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
  201.        else if text== 'jump2' then
  202.            tfm.exec.movePlayer(playerName,0,0,true,0,-100,false)
  203.        else if text== 'jump3' then
  204.            tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
  205.        else if text== 'jump4' then
  206.            tfm.exec.movePlayer(playerName,0,0,true,0,-150,false)
  207.            
  208. ----Left----
  209.        else if text== 'left1' then
  210.            tfm.exec.movePlayer(playerName,0,0,true,-50,0,false)
  211.        else if text== 'left2' then
  212.            tfm.exec.movePlayer(playerName,0,0,true,-100,0,false)
  213.         else if text== 'left3' then
  214.            tfm.exec.movePlayer(playerName,0,0,true,-150,0,false)
  215.         else if text== 'left4' then
  216.            tfm.exec.movePlayer(playerName,0,0,true,-200,0,false)
  217.            
  218. -----Right---
  219.         else if text== "right1" then
  220.            tfm.exec.movePlayer(playerName,0,0,true,50,0,false)
  221.         else if text== 'right2' then
  222.            tfm.exec.movePlayer(playerName,0,0,true,100,0,false)
  223.         else if text== 'right4' then
  224.            tfm.exec.movePlayer(playerName,0,0,true,200,0,false)
  225.         else if text== 'right3' then
  226.            tfm.exec.movePlayer(playerName,0,0,true,150,0,false)
  227.                  else if text == 'exit3' then
  228.     ui.removeTextArea(3, playerName)
  229.                  else if text == 'p1' then
  230.     ui.removeTextArea(3, playerName)
  231.              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)
  232.                  else if text == 'p2' then
  233.     ui.removeTextArea(3, playerName)
  234.        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)
  235. --Ons/OFFs---
  236.               else if text == 'off' then
  237.     ui.removeTextArea(11, playerName)
  238.     ui.removeTextArea(12, playerName)
  239.     ui.removeTextArea(13, playerName)
  240.     ui.removeTextArea(14, playerName)
  241.     ui.removeTextArea(21, playerName)
  242.     ui.removeTextArea(22, playerName)
  243.     ui.removeTextArea(23, playerName)
  244.     ui.removeTextArea(24, playerName)
  245.     ui.removeTextArea(31, playerName)
  246.     ui.removeTextArea(32, playerName)
  247.     ui.removeTextArea(33, playerName)
  248.     ui.removeTextArea(34, playerName)
  249.     ui.removeTextArea(10, playerName)
  250.  
  251.    else if text == 'on' then
  252.        ui.addTextArea(11, '<a href="event:left2"><CH>←2</CH></a>', playerName, 100, 25, 25, 15, nil, nil, 0.5)
  253.        ui.addTextArea(10, '<a href="event:left1"><CH>←1</CH></a>', playerName, 60, 25, 25, 15, nil, nil, 0.5)
  254.        ui.addTextArea(13, '<a href="event:left3"><CH>←3</CH></a>', playerName, 140, 25, 25, 15, nil, nil, 0.5)
  255.        ui.addTextArea(12, '<a href="event:left4"><CH>←4</CH></a>', playerName, 180, 25, 25, 15, nil, nil, 0.5)
  256.        ui.addTextArea(21, '<a href="event:right1"><CH>→1</CH></a>', playerName, 260, 25, 25, 15, nil, nil, 0.5)
  257.        ui.addTextArea(22, '<a href="event:right2"><CH>→2</CH></a>', playerName, 300, 25, 25, 15, nil, nil, 0.5)
  258.        ui.addTextArea(23, '<a href="event:right3"><CH>→3</CH></a>', playerName, 340, 25, 25, 15, nil, nil, 0.5)
  259.        ui.addTextArea(24, '<a href="event:right4"><CH>→4</CH></a>', playerName, 380, 25, 25, 15, nil, nil, 0.5)
  260.        ui.addTextArea(31, '<a href="event:jump1"><CH>↑1</CH></a>', playerName, 15, 60, 25, 15, nil, nil, 0.5)
  261.        ui.addTextArea(32, '<a href="event:jump2"><CH>↑2</CH></a>', playerName, 15, 100, 25, 15, nil, nil, 0.5)
  262.        ui.addTextArea(33, '<a href="event:jump3"><CH>↑3</CH></a>', playerName, 15, 140, 25, 15, nil, nil, 0.5)
  263.        ui.addTextArea(34, '<a href="event:jump4"><CH>↑4</CH></a>', playerName, 15, 180, 25, 15, nil, nil, 0.5)
  264.  
  265.          elseif text=='flyon' then
  266.       A01[playerName]=1
  267.       elseif text=='flyoff' then
  268.        A01[playerName]=0
  269.        
  270.           elseif text=='tpon' then
  271.       A02[playerName]=1
  272.       elseif text=='tpoff' then
  273.        A02[playerName]=0
  274. end        
  275. end
  276. end
  277. end
  278. end
  279. end
  280. end
  281. end
  282. end
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end
  289. end
  290. end
  291. end
  292. end
  293. end
  294. end
  295. end
  296. end
  297. end
  298. end
  299. end
  300. end
  301. end
  302. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement