Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame('<C><P DS="m;70,345,5360,345" Ca="" D="x_transformice/x_evt/x_evt_04/cwlb1bml/fond.jpg" L="5408" mc="" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="128" o="953591" H="40" Y="249" T="12" m="" X="-135" /><S H="10" L="80" o="324650" X="50" c="4" Y="200" T="13" m="" P="1,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" Y="381" L="160" o="324650" H="37" N="" i="0,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage11.png" T="12" X="54" /><S i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" L="160" o="324650" nosync="" X="241" H="37" N="" Y="331" T="12" P="1,0,0.3,0,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" i="-80,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage2.png" L="160" o="325032" X="779" N="" Y="384" T="12" H="37" /><S P="1,0,0.3,0.2,0,0,0,0" i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" L="160" o="324650" H="40" c="3" N="" Y="205" T="12" X="532" /><S X="1089" L="100" o="324650" H="37" c="3" Y="305" T="12" m="" P="1,0,2,0.2,0,0,0,0" /><S X="998" L="100" o="324650" H="37" c="3" Y="318" T="12" m="" P="1,0,2,0.2,-15,0,0,0" /><S H="37" L="100" o="324650" X="124" c="3" Y="414" T="12" m="" P="0,0,2,0.2,80,0,0,0" /><S H="37" L="50" o="324650" X="855" c="3" Y="391" T="12" m="" P="1,0,2,0.2,-40,0,0,0" /><S H="37" L="100" o="324650" X="1182" c="3" Y="318" T="12" m="" P="1,0,2,0.2,15,0,0,0" /><S H="37" L="100" o="324650" X="1268" c="3" Y="353" T="12" m="" P="1,0,2,0.2,30,0,0,0" /><S X="1327" L="50" o="324650" H="37" c="3" Y="393" T="12" m="" P="1,0,1.5,0.2,40,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" i="-283,-350,x_transformice/x_evt/x_evt_04/cwlb1bml/arc en ciel petit.png" L="350" o="324650" H="10" c="4" Y="640" T="13" X="1092" /><S P="0,0,0.3,0.2,0,0,0,0" i="-80,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage2.png" L="160" o="325032" X="1329" N="" Y="386" T="12" H="37" /><S P="0,0,0.3,0.2,0,0,0,0" i="-80,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage3.png" L="200" o="325032" H="37" N="" Y="383" T="12" X="2274" /><S X="1688" L="17" o="898f1b" H="600" c="2" Y="1502" T="12" P="0,0,0.3,0.2,-90,0,0,0" /><S P="0,0,5,0.2,0,0,0,0" i="-450,-540,x_transformice/x_evt/x_evt_04/cwlb1bml/arc en ciel grand.png" L="540" o="324650" H="10" c="3" Y="753" T="13" X="2748" /><S X="912" L="100" o="324650" H="37" c="3" Y="354" T="12" m="" P="1,0,2,0.2,-30,0,0,0" /><S H="37" L="100" o="324650" X="699" c="3" Y="419" T="12" m="" P="0,0,2,0.2,-70,0,0,0" /><S X="2174" L="100" o="324650" H="37" c="3" Y="418" T="12" m="" P="0,0,2,0.2,-70,0,0,0" /><S H="37" L="100" o="324650" X="1249" c="3" Y="420" T="12" m="" P="0,0,2,0.2,-70,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" Y="386" L="160" o="325032" H="37" N="" i="-110,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage22.png" T="12" X="4113" /><S P="0,0,0.3,0.2,0,0,0,0" Y="382" L="200" o="325032" H="37" N="" i="0,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage33.png" T="12" X="3218" /><S H="37" L="100" o="324650" X="3343" c="3" Y="411" T="12" m="" P="0,0,2,0.2,-140,0,0,0" /><S X="4185" L="100" o="324650" H="37" c="3" Y="445" T="12" m="" P="0,0,2,0.2,-120,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" i="-283,-350,x_transformice/x_evt/x_evt_04/cwlb1bml/arc en ciel petit.png" L="350" o="324650" H="10" c="4" Y="654" T="13" X="4382" /><S H="37" L="100" o="324650" X="4380" c="3" Y="323" T="12" m="" P="1,0,2,0.2,0,0,0,0" /><S X="4287" L="100" o="324650" H="37" c="3" Y="335" T="12" m="" P="1,0,2,0.2,-15,0,0,0" /><S H="37" L="100" o="324650" X="4474" c="3" Y="335" T="12" m="" P="1,0,2,0.2,15,0,0,0" /><S X="4201" L="100" o="324650" H="37" c="3" Y="371" T="12" m="" P="1,0,2,0.2,-30,0,0,0" /><S H="37" L="100" o="324650" X="4561" c="3" Y="371" T="12" m="" P="1,0,2,0.2,30,0,0,0" /><S X="4142" L="50" o="324650" H="37" c="3" Y="411" T="12" m="" P="1,0,2,0.2,-40,0,0,0" /><S H="37" L="50" o="324650" X="4615" c="3" Y="411" T="12" m="" P="1,0,2,0.2,50,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" i="-110,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage22.png" L="160" o="325032" H="37" N="" Y="386" T="12" X="4663" /><S P="1,0,0.3,0.2,0,0,0,0" Y="205" L="160" o="324650" H="40" c="3" N="" i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" T="12" X="4910" /><S Y="331" L="160" o="324650" nosync="" X="5201" H="37" N="" i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" T="12" P="1,0,0.3,0,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" i="-80,-10,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage1.png" L="160" o="324650" H="37" N="" Y="381" T="12" X="5388" /><S X="5384" L="80" o="324650" H="10" c="4" Y="200" T="13" m="" P="1,0,0.3,0.2,0,0,0,0" /><S X="5300" L="100" o="324650" H="37" c="3" Y="414" T="12" m="" P="0,0,2,0.2,120,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" L="24" o="324650" X="3874" Y="390" T="13" m="" H="10" /><S c="1" L="24" o="324650" H="10" X="4006" Y="390" T="13" m="" P="1,0,0.3,0.2,0,0,0,0" /><S P="1,0,50,0.2,0,0,0,0" i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" L="160" o="324650" H="40" c="1" N="" Y="390" T="12" X="3941" /><S P="1,0,0.3,0.2,0,0,0,0" L="24" o="324650" X="1437" Y="390" T="13" m="" H="10" /><S H="10" L="24" o="324650" X="1569" c="1" Y="390" T="13" m="" P="1,0,0.3,0.2,0,0,0,0" /><S P="1,0,50,0.2,0,0,0,0" Y="390" L="160" o="324650" H="40" c="1" N="" i="0,-20,x_transformice/x_evt/x_evt_04/cwlb1bml/nuage_plateforme.png" T="12" X="1504" /></S><D><DS Y="346" X="70" /><F Y="210" X="2745" /><T Y="215" X="2745" /></D><O><O C="22" P="0" Y="387" X="874" /><O C="22" P="0" Y="363" X="904" /><O C="22" P="0" Y="342" X="936" /><O C="22" P="0" Y="329" X="971" /><O C="22" P="0" Y="311" X="1024" /><O C="22" P="0" Y="304" X="1061" /><O C="22" P="0" Y="304" X="1120" /><O C="22" P="0" Y="310" X="1157" /><O C="22" P="0" Y="326" X="1206" /><O C="22" P="0" Y="340" X="1241" /><O C="22" P="0" Y="365" X="1284" /><O C="22" P="0" Y="384" X="1316" /><O C="22" X="1089" Y="319" P="0" /><O C="28" X="1691" Y="1416" P="0" /><O C="28" X="1738" Y="1470" P="0" /><O C="28" P="0" Y="1407" X="1798" /><O C="28" P="0" Y="1382" X="1641" /><O C="28" P="0" Y="1357" X="1804" /><O C="28" P="0" Y="1378" X="1580" /><O C="28" P="0" Y="1362" X="1861" /></O><L><JD M2="1" M1="3" HZ="4" P2="50,275" /><JP M1="2" M2="3" AXIS="0,1" /><JR M2="2" P1="50,200" MV="1000000000,1" M1="1" P2="0,0" /><JD M2="1" M1="5" HZ="4" P2="50,125" /><JP M1="2" M2="5" AXIS="1,0" /><JD M2="38" M1="36" HZ="4" P2="5384,275" /><JP M1="37" M2="36" AXIS="0,1" /><JR M2="37" P1="5384,200" MV="1000000000,-1" M1="38" P2="0,0" /><JD M2="38" M1="35" HZ="4" P2="5384,125" /><JP M1="37" M2="35" AXIS="1,0" /><JR M2="2" P1="4382,654" MV="1000000000,-0.3" M1="26" P2="0,0" /><JR M2="2" P1="1092,640" MV="1000000000,0.3" M1="13" P2="0,0" /><JD M2="26" P1="4599,408" HZ="10" P2="4599,408" M1="33" /><JD M2="26" P1="4614,423" HZ="10" P2="4614,423" M1="33" /><JD M2="26" P1="4546,378" HZ="10" P2="4546,378" M1="31" /><JD M2="26" P1="4562,389" HZ="10" P2="4562,389" M1="31" /><JD M2="26" P1="4461,345" HZ="10" P2="4461,345" M1="29" /><JD M2="26" P1="4480,351" HZ="10" P2="4480,351" M1="29" /><JD M2="26" P1="4371,335" HZ="10" P2="4371,335" M1="27" /><JD M2="26" P1="4391,335" HZ="10" P2="4391,335" M1="27" /><JD M2="26" P1="4279,351" HZ="10" P2="4279,351" M1="28" /><JD M2="26" P1="4305,344" HZ="10" P2="4305,344" M1="28" /><JD M2="26" P1="4195,387" HZ="10" P2="4195,387" M1="30" /><JD M2="26" P1="4217,374" HZ="10" P2="4217,374" M1="30" /><JD M2="26" P1="4142,411" HZ="10" P2="4142,411" M1="32" /><JD M2="26" P1="4158,413" HZ="10" P2="4158,413" M1="32" /><JP M1="22" M2="42" AXIS="1,0" /><JD M2="42" P1="3874,390" HZ="10" P2="3874,390" M1="40" /><JD M2="42" P1="4006,390" HZ="10" P2="4006,390" M1="41" /><JP M1="14" M2="45" AXIS="1,0" /><JD M2="45" P1="1437,390" HZ="10" P2="1437,390" M1="43" /><JD M2="45" P1="1569,390" HZ="10" P2="1569,390" M1="44" /></L></Z></C>')
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setUIMapName("Transformice<bl> - @2003")
- function eventNewPlayer(player)
- tfm.exec.respawnPlayer(player)
- end
- function eventPlayerDied(player)
- tfm.exec.respawnPlayer(player)
- if p[player].team=="red" then
- tfm.exec.setNameColor(player, 0xff0000)
- else
- tfm.exec.setNameColor(player, 0x0000ff)
- end
- end
- function eventPlayerRespawn(name)
- if p[name].team=="red" then
- tfm.exec.movePlayer(name,40,350,false,0,0,false)
- else
- tfm.exec.movePlayer(name,5360,350,false,0,0,false)
- end
- end
- function eventPlayerWon(player)
- tfm.exec.respawnPlayer(player)
- if p[player].team=="red" then
- tfm.exec.setNameColor(player, 0xff0000)
- else
- tfm.exec.setNameColor(player, 0x0000ff)
- end
- end
- p={}
- i=1
- function eventNewGame()
- colors = { 0xff0000, 0x0000ff }
- for name, player in pairs(tfm.get.room.playerList) do
- tfm.exec.setNameColor(name, colors[ i ])
- if (i == #colors) then
- i = 1
- p[name]={team="blue"}
- tfm.exec.movePlayer(name,5360,350,false,0,0,false)
- else
- i = i + 1
- p[name]={team="red"}
- tfm.exec.movePlayer(name,40,350,false,0,0,false)
- end
- end
- end
- huggers = {}
- for n,p in pairs(tfm.get.room.playerList) do eventNewPlayer(n) end
- function eventEmotePlayed(playerName, emoteId)
- for i,n in ipairs(huggers) do if n == playerName then table.remove(huggers) end end
- if emoteId == 17 then
- table.insert(huggers, playerName)
- end
- if emoteId == 18 or emoteId == 19 then
- for i,n in ipairs(huggers) do
- local x1 = tfm.get.room.playerList[n].x
- local y1 = tfm.get.room.playerList[n].y
- local x2 = tfm.get.room.playerList[playerName].x
- local y2 = tfm.get.room.playerList[playerName].y
- if math.sqrt((x2 - x1)^2 + (y2 - y1)^2) <= 30 then
- if p[n].team=="red" and p[playerName].team=="blue" then
- tfm.exec.giveCheese(n)
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(n)
- tfm.exec.playerVictory(playerName)
- table.remove(huggers, i)
- elseif p[n].team=="blue" and p[playerName].team=="red" then
- tfm.exec.giveCheese(n)
- tfm.exec.giveCheese(playerName)
- tfm.exec.playerVictory(n)
- tfm.exec.playerVictory(playerName)
- table.remove(huggers, i)
- end
- end
- end
- end
- end
- function eventKeyboard(playerName, key)
- for i,n in ipairs(huggers) do
- if n == playerName then
- table.remove(huggers, i)
- end
- end
- end
- function eventNewPlayer(name)
- for i,k in pairs({0,1,2,3}) do
- system.bindKeyboard(playerName, k, true, true)
- end
- tfm.exec.respawnPlayer(name)
- tfm.exec.setNameColor(name, colors[ i ])
- if (i == #colors) then
- i = 1
- p[name]={team="blue"}
- tfm.exec.movePlayer(name,5360,350,false,0,0,false)
- else
- i = i + 1
- p[name]={team="red"}
- tfm.exec.movePlayer(name,40,350,false,0,0,false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment