Apocalypson - Skrypt Fal_tico |
Fal_tico « Citoyen » 1545653820000
| 0 | ||
function eventfunction eventNewPlayer(name) tfm.exec.bindKeyboard(name, 32, false, true) function eventKeyboard(name, key) if key == 32 then tfm.exec.movePlayer(name, 0, 0, false, 0, -50, false) for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) function eventNewPlayer(name) system.bindMouse(name, true) end function eventMouse(name, x, y) tfm.exec.explosion(x, y, -10, 200, false) tfm.exec.displayParticle(12, x, y, 0, 0, 0, 0, nil) end for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end end end x = 0 czas1 = 0 system.disableChatCommandDisplay("ankieta", true) system.disableChatCommandDisplay("usun", true) function eventChatCommand(name, cmd) if cmd:sub(0,7) == "ankieta" then x = 1 ui.addPopup(0, 1, cmd:sub(9), nil, 50, 50, nil) czas = os.time() odp1 = 0 odp2 = 0 end if cmd == "usun" then ui.removeTextArea(1, nil) ui.removeTextArea(2, nil) ui.removeTextArea(3, nil) end end function eventPopupAnswer(id, name, cb) if cb == "yes" then odp1 = odp1+1 else odp2 = odp2+1 end end function eventLoop() if x == 1 then if czas < (os.time() - 15000) then if odp1 > odp2 then ui.addTextArea(1, "Więcej osób zagłosowało na tak!", nil, 50, 50, 0, 0, nil, nil, 0.5) elseif odp1 < odp2 then ui.addTextArea(1, "Więcej osób zagłosowało na nie!", nil, 50, 50, 0, 0, nil, nil, 0.5) elseif odp1 == odp2 then ui.addTextArea(1, "Głosy były równe!", nil, 50, 50, 0, 0, nil, nil, 0.5) end ui.addTextArea(2, odp1.." osób zagłosowało na tak", nil,50, 75, 0, 0, nil, nil, 0.5) ui.addTextArea(3, odp2.." osób zagłosowało na nie", nil,50, 100, 0, 0, nil, nil, 0.5) end end end __________________________________________________________ W skrypcie chodzi o to, że jeden gracz jest vampirem i reszta musi od niego uciec, jeśli vampir kogoś złapie to ta osoba automatycznie leci do góry i strzela cannonami w dół (pomaga mu) AKTUALIZACJA - jeśli vampir kogoś złapie, wtedy ta osoba tańczy i wysyła automatycznie emotke 4 i leci do góry. vampir może ożywić emotką 1. |
Fal_tico « Citoyen » 1545654120000
| 0 | ||
przepraszam za nie ulozenie, ale nie dalam rady :) |
Fal_tico « Citoyen » 1545655380000
| 1 | ||
-- Tamagotchi v2.0 by Eshkation. Bugs or Ideias? Comment on topic! tfm.exec.disableAutoShaman(true) tfm.exec.disableAutoNewGame(true) tfm.exec.disableAfkDeath(true) tfm.exec.newGame("@5087869") moveTime = os.time() username = "Minehackpl" -- Put your name here! clickToHatch = 0 clickToClear = 0 level = 10 petInfo = {mood = 1000, hungry = 1000, sleep = 1000} petName = "" petResponses = {" niewiem co gadam"," jestem dziwny"," lubie ciastka","nierozumiem ciebie"," daj mi jeść!"," zostaw mnie wreszcie!","nie mam ochoty na gadanie"," no zostaw mnie!"," nie lubie cie","powiem ci sekret, jesteś dziwny!","chyba zaczynam cie lubić","będe gadać po angielsku BO MOGE"," zaczynam cie lubić na serio"," wypuść mnie!.","nie lubie jak tak do mnie mówisz!"," nie rozumiem angielskiego więc nie wiem co mówie!"," paws at you playfully."," nudzi mi się pobawmy się w wyzywanie ok?"," IDZOTA!"," chce mi sie kupe!"," gdzie toi toi?"," seems to beckon for you."," nie nawidze tej gry."," POWIEDZ GDZIE!"," toi toi "," tells you you're their favorite!"," śmierdzisz..."," cannot possibly consider that!"," spins in a circle!"," doesn't wish to reply at this time"," looks wistfully out the window."," shouts at the top of their lungs!"," rolls over."," just sits there and looks cute."," contemplates life."," wags their tail!"," whimpers in response."," rolls their eyes."," frowns thoughtfully."," giggles at what you said!"," laughs heartily!"," understands what you mean."," replies insightfully."," copies what you said!"," looks like they want to be petted!"," agrees wholeheartedly!"," chce być wolny!"} chat = {""} chatCount = 0 defaultColor = 0 removePetInfo = false sleep = false timing = {} actions = {clearPet = false} grow = 0 poop = false system.bindMouse(username) Tamagotchis = { [1] = { -- Egg X = {365, 375, 385, 395, 405, 415, 355, 345, 425, 425, 335, 335, 435, 435, 435, 435, 325, 325, 325, 325, 335, 345, 425, 415, 355, 365, 375, 385, 395, 405, 405, 395, 385, 375, 375, 365, 365, 355, 355, 345, 335, 415, 405, 385, 395, 375, 365, 355, 345, 335, 425, 415, 405, 425, 415, 405, 395, 405, 395, 385, 395, 385, 375, 385, 375, 365}; Y = {145, 145, 145, 145, 155, 165, 155, 165, 175, 185, 175, 185, 195, 205, 215, 225, 195, 205, 215, 225, 235, 245, 235, 245, 255, 255, 255, 255, 255, 255, 165, 165, 165, 165, 175, 175, 185, 185, 195, 195, 205, 175, 175, 175, 175, 185, 195, 205, 205, 215, 205, 205, 205, 215, 215, 215, 215, 225, 225, 225, 235, 235, 235, 245, 245, 245}; body = {type = 12, color = 0x6B6B6B} }; [2] = { X = {365, 395, 355, 405, 395, 385, 375, 365, 355, 355, 405, 405, 395, 385, 375, 365, 375, 385, 345, 355, 365, 415, 405, 395, 345, 355, 365, 375, 385, 395, 405, 415}; Y = {145, 145, 155, 155, 155, 155, 155, 155, 165, 175, 165, 175, 175, 175, 175, 175, 165, 165, 185, 185, 185, 185, 185, 185, 195, 195, 195, 195, 195, 195, 195, 195}; body = {type = 12, color = 0x404199}; name = "Bubbly" }; [2.1] = { X = {305, 315, 325, 335, 345, 355, 365, 295, 305, 375, 365, 355, 315, 315, 305, 295, 295, 295, 305, 315, 325, 335, 375, 345, 345, 345, 345, 385, 395, 405, 415, 425, 435, 435, 435, 445, 445, 435, 425, 415, 425, 445, 445, 435, 425, 415, 405, 395, 385, 375, 365, 355, 345, 335, 325, 315, 305, 295, 295, 405, 395, 385, 375, 365, 355, 375, 375, 415, 415}; Y = {135, 135, 135, 145, 135, 135, 135, 145, 155, 145, 155, 165, 165, 175, 185, 195, 205, 215, 225, 225, 215, 215, 155, 175, 185, 195, 205, 155, 155, 155, 155, 165, 175, 185, 195, 205, 215, 225, 225, 225, 235, 235, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 235, 215, 225, 225, 225, 215, 235, 185, 195, 185, 195}; body = {type = 12, color = 0x404199}; name = "Dewgeel" }; [3] = { X = {365, 375, 385, 395, 355, 355, 355, 375, 375, 365, 395, 395, 385, 365, 365, 385, 375, 385, 395, 395, 405, 405, 405, 415, 405, 415, 425}; Y = {155, 155, 155, 155, 165, 175, 185, 165, 175, 175, 165, 175, 175, 185, 195, 185, 195, 195, 185, 195, 165, 175, 185, 185, 195, 195, 195}; body = {type = 12, color = 0x1F8F38}; name = "Squirm" }; [3.1] = { X = {315, 325, 335, 345, 355, 365, 365, 365, 305, 305, 305, 335, 335, 355, 355, 325, 325, 375, 385, 385, 385, 375, 365, 365, 375, 355, 375, 365, 355, 345, 335, 335, 325, 315, 305, 295, 285, 275, 295, 295, 285, 275, 275, 265, 255, 255, 255, 245, 245, 245, 285, 275, 265, 255, 375, 365, 355, 335, 345, 325, 315, 315, 315, 325}; Y = {105, 105, 115, 105, 105, 115, 125, 135, 115, 125, 135, 125, 135, 135, 145, 135, 145, 145, 155, 165, 175, 185, 195, 205, 215, 215, 225, 225, 225, 215, 215, 225, 225, 225, 225, 215, 205, 205, 135, 145, 145, 155, 165, 165, 175, 185, 195, 205, 215, 225, 225, 225, 225, 225, 175, 175, 175, 175, 175, 175, 185, 195, 205, 205}; body = {type = 12, color = 0x1F8F38}; name = "Froaklet" }; [4] = { X = {335, 345, 355, 325, 335, 345, 365, 375, 385, 375, 365, 355, 345, 355, 365, 375, 385, 385, 335, 335, 345, 355, 365, 375, 345, 365}; Y ={165, 165, 175, 175, 185, 185, 165, 165, 175, 185, 185, 195, 205, 205, 205, 205, 215, 225, 215, 225, 225, 225, 225, 225, 215, 215}; body = {type = 12, color = 0xAFA800}; name = "Sprout" }; [4.1] = { X = {345, 335, 355, 365, 375, 385, 395, 405, 325, 315, 305, 295, 285, 285, 285, 405, 405, 295, 305, 315, 325, 325, 315, 375, 365, 365, 375, 385, 395, 395, 385, 295, 305, 355, 355, 335, 335, 355, 335, 365, 375, 325, 315, 335, 345, 355, 385, 305, 395, 395, 395, 395, 395, 295, 295, 295, 295, 295, 305, 385, 405, 405, 285, 285, 325, 325, 375, 375, 355, 395, 385, 375, 375, 365, 365, 355, 345, 335, 335, 325, 315, 305, 295}; Y = {125, 125, 125, 115, 115, 125, 125, 115, 115, 115, 125, 125, 115, 125, 135, 125, 135, 135, 135, 135, 135, 125, 125, 125, 125, 135, 135, 135, 135, 145, 145, 145, 145, 135, 145, 135, 145, 155, 155, 165, 165, 165, 165, 175, 175, 175, 175, 175, 185, 195, 205, 215, 225, 185, 195, 205, 215, 225, 225, 225, 235, 245, 235, 245, 195, 205, 195, 205, 215, 245, 245, 235, 245, 245, 235, 235, 235, 235, 245, 245, 245, 245, 245}; body = {type = 12, color = 0xAFA800}; name = "Leafer" }; [5] = { X = {355, 365, 375, 385, 395, 395, 395, 395, 395, 385, 375, 375, 365, 365, 355, 345, 345, 345, 345, 345, 385, 375, 375, 365, 355, 365, 355, 365, 375, 385}; Y = {135, 135, 135, 135, 145, 155, 165, 175, 185, 175, 175, 185, 185, 175, 175, 175, 185, 145, 155, 165, 155, 155, 145, 145, 145, 155, 165, 165, 165, 165}; body = {type = 12, color = 0x000642}; name = "Glob" }; [5.1] = { X = {315, 325, 335, 345, 355, 365, 375, 305, 295, 285, 285, 385, 395, 405, 405, 395, 385, 375, 375, 365, 355, 345, 335, 325, 315, 355, 335, 305, 295, 275, 275, 295, 285, 295, 265, 265, 265, 275, 285, 295, 305, 315, 325, 315, 325, 335, 345, 355, 345, 385, 375, 375, 365, 355, 385, 395, 405, 405, 395, 385, 375, 365, 385, 375, 365, 355, 345, 335, 325, 315, 305, 325, 315, 315, 305, 305, 315, 325, 335, 335, 345, 345, 345, 335, 355, 355, 365, 365, 375}; Y = {125, 125, 125, 125, 125, 125, 125, 135, 145, 155, 165, 135, 135, 145, 155, 155, 155, 155, 145, 155, 155, 155, 155, 155, 155, 145, 145, 165, 175, 175, 185, 185, 195, 195, 185, 195, 205, 215, 215, 225, 225, 215, 205, 225, 225, 225, 225, 205, 215, 205, 215, 225, 225, 225, 225, 215, 205, 195, 195, 185, 175, 165, 195, 195, 195, 195, 195, 195, 195, 195, 195, 165, 165, 175, 175, 185, 185, 175, 175, 165, 165, 175, 185, 185, 165, 175, 175, 185, 185}; body = {type = 12, color = 0x000642}; name = "Clamshul" }} objects = { [1] = { -- poop X = {535, 535, 535, 545, 555, 545, 525, 525, 535, 545, 525, 515, 515, 555, 555, 555, 565, 565, 555, 555, 515, 515, 505, 505, 515, 515}; Y = {215, 205, 195, 205, 215, 215, 205, 215, 225, 225, 225, 215, 225, 225, 175, 165, 155, 145, 135, 125, 165, 155, 145, 135, 125, 115}; body = {type = 12, color = 0x231000} }; [2] = { -- sleep X = {525, 535, 545, 555, 565, 555, 545, 535, 525, 535, 545, 555, 565, 495, 505, 515, 515, 505, 495, 505, 515}; Y = {65, 65, 65, 65, 65, 75, 85, 95, 105, 105, 105, 105, 105, 125, 125, 125, 135, 145, 155, 155, 155}; body = {type = 12, color = 0xB4B4B4} }} function getResponse(player,answer) table.insert(chat,1,string.format("%s<V>%s said:<N> %s\n",chat[1],player,answer)) message = petResponses[math.random(#petResponses)] message = string.format("<V>%s<N>%s",petName,message) table.insert(chat,1,chat[1]..message.."\n") ui.addTextArea(2, "<P align ='center'> <font face='Soopafresh'> CHAT!</font> <P align ='left'> \n"..chat[1], nil, 590, 77, 200, nil, 0x324650, 0x000000, 1); chatCount = chatCount +1 if player ~= "INFO" then setPetInfo("mood",-5) elseif chatCount == 8 then chat = {""} chatCound = 0 end end function selectType(player) clearPath() if level == 1 then level = level+math.random(1,4) end petname = Tamagotchis[level].name if level == 2 or 3 or 4 or 5 then ui.addPopup(1, 2, string.format("A %s just hatched from the egg! \nWhat would you like to name your new %s?",petname,petname),player,300,200,200,200,true) timing = {poop = os.time(), sleep = os.time(), growUp = os.time(), delay = os.time()} end end function sendUI() ui.addTextArea(1, string.format("<P align='center'>| <A href ='event:Pokepet'>Poke</A> | <A href ='event:TalkWithPet'>Say something </A>| <A href ='event:releasePet'>Release pet</A> | <A href ='event:actions'>Actions</A> | <A href ='event:petInfo'>%s info</A> |",petName), nil, 5, 20, 790, nil, 0x324650, 0x000000, 1); end function setPetInfo(info,number) if petInfo[info] <= 100 and petInfo[info] > 0 then petInfo[info] = petInfo[info]-number end if petInfo[info] > 100 then petInfo[info] = 100 end end function eventTextAreaCallback(id, player, callback) ui.removeTextArea(4) if callback == "TalkWithPet" then ui.addPopup(2, 2, string.format("%s, talk with %s!",player,petName),player,300,200,200,200,true) elseif callback == "Pokepet" then mood = {0xAE0300,0x313DB6} ID = math.random(#mood) defaultColor = Tamagotchis[level].body.color Tamagotchis[level].body.color = mood[ID] if ID == 1 then setPetInfo("mood",10) end drawTamagotchi(Tamagotchis[level]) Tamagotchis[level].body.color = defaultColor elseif callback == "releasePet" then ui.addPopup(3, 1, string.format("Do you want to release %s? %s will live freely in the wild for the rest of their years! Are you sure you want to release %s?",petName,petName,petName),player,300,200,200,nil,true) elseif callback == "actions" then ui.addTextArea(4, "<P align='center'><font face='Soopafresh'>Actions</font>\n<A href='event:clearPet'>Clear Tamagotchi!</A>\n-------------------\n<A href='event:petSleep'>Time to bed!</A>\n-------------------\n<A href='event:petFood'>Feed Tamagotchi!</A>", player, 7, 128, 100, nil, 0x324650, 0x000001, 1); elseif callback == "clearPet" and sleep == false then actions.clearPet = true elseif callback == "petFood" and sleep == false then setPetInfo("hungry",-20) elseif callback == "petSleep" and poop == false then sleep = true timing.sleep = os.time() drawObject(objects[2]) elseif callback == "petInfo" then ui.addTextArea(3, string.format("<P align='center'><font face='Soopafresh'>Pet Info!</font><P aling='left'>\n• Happy: %s\n• Sleep: %s \n• Food: %s",petInfo.mood.."%", petInfo.hungry.."%", petInfo.sleep.."%"), nil, 7, 128, 100, nil, 0x324650, 0x000001, 1); removePetInfo = true end end function eventPopupAnswer(id,player,answer) if id == 1 then petName = answer sendUI() elseif id == 2 then getResponse(player,answer) elseif id == 3 then if answer == "yes" then ui.addPopup(4, 0, string.format("Goodbye forever %s! %s has gone off to forest with other %s!",petName,petName,Tamagotchis[level].name),player,300,200,200,nil,true) newTamagotchi() end end end function eventMouse(player,pX,pY) if pX > 100 and pX < 400 and pY > 100 and pY < 300 then if level == 1 then tfm.exec.displayParticle(5,pX,pY,math.random(-5,5),math.random(-5,5),0,0) clickToHatch = clickToHatch+1 if clickToHatch == 20 then selectType(player) clickToHatch = 0 end elseif actions.clearPet == true then for x = 4,1,-1 do tfm.exec.displayParticle(3,pX,pY,math.random(-5,5),math.random(-5,5),0,0) end clickToClear = clickToClear+1 if clickToClear == 20 then clickToClear = 0 clearObject() timing.poop = os.time() poop = false actions.clearPet = false end end end end function eventNewPlayer(player) sendUI() end function drawTamagotchi(pet) pos = math.random(-10,10) for id = #pet.X,1,-1 do tfm.exec.addPhysicObject(id, pet.X[id]+pos, pet.Y[id], pet.body) end end function drawObject(obj) for id = #obj.X,1,-1 do tfm.exec.addPhysicObject(id*100, obj.X[id], obj.Y[id], obj.body) end end function clearPath() for id = 300,1,-1 do tfm.exec.removePhysicObject(id) ui.removeTextArea(id) end end function clearObject() for id = 300,1,-1 do tfm.exec.removePhysicObject(id*100) end end function growPet() grow = grow+1 if grow <= 1 then level = level+0.1 ui.addPopup(4, 0, string.format("<P align='center'>%s is beginning to change! \n...\n......\n..........\n%s evolved into %s!",petName,petName,Tamagotchis[level].name),nil,300,200,200,nil,true) timing.growUp = os.time() else setBaby() end end function setBaby() ui.addPopup(4, 0, string.format("<P align='center'>%s has had a good life. But it's time for them to pass on. \n...\n......\n..........\n%s has changed back into an egg!",petName,petName),nil,300,200,200,nil,true) newTamagotchi() end function eventLoop() if moveTime < os.time()-5000 then drawTamagotchi(Tamagotchis[level]) moveTime = os.time() if removePetInfo == true then ui.removeTextArea(3) end elseif level > 1 then if timing.poop < os.time()-120000 and poop == false then drawObject(objects[1]) poop = true timing.poop = os.time() elseif timing.sleep < os.time()-30000 and sleep == true then sleep = false clearObject() print("<N>Hey! you pet is now awake!") setPetInfo("sleep",25) elseif timing.delay < os.time()-8000 then timing.delay = os.time() for info,id in pairs(petInfo) do setPetInfo(info,math.random(-10,10)) end elseif timing.growUp < os.time()-300000 then growPet() end end end function newTamagotchi() clearPath() clearObject() level = 1 grow = 0 sleep = false drawTamagotchi(Tamagotchis[level]) chat = {""} print("<N>Hey! To jest jajko! Aby je wykluć klikaj na nie!") end newTamagotchi() |
Fal_tico « Citoyen » 1545655800000
| 0 | ||
lights={"1","2","4","9","11","13"} pAtOnce=50 radiusX=100 radiusY=100 speedX=0 speedY=0 function eventLoop(ct,tr) for i=1,pAtOnce do tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),"0."..speedX,"0."..speedY,"0."..speedX,"0."..speedY,nil) end end function eventChatCommand(p,c) if c:sub(0,3)=="par" and tonumber(c:sub(5))<=1000 then pAtOnce=c:sub(5) elseif c:sub(0,2)=="rx" then radiusX=c:sub(4) elseif c:sub(0,2)=="ry" then radiusY=c:sub(4) elseif c:sub(0,2)=="xs" then speedX=c:sub(4) elseif c:sub(0,2)=="ys" then speedY=c:sub(4) end print("<v>["..p.."] <n>"..c) end system.disableChatCommandDisplay("par",true) system.disableChatCommandDisplay("rx",true) system.disableChatCommandDisplay("ry",true) system.disableChatCommandDisplay("xs",true) system.disableChatCommandDisplay("ys",true) print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!\nWant to make the <j>lights move<n>? Type <j>'!xs number'<n> or <j>'!ys number'<n>!</p>") |
Sebafrancuz « Consul » 1545661680000
| 0 | ||
Wysyłając swój skrypt na forum, bądź pewna, że on działa: 1. Pierwsze linijka jest trochę poknocona; 2. Endy są w nieodpowiednich miejscach. |
Ludobojca « Censeur » 1545753000000
| 4 | ||
i moglbys schowac to w spoiler bo strasznie dlugie |
Fal_tico « Citoyen » 1546009320000
| 0 | ||
/delete |
Fal_tico « Citoyen » 1546009380000
| 0 | ||
Pomylilam Skrypty, to sa moje do usuniecia bo nie dzialaja |
Boxofkrain « Censeur » 1546706640000
| 0 | ||
Wtf? To co to jest? Ankiety, wampiry czy tamagothi? Strasznie nieczytelny wątek. |
Mesmera « Sénateur » 1546778580000
| 1 | ||
Proszę zamieszczać skrypty swojego autorstwa. |