Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version = 1.14
- ui.addTextArea(1,"<b> #Adventure </b>")
- 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>")
- 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>")
- tfm.exec.setUIMapName("<font color='#fff00'>Adventure <font color='#60608F'>|</font> <font color='#C2C2DA'>Creator :</font> <font color='#009D9D'> Denisches</font>")
- admin={"Denisches"}
- function eventChatCommand(name,command)
- if command=="sham" then
- tfm.exec.setShaman(name) --makes a player shaman if !sham
- elseif command=="mort" then
- tfm.exec.killPlayer(name) --Kills player if !mort
- elseif command=="vamp" then
- tfm.exec.setVampirePlayer(name) --Makes a player vampire if !vamp
- elseif command=="snow" then
- tfm.exec.snow() --Snows if !snow
- elseif command=="cheese" then
- tfm.exec.giveCheese(name) --cheese player if !cheese
- elseif command=="re" then
- tfm.exec.respawnPlayer(name) --Respawns player if !re
- elseif command=="win" then
- tfm.exec.playerVictory(name) --Win player if !win
- elseif command=="help" then
- print("<font color='#fff000'> Salutare si multumim ca ati ales ajutor, pentru a vedea comenzile scrieti !comenzi, pentru informati despre joc scrieti !info </font>")
- elseif command=="comenzi" then
- 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")
- elseif command=="info" then
- print("<font color='#fff000'>Thread cfm: http://cheese.formice.com/forum/threads/lua-script-adeventure.54150/</font>")
- elseif command=="refresh" then
- tfm.exec.setUIMapName("<font color='#fff00'>Adventure <font color='#60608F'>|</font> <font color='#C2C2DA'>Creator :</font> <font color='#009D9D'> Denisches</font>")
- elseif command=="pro" then
- ui.addPopup(4,0,"<p align='center'><b><font color='#fff000'>Pro *-*</font></b>")
- elseif command=="hard" then
- tfm.exec.setUIShamanName("<font color='#ff0000'> [Hard mode] </font>")
- tfm.exec.setUIMapName("<font color='#fff00'> #Adventure <font color='#ff0000'> [HARD] </font>")
- elseif command=="^^" then
- 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]")
- elseif command=="map" then
- 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>")
- elseif command=="?" then
- print("<font color='#fff00'>Tu ce preferi sa fii? Vampir shaman sau soarece?")
- ui.addPopup(7,0,"<p align='center'><b>Tu ce preferi sa fii? Vampir shaman sau soarece?</b>")
- elseif command=="new" then
- ui.addPopup(7,0,"<p align='center'> Am instalat o comanda pentru timp")
- elseif command=="portal" then
- function eventLoop(currentTime, remainingTime)
- tfm.exec.displayParticle(37, 900, 200,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 900, 100,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 400, 100,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 100, 100,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 100, 200,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 100, 500,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 100, 600,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 50, 640,66,5,3, 2, NIL)
- tfm.exec.displayParticle(37, 100, 400,66,5,3, 2, NIL)
- end
- elseif command=="furtuna" then
- tfm.exec.displayParticle(35, 100, 200,66,5,3, 2, NIL)
- tfm.exec.displayParticle(26, 100, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(35, 100, 100,66,5,3, 2, NIL)
- tfm.exec.displayParticle(26, 100, 50,66,5,3, 2, NIL)
- tfm.exec.displayParticle(35, 100, 400,66,5,3, 2, NIL)
- tfm.exec.displayParticle(26, 100, 500,66,5,3, 2, NIL)
- tfm.exec.displayParticle(35, 300, 200,66,5,3, 2, NIL)
- tfm.exec.displayParticle(26, 300, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(35, 300, 400,66,5,3, 2, NIL)
- tfm.exec.displayParticle(26, 300, 500,66,5,3, 2, NIL)
- tfm.exec.displayParticle(35, 300, 50,66,5,3, 2, NIL)
- elseif command=="+1" then
- tfm.exec.displayParticle(15, 100, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(15, 100, 500,66,5,3, 2, NIL)
- tfm.exec.displayParticle(15, 1000, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(15, 1000, 500,66,5,3, 2, NIL)
- elseif command=="+10" then
- tfm.exec.displayParticle(16, 100, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(16, 100, 500,66,5,3, 2, NIL)
- tfm.exec.displayParticle(16, 1000, 300,66,5,3, 2, NIL)
- tfm.exec.displayParticle(16, 1000, 500,66,5,3, 2, NIL)
- elseif command=="tags" then
- print(" <font color='#fff000'> Tagurile jocului sunt: #A , #ADV , #AD, #D </font>")
- elseif command=="credits" then
- 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 )
- else
- local args={}
- for argument in command:gmatch("[^#]+") do
- table.insert(args,argument)
- end
- if args[1]=="time" and args[2] then
- tfm.exec.setGameTime(args[2])
- print("<J>Timpul a fost schimbat!</J>")
- end
- end
- end
- players = {}
- for name,player in pairs(tfm.get.room.playerList) do
- table.insert(players,name)
- end
- maps={"4515037","4515106","4522169","4547121","4547254","4547280"}
- function eventLoop(time,remaining)
- if remaining<=3 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- tfm.exec.snow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement