Advertisement
Guest User

#Adventure v1.3

a guest
Dec 21st, 2013
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.51 KB | None | 0 0
  1.     version = 1.14
  2.     ui.addTextArea(1,"<b> #Adventure </b>")
  3.     ui.addPopup(1,0,"<p align='center'><font size='8' color='#ffffff'> #Adeventure este creatia originala a lui Denisches<font size='11' color='#'> <b>Va urez o distractie placuta.</font></b></p>")
  4.     print("<N> <font color='#d5d50d'> Salutare,acest joc este creatia si proprietatea lui <font color='#ffffff'>Denisches<font color='#d5d50d'>.Scrie !help pentru ajutor</font></N>")
  5.     tfm.exec.setUIMapName("<font color='#fff00'>Adventure    <font color='#60608F'>|</font>   <font color='#C2C2DA'>Creator :</font> <font color='#009D9D'> Denisches</font>")
  6.     admin={"Denisches"}
  7.     function eventChatCommand(name,command)
  8.      if command=="sham" then
  9.                     tfm.exec.setShaman(name) --makes a player shaman if !sham
  10.              elseif command=="mort" then
  11.                     tfm.exec.killPlayer(name) --Kills player if !mort
  12.              elseif command=="vamp" then
  13.                     tfm.exec.setVampirePlayer(name) --Makes a player vampire if !vamp
  14.              elseif command=="snow" then
  15.                     tfm.exec.snow() --Snows if !snow
  16.              elseif command=="cheese" then
  17.            tfm.exec.giveCheese(name) --cheese player if !cheese
  18.              elseif command=="re" then
  19.            tfm.exec.respawnPlayer(name) --Respawns player if !re
  20.              elseif command=="win" then
  21.            tfm.exec.playerVictory(name) --Win player if !win
  22.              elseif command=="help" then
  23.            print("<font color='#fff000'> Salutare si multumim ca ati ales ajutor, pentru a vedea comenzile scrieti !comenzi, pentru informati despre joc scrieti !info </font>")
  24.              elseif command=="comenzi" then
  25.            ui.addPopup(2,0,"<p align='center'><font size='15' color='#ff000'> Comenzile: <font size='12' color='#fff000'> !sham !re !new !snow !pro !mort !vamp !cheese !win !? !hard !^^ !map !time !tags si !reresh <font size='5'>ultima comanda folositio la fiecare mapa noua")
  26.              elseif command=="info" then
  27.            print("<font color='#fff000'>Thread cfm: http://cheese.formice.com/forum/threads/lua-script-adeventure.54150/</font>")
  28.         elseif command=="refresh" then
  29.            tfm.exec.setUIMapName("<font color='#fff00'>Adventure    <font color='#60608F'>|</font>   <font color='#C2C2DA'>Creator :</font> <font color='#009D9D'> Denisches</font>")
  30.         elseif command=="pro" then
  31.            ui.addPopup(4,0,"<p align='center'><b><font color='#fff000'>Pro *-*</font></b>")
  32.         elseif command=="hard" then
  33.            tfm.exec.setUIShamanName("<font color='#ff0000'> [Hard mode] </font>")
  34.            tfm.exec.setUIMapName("<font color='#fff00'> #Adventure <font color='#ff0000'> [HARD] </font>")
  35.         elseif command=="^^" then
  36.            print("<i>Version</i> 0.1-1.0 defecte, <i>Version</i> 1.2 Acceptabil, <i>Version</i> 1.3 - added new comand, <i>Version</i> <n>1.3</n> [Version prezent]")
  37.         elseif command=="map" then
  38.            print("<font color='#fff000'> daca ai o mapa pe care vrei sa o pui la aceste script-uri pornind de la versiunea prezenta in versiunile urmatoare o poti pune aici ^^ <url>http://cheese.formice.com/forum/conversations/add?to=Denisches</url> </font>")
  39.         elseif command=="?" then
  40.            print("<font color='#fff00'>Tu ce preferi sa fii? Vampir shaman sau soarece?")
  41.            ui.addPopup(7,0,"<p align='center'><b>Tu ce preferi sa fii? Vampir shaman sau soarece?</b>")
  42.        elseif command=="new" then
  43.            ui.addPopup(7,0,"<p align='center'> Am instalat o comanda pentru timp")
  44.        elseif command=="portal" then
  45.            function eventLoop(currentTime, remainingTime)
  46.     tfm.exec.displayParticle(37, 900, 200,66,5,3, 2, NIL)
  47.     tfm.exec.displayParticle(37, 900, 100,66,5,3, 2, NIL)
  48.     tfm.exec.displayParticle(37, 400, 100,66,5,3, 2, NIL)
  49.     tfm.exec.displayParticle(37, 100, 100,66,5,3, 2, NIL)
  50.     tfm.exec.displayParticle(37, 100, 200,66,5,3, 2, NIL)
  51.     tfm.exec.displayParticle(37, 100, 500,66,5,3, 2, NIL)
  52.     tfm.exec.displayParticle(37, 100, 600,66,5,3, 2, NIL)
  53.     tfm.exec.displayParticle(37, 50, 640,66,5,3, 2, NIL)
  54.     tfm.exec.displayParticle(37, 100, 400,66,5,3, 2, NIL)
  55.     end
  56.        elseif command=="furtuna" then
  57.     tfm.exec.displayParticle(35, 100, 200,66,5,3, 2, NIL)
  58.     tfm.exec.displayParticle(26, 100, 300,66,5,3, 2, NIL)
  59.     tfm.exec.displayParticle(35, 100, 100,66,5,3, 2, NIL)
  60.     tfm.exec.displayParticle(26, 100, 50,66,5,3, 2, NIL)
  61.     tfm.exec.displayParticle(35, 100, 400,66,5,3, 2, NIL)
  62.     tfm.exec.displayParticle(26, 100, 500,66,5,3, 2, NIL)
  63.     tfm.exec.displayParticle(35, 300, 200,66,5,3, 2, NIL)
  64.     tfm.exec.displayParticle(26, 300, 300,66,5,3, 2, NIL)
  65.     tfm.exec.displayParticle(35, 300, 400,66,5,3, 2, NIL)
  66.     tfm.exec.displayParticle(26, 300, 500,66,5,3, 2, NIL)
  67.     tfm.exec.displayParticle(35, 300, 50,66,5,3, 2, NIL)
  68.        elseif command=="+1" then
  69.     tfm.exec.displayParticle(15, 100, 300,66,5,3, 2, NIL)
  70.     tfm.exec.displayParticle(15, 100, 500,66,5,3, 2, NIL)
  71.     tfm.exec.displayParticle(15, 1000, 300,66,5,3, 2, NIL)
  72.     tfm.exec.displayParticle(15, 1000, 500,66,5,3, 2, NIL)
  73.        elseif command=="+10" then
  74.     tfm.exec.displayParticle(16, 100, 300,66,5,3, 2, NIL)
  75.     tfm.exec.displayParticle(16, 100, 500,66,5,3, 2, NIL)
  76.     tfm.exec.displayParticle(16, 1000, 300,66,5,3, 2, NIL)
  77.     tfm.exec.displayParticle(16, 1000, 500,66,5,3, 2, NIL)
  78.        elseif command=="tags" then
  79.            print(" <font color='#fff000'> Tagurile jocului sunt: #A , #ADV , #AD, #D </font>")
  80.        elseif command=="credits" then
  81.            ui.addPopup(8986,0,"<p align='center'><b><font color='#bbb222'>Credits:</font></b>                                               <b>Denisches</b> - creatorul minigamesului <b>Catdureazaa</b> - ajutor cu comanda de timp" , playerName, 50 , 39 , 300, 39, 0x000000, 0xff0000,backgroundAlpha,fixedPos )
  82. else  
  83.         local args={}
  84.        
  85.             for argument in command:gmatch("[^#]+") do
  86.                         table.insert(args,argument)
  87.                 end
  88. if args[1]=="time" and args[2] then
  89. tfm.exec.setGameTime(args[2])
  90. print("<J>Timpul a fost schimbat!</J>")
  91. end
  92.          end
  93. end
  94.     players = {}
  95.     for name,player in pairs(tfm.get.room.playerList) do
  96.                     table.insert(players,name)
  97.     end
  98.      
  99.     maps={"4515037","4515106","4522169","4547121","4547254","4547280"}
  100.      
  101.     function eventLoop(time,remaining)
  102.             if remaining<=3 then
  103.                     tfm.exec.newGame(maps[math.random(#maps)])
  104.             end
  105.     end
  106.      
  107.     tfm.exec.snow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement