Cereri scripturi |
Magiculroman « Citoyen » 1435949580000
| 0 | ||
Cereri Scripturi Salut! Aici veti putea face cereri de scripturi. Cateva scripturi de ajutor: 1.Setează numele mapei și al șamanului tfm.exec.setUIMapName("Numele Mapei") tfm.exec.setUIShamanName("Numele Șamanului") • Înlocuiește textele scrise cu roșu cu textele dorite de voi 2.Ninsoare tfm.exec.snow() local loopCount = 0 function eventLoop() if loopCount == 0 then tfm.exec.snow() tfm.exec.snow() end loopCount = (loopCount + 1) % 100 end 3.Zbor din tasta Space bar function eventNewPlayer(name) tfm.exec.bindKeyboard(name,32,true,true) end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,false) end end 4.Invocă un Spirit din tasta ,,jos" function eventNewPlayer(name) tfm.exec.bindKeyboard(name,40,true,true) end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end function eventKeyboard(name,key,down,x,y) if key==40 then tfm.exec.addShamanObject(24,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+30) end end 5.Creează echipe red={} blue={} function makeTeams() local playerList={} for name,player in pairs(tfm.get.room.playerList) do table.insert(playerList,name) end for i=1,#playerList,1 do local index=math.random(#playerList) local name=playerList[index] if i%2==0 then table.insert(red,name) else table.insert(blue,name) end table.remove(playerList,index) end end 6.Alege un jucător la întâmplare ca vampir players = {} for name,player in pairs(tfm.get.room.playerList) do table.insert(players,name) end tfm.exec.setVampirePlayer(players[math.random(#players)]) 7.Fă toți jucătorii vampiri for name,player in pairs(tfm.get.room.playerList) do tfm.exec.setVampirePlayer(name) end 8.Învie jucătorii morți function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end 9.Sărută și un mesaj special va apărea pe mapă function eventEmotePlayed(player, emote) if emote == 3 then ui.addTextArea(0, player .. " is inlove! *-*") end end 10.Când un jucător atinge Șamanul,acela va primi brânza function eventNewGame() shaman=nil for name,player in pairs(tfm.get.room.playerList) do if(tfm.get.room.playerList[name].isShaman) then shaman=name print(shaman.." just stole the cheese! CATCH HER!") tfm.exec.giveCheese(shaman) end end if(shaman==nil) then print('No shaman found!') end end function eventLoop(ct,cr) if(shaman~=nil) and not tfm.get.room.playerList[shaman].isDead then local shamanx=tfm.get.room.playerList[shaman].x local shamany=tfm.get.room.playerList[shaman].y for name,player in pairs(tfm.get.room.playerList) do if not tfm.get.room.playerList[name].isShaman then x=tfm.get.room.playerList[name].x y=tfm.get.room.playerList[name].y if x>shamanx-30 and x<shamanx+30 and y>shamany-30 and y<shamany+30 then tfm.exec.giveCheese(name) end end end end end 11.După ce o acțiune este săvârșită un mesaj va apărea pe mapă (Credite:Cucsmardul) function eventEmotePlayed(player, emote) if emote == Număr then ui.addTextArea(0, player .. "Textul dorit") end end • Înlocuiește textul scris cu albastru cu o cifră / număr de la 0 la 10. ID-urile pentru cifre sunt • 0 - Dansează • 1 - Râzi • 2 - Plângi • 3 - Sărută • 4 - Enervează-te • 5 - Aplaudă • 6 - Dormi • 7 - *Facepaw* • 8 - Așează-te • 9 - Trage Confetti • 10 - Ridică steagul (Nu contează al cărei țări) • Înlocuiește textul scrise cu roșu cu textele dorite de voi 12.Prin comanda !mort scrisă în chat,șoarecele tău va muri (Credite:Panadesoim) function eventChatCommand(p,cm) if cm == [[mort]] then tfm.exec.killPlayer(p) end end 13.Teleportare din ,,click" (Credite:Panadesoim) players = {} function pythag(x1,y1,x2,y2,r) local x=x2-x1 local y=y2-y1 local r=r+r return x*x+y*y<r*r end function eventNewPlayer(name) players[name] = { spawned = true, } system.bindMouse(name, true) end function eventMouse(playerName, x, y) if players[playerName].spawned then for name, player in pairs(tfm.get.room.playerList) do if pythag(x, y, player.x, player.y, 25) and playerName ~= name then local playerData = tfm.get.room.playerList[playerName] tfm.exec.movePlayer(name, playerData.x, playerData.y) tfm.exec.displayParticle(36,playerData.x,playerData.y,0,0,0,0,nil) tfm.exec.displayParticle(36,player.x,player.y,0,0,0,0,nil) tfm.exec.movePlayer(playerName, player.x, player.y) end end end end for k,v in pairs({}) do tfm.exec["disable"..v](true) end for name, player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end 14.Un micut inventar care va apărea pe mapa ta(Credite:Ciocead si Micesoareci) players={} notices={notice=""} ui.addTextArea(10,"<p align='center'><font face='arial'><a href='event:open'><j><b>Magazin</a></font></p>",name,300,28,50,18,0x00001,0xEB1D51,0.9,true) function eventTextAreaCallback(id, name, callback) ui.addTextArea(0,"<p align='center'><a href='event:Invie'>Invie</a></p>",name,270,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(1,"<p align='center'><a href='event:Branza'>Branza</a></p>",name,328,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(2,"<p align='center'><a href='event:Vampir'>Vampir</a></p>",name,270,87,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(3,"<p align='center'><a href='event:Şaman'>Şaman</a></p>",name,328,87,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(4,"<p align='center'><a href='event:Rosu'>Rosu</a></p>",name,270,117,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(5,"<p align='center'><a href='event:Gaura'>Gaura</a></p>",name, 328,117,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(6,"<p align='center'><a href='event:Verde'>Verde</a></p>",name, 386,117,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(7,"<p align='center'><a href='event:Zapada'>Zapada</a></p>",name,270,147,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(8,"<p align='center'><a href='event:Mort'>Mort</a></p>",name,328,147,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(9,"<p align='center'><a href='event:Blue'>Blue</a></p>",name,386,147,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(10,"<p align='center'><a href='event:Meep'>Meep</a></p>",name,385,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(11,"<p align='center'><a href='event:+10'>+10</a></p>",name,385,87,50,20,0x00001,0xCB546B,0.9,true) if callback=="Invie" then tfm.exec.respawnPlayer(name) end if callback=="Vampir" then tfm.exec.setVampirePlayer(name) end if callback=="Şaman" then tfm.exec.setShaman(name) end if callback=="Rosu" then tfm.exec.setNameColor(name, 0xCB546B) end if callback=="Verde" then tfm.exec.setNameColor(name, 0x30BA76) end if callback=="Gaura" then tfm.exec.playerVictory(name) end if callback=="Zapada" then tfm.exec.snow() end if callback=="Mort" then tfm.exec.killPlayer(name) end if callback=="Meep" then tfm.exec.giveMeep(name) end if callback=="+10" then tfm.exec.setPlayerScore(name, 10, true) end if callback=="Branza" then tfm.exec.giveCheese(name) end if callback=="Blue" then tfm.exec.setNameColor(name, 0x2E72CB) end end 14.Îngheață șoarecele prin comanda ,,!c nume,, (Credite:Erikq) for i,command in ipairs({"c"}) do system. disableChatCommandDisplay(command,true) end function eventChatCommand(answer,command) if command:sub(1,1)=="c" then if tfm.get.room.playerList[answer] then local y = tfm.get.room.playerList[answer].y local x = tfm.get.room.playerList[answer].x tfm.exec.addShamanObject(54, x, y, 0, 0, 0, false) tfm.exec.killPlayer(""..answer.."") end end end 15.Scriind in chat !win !cheese sau !color (cod de culoare) acestea se vor întâmpla (Credite:Micesoareci) Înlocuiește textul scris cu roșu cu un cod de culoare function eventChatCommand(p,cm) if cm == [[color]] then tfm.exec.setNameColor(p, 0x(Codul culorii)) end end function eventChatCommand(p,cm) if cm == [[win]] then tfm.exec.playerVictory(p) end end function eventChatCommand(p,cm) if cm == [[cheese]] then tfm.exec.giveCheese(p) end end 801: tfm.exec.disableAutoShaman(true) tfm.exec.disableAfkDeath(true) tfm.exec.newGame([[<C><P defilante="0,0,0,1" D="x_transformice/x_salon801/x_place.jpg,1600,400,x_transformice/x_salon801/x_jardin1.jpg,800,400,x_transformice/x_salon801/x_bar.jpg,2400,400,x_transformice/x_salon801/x_jardin2.jpg,0,400,x_transformice/x_salon801/x_resto.jpg,2400,0,x_transformice/x_salon801/x_pont.jpg,1600,0,x_transformice/x_salon801/x_sona.jpg,800,0,x_transformice/x_salon801/x_ciel.jpg,0,0" H="800" L="3200" APS="x_transformice/x_salon801/x_av_jardin.png,1,0,0,0,0,0,608;x_transformice/x_salon801/x_ap_cabane.png,0,2182,0,581,271,2165,0;x_transformice/x_salon801/x_ap_cabane2.png,0,1515,46,275,181,1472,38;x_transformice/x_salon801/x_av_sona.png,1,0,0,0,0,859,0" /><Z><S><S m="" P="0,0,0.3,0.2,0,0,0,0" L="200" o="12bd94" X="1739" H="25" Y="788" T="12" /><S m="" P="0,0,0.3,0.2,-90,0,0,0" L="800" o="12bd94" X="-9" H="20" Y="400" T="12" /><S m="" P="0,0,0.3,0.2,-90,0,0,0" L="800" o="12bd94" X="3210" H="20" Y="401" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2037" H="10" Y="708" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="300" o="12bd94" X="1988" H="25" Y="799" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="280" o="12bd94" X="2276" H="25" Y="786" T="12" /><S m="" P="0,0,0.3,0.2,-20,0,0,0" L="40" o="12bd94" X="2121" H="10" Y="785" T="12" /><S m="" P="0,0,0.3,0.2,20,0,0,0" L="40" o="12bd94" X="1855" H="10" Y="786" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="230" o="12bd94" X="2213" H="10" Y="664" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2191" H="10" Y="549" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2358" H="10" Y="548" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="160" o="12bd94" X="1718" H="10" Y="608" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="65" o="12bd94" X="1705" H="10" Y="547" T="12" /><S m="" P="0,0,0,0.2,38,0,0,0" L="100" o="12bd94" X="1794" H="10" Y="476" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="80" o="12bd94" X="1877" H="10" Y="519" T="12" /><S m="" P="0,0,0,0.2,-62,0,0,0" L="100" o="12bd94" X="2095" H="10" Y="523" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="65" o="12bd94" X="1827" H="10" Y="706" T="12" /><S m="" P="0,0,0.3,0.2,-18,0,0,0" L="100" o="12bd94" X="2455" H="25" Y="774" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="260" o="12bd94" X="2629" H="25" Y="760" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2596" H="10" Y="712" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2674" H="10" Y="712" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="25" o="12bd94" X="2635" H="10" Y="704" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="25" o="12bd94" X="2638" H="10" Y="522" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="25" o="12bd94" X="2938" H="10" Y="520" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="25" o="12bd94" X="3075" H="10" Y="521" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2568" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="280" o="12bd94" X="2648" H="10" Y="569" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2601" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2678" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2711" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2897" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2977" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="3036" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="3115" H="10" Y="529" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="290" o="12bd94" X="2998" H="10" Y="569" T="12" /><S m="" P="0,0,0.3,0.2,40,0,0,0" L="50" o="12bd94" X="2770" H="25" Y="773" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="430" o="12bd94" X="3002" H="25" Y="788" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2821" H="10" Y="740" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2856" H="10" Y="740" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="200" o="12bd94" X="3039" H="10" Y="719" T="12" /><S m="" P="0,0,,,,0,0,0" L="60" X="3172" H="420" Y="579" T="9" /><S m="" P="0,0,0.3,0.2,-55,0,0,0" L="175" o="12bd94" X="2807" H="10" Y="638" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="50" o="12bd94" X="2483" H="285" Y="543" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="350" o="12bd94" X="2333" H="10" Y="401" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="730" o="12bd94" X="2778" H="10" Y="385" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2590" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2677" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2732" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2821" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2878" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2968" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="3020" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="3109" H="10" Y="344" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2635" H="10" Y="335" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2779" H="10" Y="335" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2927" H="10" Y="335" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="3069" H="10" Y="335" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="50" o="12bd94" X="1684" H="10" Y="398" T="12" /><S m="" P="0,0,0.3,0.2,-30,0,0,0" L="80" o="12bd94" X="3165" H="10" Y="203" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" X="2514" H="10" Y="333" T="12" /><S m="" P="0,0,0.3,0.2,40,0,0,0" L="40" o="12bd94" X="2484" H="10" Y="321" T="12" /><S m="" P="0,0,0.3,0.2,60,0,0,0" L="95" o="12bd94" X="2446" H="10" Y="267" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="230" o="12bd94" X="2312" H="10" Y="229" T="12" /><S m="" P="0,0,0.3,0.2,-45,0,0,0" L="60" o="12bd94" X="2328" H="10" Y="168" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="110" o="12bd94" X="2405" H="10" Y="144" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="90" o="12bd94" X="2228" H="10" Y="158" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="80" o="12bd94" X="2410" H="10" Y="124" T="12" /><S m="" P="0,0,0.3,0.2,-90,0,0,0" L="60" o="12bd94" X="2455" H="10" Y="140" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="250" o="12bd94" X="2326" H="10" Y="53" T="12" /><S m="" P="0,0,0.3,0.2,-70,0,0,0" L="90" o="12bd94" X="2186" H="10" Y="91" T="12" /><S m="" P="0,0,0.3,0.2,60,0,0,0" L="30" o="12bd94" X="2179" H="10" Y="146" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="30" o="12bd94" X="2218" H="10" Y="141" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2194" H="10" Y="134" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2242" H="10" Y="134" T="12" /><S m="" P="0,0,0.3,0.2,-15,0,0,0" L="90" o="12bd94" X="2162" H="10" Y="248" T="12" /><S m="" P="0,0,0.3,0.2,-10,0,0,0" L="90" o="12bd94" X="2076" H="10" Y="268" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="90" o="12bd94" X="1988" H="10" Y="277" T="12" /><S m="" P="0,0,0.3,0.2,10,0,0,0" L="90" o="12bd94" X="1904" H="10" Y="271" T="12" /><S m="" P="0,0,0.3,0.2,30,0,0,0" L="60" o="12bd94" X="1789" H="10" Y="237" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="100" o="12bd94" X="1717" H="10" Y="223" T="12" /><S m="" P="0,0,0.3,0.2,-6,0,0,0" L="210" o="12bd94" X="1564" H="10" Y="227" T="12" /><S m="" P="0,0,0.3,0.2,-35,0,0,0" L="30" o="12bd94" X="2188" H="10" Y="236" T="12" /><S m="" P="0,0,0.3,0.2,-20,0,0,0" L="70" o="12bd94" X="2487" H="10" Y="102" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2526" H="10" Y="91" T="12" /><S m="" P="0,0,0.3,0.2,37,0,0,0" L="70" o="12bd94" X="2562" H="10" Y="111" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" X="2632" H="10" Y="154" T="12" /><S m="" P="0,0,0.3,0.2,-10,0,0,0" L="20" o="12bd94" X="2696" H="10" Y="136" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="150" o="12bd94" X="2935" H="10" Y="159" T="12" /><S m="" P="0,0,0.3,0.2,20,0,0,0" L="20" o="12bd94" X="1675" H="10" Y="219" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="270" o="12bd94" X="1338" H="10" Y="238" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="60" o="12bd94" X="1278" H="10" Y="217" T="12" /><S m="" P="0,0,0.3,0.2,-40,0,0,0" L="80" o="12bd94" X="1176" H="10" Y="262" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="220" o="12bd94" X="1052" H="10" Y="278" T="12" /><S m="" P="0,0,0.3,0.2,40,0,0,0" L="100" o="12bd94" X="909" H="10" Y="250" T="12" /><S m="" P="0,0,,,,0,0,0" L="300" X="1049" H="50" Y="258" T="9" /><S m="" P="0,0,2,0.2,-3,0,0,0" L="10" o="12bd94" X="870" H="200" Y="69" T="12" /><S m="" P="0,0,0.3,0.2,-10,0,0,0" L="100" o="12bd94" X="985" H="10" Y="119" T="12" /><S m="" P="0,0,0.3,0.2,-20,0,0,0" L="100" o="12bd94" X="1078" H="10" Y="95" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="430" o="12bd94" X="1424" H="25" Y="781" T="12" /><S m="" P="0,0,0.3,0.2,20,0,0,0" L="40" o="12bd94" X="1655" H="10" Y="780" T="12" /><S m="" P="0,0,0.3,0.2,100,0,0,0" L="65" o="12bd94" X="1569" H="10" Y="699" T="12" /><S m="" P="0,0,0.3,0.2,10,0,0,0" L="40" o="12bd94" X="1571" H="10" Y="668" T="12" /><S m="" P="0,0,0.3,0.2,-40,0,0,0" L="40" o="12bd94" X="1627" H="10" Y="618" T="12" /><S m="" P="0,0,10,0.2,110,0,0,0" L="150" o="12bd94" X="1600" H="10" Y="510" T="12" /><S m="" P="0,0,0,0.2,-41,0,0,0" L="200" o="12bd94" X="1519" H="10" Y="468" T="12" /><S m="" P="0,0,2,0.2,20,0,0,0" L="100" o="12bd94" X="1173" H="10" Y="673" T="12" /><S m="" P="0,0,2,0.2,30,0,0,0" L="100" o="12bd94" X="1169" H="10" Y="751" T="12" /><S m="" P="0,0,2,0.2,10,0,0,0" L="100" o="12bd94" X="1079" H="10" Y="718" T="12" /><S m="" P="0,0,2,0.2,-10,0,0,0" L="100" o="12bd94" X="984" H="10" Y="718" T="12" /><S m="" P="0,0,2,0.2,-30,0,0,0" L="100" o="12bd94" X="893" H="10" Y="751" T="12" /><S m="" P="0,0,2,0.2,10,0,0,0" L="100" o="12bd94" X="1085" H="10" Y="649" T="12" /><S m="" P="0,0,2,0.2,-10,0,0,0" L="100" o="12bd94" X="988" H="10" Y="648" T="12" /><S m="" P="0,0,2,0.2,-20,0,0,0" L="100" o="12bd94" X="898" H="10" Y="672" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="430" o="12bd94" X="635" H="25" Y="782" T="12" /><S m="" P="0,0,0.3,0.2,30,0,0,0" L="80" o="12bd94" X="447" H="10" Y="753" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="360" o="12bd94" X="235" H="10" Y="735" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" X="62" H="170" Y="651" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="430" o="12bd94" X="211" H="25" Y="784" T="12" /><S m="" P="0,0,1,0.2,-7,0,0,0" L="100" o="12bd94" X="183" H="10" Y="542" T="12" /><S m="" P="0,0,1,0.2,6,0,0,0" L="220" o="12bd94" X="341" H="10" Y="547" T="12" /><S m="" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" X="235" H="80" Y="454" T="12" /><S m="" P="0,0,0.3,10,-30,0,0,0" L="10" o="12bd94" X="188" H="40" Y="401" T="12" /></S><D><DS Y="771" X="1930" /></D><O /></Z></C>]]) tfm.exec.disableAutoNewGame(true) tfm.exec.setUIMapName("<n>801") function eventNewPlayer(player) tfm.exec.respawnPlayer(player) end Dernière modification le 1521464280000 |
Dramacorn « Consul » 1435990080000
| 5 | ||
Ai avut permisiunea unei santinele de a face acest thread? |
Lunakami « Citoyen » 1436009100000
| 0 | ||
dramatotala a dit : +1 E cam trist...dar adevarat.Nu avem thread cu cereri de scripturi pentru ca se cereau chestii imposibile in vechiul thread.Sad story... |
Dramacorn « Consul » 1436027700000
| 2 | ||
Am nevoie de scriptul cu mapa aceia de la eventul de Craciun in care adunai morcovi si cadouri |
0 | ||
dramatotala a dit : Ai putea folsoi alte mape si sa culegi alte iteme caci morcovii,cadourile si fundalul de Craciun folosesc imagini,pe care nu le poti folosi cat nu esti un Lua Member |
Lunakami « Citoyen » 1436099580000
| 0 | ||
Daca threadul asta va mai trai... Vreau un script pentru leaderboard daca se poate :3 |
Dramacorn « Consul » 1436170800000
| 2 | ||
Hey Vara trecuta eram in casa unui trib si cineva a pus un script In care puteai juca spanzuratoare il are cineva? |
0 | ||
dramatotala a dit : http://pastebin.com/nyRGKPB0 |
Dramacorn « Consul » 1436199600000
| 2 | ||
Cum adaug shop unui script? |
0 | ||
dramatotala a dit : shop={ {name="Chiftea",price=6,effect=function(name) tfm.exec.killPlayer(name) end}, {name="Sticla de vin",price=2,effect=function(name) tfm.exec.giveCheese(name) end}, {name="Branza",price=99,effect=function(name) tfm.exec.setShaman(name) end} } tfm.exec.disableAutoScore(true) function eventPlayerWon(name) tfm.exec.setPlayerScore(name,1,true) end function eventChatCommand(name,command) if command=="shop" then local str="" for id,item in pairs(shop) do str=str.."<a href='event:buy "..id.."'>["..item.price.."] "..item.name.."</a><br />" end ui.addTextArea(1, str, name, 300, 100, 200, 200, nil, nil, 1, true) ui.addTextArea(2, "<b><a href='event:exit'>X</a></b>", name, 485, 100, nil, nil, nil, nil, 0, true) end end function eventTextAreaCallback(id,name,callback) local arg={} for args in callback:gmatch("[^%s]+") do table.insert(arg,args:lower()) end local id=tonumber(arg[2]) if arg[1]=="buy" and id then if shop[id] and tfm.get.room.playerList[name].score>=shop[id].price then if shop[id].effect then shop[id].effect(name) end --Do what you want with the shop item. tfm.exec.setPlayerScore(name,-shop[id].price,true) print(name.." purchased "..shop[id].name) end elseif arg[1]=="exit" then ui.removeTextArea(1, name) ui.removeTextArea(2, name) end end --Va aparea scriind !shop |
Alexefti « Citoyen » 1436261460000
| 0 | ||
Am nevoie de scriptul care face sa apara scrisul in chat la inceput, sau cea care face o fereastra. |
Dramacorn « Consul » 1436277000000
| 2 | ||
Am o intrebare cum adaug mapa unui script? si app nu merge daca adaug in script tfm.exec.newGame("@code map") |
Hurricane « Citoyen » 1436277060000
| 0 | ||
Dramatotala a dit : Ai pus end? |
Dramacorn « Consul » 1436277600000
| 2 | ||
Andrutaiubi a dit : Trebuia?? Doar un end? |
Hurricane « Citoyen » 1436278260000
| 0 | ||
Da. :) |
Dramacorn « Consul » 1436281440000
| 2 | ||
Nu merge.. |
Maskedlimits « Citoyen » 1436281800000
| 0 | ||
Dramatotala a dit : Ce vrei să faci mai exact și nu-ți iese? |
Dramacorn « Consul » 1436284020000
| 2 | ||
Maskedlimits a dit : un script ;c |
Maskedlimits « Citoyen » 1436285040000
| 0 | ||
Dramatotala a dit : Care să facă ce? Ca să încarci hărți folosești tfm.exec.newGame("@500000") și pui ce cod vrei. |
0 | ||
tfm.exec.disableAutoNewGame(true) maps={0,1,2,3,4,5,6,7,8,9,10} function eventLoop(time,remaining) if remaining<=0 then tfm.exec.newGame(maps[math.random(#maps)]) end end function eventPlayerDied() local i=0 for n,player in pairs(tfm.get.room.playerList) do if not player.isDead then i=i+1 end end if i==0 then tfm.exec.newGame(maps[math.random(#maps)]) end end --Poti scrie si mai multe coduri ca sa se joace o mapa la intamplare |