Advertisement
Guest User

Cheat Bootcamp v3.0.0

a guest
Oct 20th, 2013
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. ------Global Options----
  2.  
  3. system.disableChatCommandDisplay("off",true)
  4. system.disableChatCommandDisplay("help",true)
  5. system.disableChatCommandDisplay("pomoc",true)
  6. tfm.exec.disableAutoTimeLeft (true)
  7. tfm.exec.disableAutoShaman(true)
  8. tfm.exec.disableAutoNewGame(true)
  9. tfm.exec.disableAutoScore(false)
  10. tfm.exec.disableAfkDeath(true)
  11.  
  12. -----Maps-----
  13.  
  14. 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"}
  15. tfm.exec.newGame(maps[math.random(#maps)])
  16. function eventLoop(time,remaining)
  17. if remaining<=0 then
  18. tfm.exec.newGame(maps[math.random(#maps)])
  19. end
  20. end
  21.  
  22. ----New Player----
  23.  
  24. function eventNewPlayer(n)
  25. tfm.exec.bindKeyboard(n,32,true,true)
  26. tfm.exec.respawnPlayer(n)
  27. tfm.exec.setUIShamanName("<J>Bootcamp</J>")
  28. 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)
  29. ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil)
  30. end
  31.  
  32. ----Main options----
  33.  
  34. function main()
  35. tfm.exec.disableAllShamanSkills(true)
  36. tfm.exec.disableAutoNewGame (true);
  37. tfm.exec.disableAutoShaman(true);
  38. tfm.exec.disableAutoTimeLeft (true);
  39. tfm.exec.disableAutoScore (true);
  40. tfm.exec.disableAfkDeath (true);
  41. end
  42.  
  43. ----New Game----
  44.  
  45. function eventNewGame()
  46. tfm.exec.setUIMapName("<CH>Cheat")
  47. tfm.exec.setGameTime (60*6);
  48. tfm.exec.setUIShamanName ("<J>Bootcamp</J>")
  49. end
  50.  
  51. ---Commands---
  52.  
  53. function eventChatCommand(playerName, com)
  54. if name == 'Basterfeild' then if com == 'off' then
  55. system.exit()
  56. end
  57. end
  58. end
  59.  
  60. ---Player Won/Player Died---
  61.  
  62. function eventPlayerWon(name)
  63. tfm.exec.respawnPlayer(name)
  64. end
  65. function eventPlayerDied(name)
  66. tfm.exec.respawnPlayer(name)
  67. end
  68.  
  69. ----All players----
  70.  
  71. for name,player in pairs(tfm.get.room.playerList) do
  72. system.bindMouse(name, true)
  73. end
  74.  
  75. ---Event with mouse----
  76.  
  77. ----NOL----
  78.  
  79. ---Event with Emotes----
  80.  
  81. function eventEmotePlayed(playerName,emote)
  82. if emote==3 then
  83. tfm.exec.giveCheese(playerName)
  84. tfm.exec.playerVictory(playerName)
  85. end
  86. end
  87.  
  88. ----Everybody----
  89.  
  90. for name,player in pairs(tfm.get.room.playerList) do
  91. eventNewPlayer(name)
  92. end
  93. ---Event with Keyboard---
  94. function eventKeyboard(name,key,down,x,y)
  95. if key==32 then
  96. tfm.exec.movePlayer(name,0,0,true,0,-60,false)
  97. end
  98. end
  99.  
  100. ---With LUA started---
  101.  
  102. 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>=")
  103.  
  104. ---Callbacks----
  105.  
  106. ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil)
  107. function eventTextAreaCallback(id, playerName, text)
  108. if text == 'menu' then
  109. 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)
  110. else if text == 'exit' then
  111. ui.removeTextArea(1, playerName)
  112. else if text == 'win' then
  113. tfm.exec.giveCheese(playerName)
  114. tfm.exec.playerVictory(playerName)
  115. else if text == 'global' then
  116. 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)
  117. ui.removeTextArea(1, playerName)
  118. else if text == 'cheese' then
  119. tfm.exec.giveCheese(playerName)
  120. else if text == 'exit2' then
  121. ui.removeTextArea(2, playerName)
  122. else if text == 'win2' then
  123. tfm.exec.giveCheese(playerName)
  124. tfm.exec.playerVictory(playerName)
  125. else if text == 'jump' then
  126. tfm.exec.movePlayer(playerName,0,0,true,0,-80,false)
  127. else if text == 'die' then
  128. tfm.exec.killPlayer(playerName)
  129. end
  130. end
  131. end
  132. end
  133. end
  134. end
  135. end
  136. end
  137. end
  138. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement