Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame([[<C><P D="x_evenements/x_fondNowel2013.jpg" /><Z><S><S Y="397" T="12" P="0,0,0.3,0.2,0,0,0,0" L="800" o="12bd94" m="" X="400" H="25" /><S Y="361" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="254" H="25" /><S Y="361" T="12" P="0,0,0.3,0.2,0,0,0,0" L="300" o="12bd94" m="" X="136" H="60" /><S Y="201" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="-10" H="400" /><S Y="201" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="811" H="400" /><S Y="372" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="284" H="25" /><S Y="385" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="312" H="25" /><S Y="316" T="12" P="0,0,0.3,0.2,0,0,0,0" L="140" o="12bd94" m="" X="495" H="10" /><S Y="210" T="12" P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" m="" X="233" H="10" /><S Y="212" T="12" P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" m="" X="249" H="10" /><S Y="187" T="12" P="0,0,0.3,0.2,0,0,0,0" L="170" o="12bd94" m="" X="80" H="10" /><S Y="135" T="12" P="0,0,0.3,0.2,0,0,0,0" L="560" o="12bd94" m="" X="536" H="10" /><S Y="108" T="12" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" m="" X="422" H="40" /><S Y="120" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="365" H="40" /><S Y="115" T="12" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" m="" X="656" H="40" /><S Y="107" T="12" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" m="" X="752" H="50" /><S Y="119" T="12" P="0,0,0.3,0.8,0,0,0,0" L="90" o="12bd94" m="" X="705" H="40" /><S Y="-9" T="12" P="0,0,0.3,0.2,90,0,0,0" L="20" o="12bd94" m="" X="404" H="900" /></S><D><T Y="329" X="91" /><DS Y="317" X="89" /></D><O /></Z></C>]]);
- function eventEmotePlayed(k,id)
- if (id == 3) then
- for loop = 10,0,-1 do
- tfm.exec.displayParticle(5,tfm.get.room.playerList[k].x,tfm.get.room.playerList[k].y,math.random(-1,1),math.random(-1,1),math.random(-0.21,0.21),math.random(-0.21,0.21))
- end
- end
- end
- tfm.exec.setUIMapName("Encontro Natalino <rose>n")
- tfm.exec.setUIShamanName("<rose>vas")
- tfm.exec.setNameColor("Tinittee", 0xEB1D51)
- tfm.exec.disableAutoNewGame(true)
- function sendUi(title, text, player, x, y, width, height)
- ui.addTextArea(0, string.format("<font size='14' face='Verdana' color='#2e72cb'><b>%s</font>",title), player, x+width/2, y-28, width+4, height, 0x27373f, 0x27373f, 1, true);
- ui.addTextArea(1, text, player, x+width/2+2, y, width, height-30, 0x324650, 0x324650, 1, true);
- ui.addTextArea(2, "", player, width+171, y-26, 15, 15, 0x009D9D, 0x009D9D, 1, true);
- ui.addTextArea(3, "<font color = '#eb1d51' size='15'><B><a href='event:close'>X</a>", player, width+171, y-30, 15, player, 0, 0, 1, true);
- end
- function main()
- sendUi('Enigma', 'Natal: A época de se reunir com a família, trocar presentes, e outras coisas felizes!<br>Vista-se para a melhor época do ano!<br><br>Dica: Comida natalina<br><br><', player, 200, 200, 200, 200)
- end
- function eventChatCommand(player,command)
- if command == 'panetone' then
- sendUi('1ª PARTE', '<font size="20"><vp>Hmm!</vp><font size="12"><br><br>Monte sua árvore e decore-a!<br>Dica: Luzes<br><rose>e', player, 200, 200, 200, 200)
- elseif command == 'pisca-pisca' then
- sendUi('2ª PARTE', '<font size="15">As casa ficam lindas com os Pisca-Pisca<font size="12"><br><br>Pegue seu casado, olhe a neve do lado de fora!<br><br>Dica: O que fica nas portas das casas?', player, 200, 200, 200, 200)
- elseif command == 'guirlandas' then
- sendUi('3ª PARTE', '<font size="20">Decorações \Õ/<font size="12"><br><br>O mês de festas está aí. Dezembro é o melhor mês do ano, além das férias, tem as festas de Fim de Ano!<br><br>Dica: Este ano teremos que trocar presentes + 3s<br><rose>ca', player, 200, 200, 200, 200)
- elseif command == 'presentesss' then
- sendUi('4ª PARTE', '<font size="20">Quase lá!<font size="12"><br><br>Você chegou <j>ao final do enigma!<n><br><br>Você precisa adivinhar o <i>comando secreto</i> para você ganhar o queijo! Não diga-o para <b>ninguém</b><br><br>Dica: Mapa + 1ª parte + Shaman + 3ª parte ', player, 200, 200, 200, 200)
- elseif command == 'nevasca' then
- tfm.exec.giveCheese(player)
- end
- end
- function eventTextAreaCallback(id, player,callback)
- if callback == "close" then
- for x = 3,0,-1 do
- ui.removeTextArea(x)
- end
- end
- end
- main()
- function eventNewPlayer(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- function eventPlayerDied(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- system.disableChatCommandDisplay("nevasca")
- system.disableChatCommandDisplay("panetone")
- system.disableChatCommandDisplay("peru")
- system.disableChatCommandDisplay("biscoitos")
- system.disableChatCommandDisplay("pisca-pisca")
- system.disableChatCommandDisplay("pisca_pisca")
- system.disableChatCommandDisplay("piscaspiscas")
- system.disableChatCommandDisplay("piscapisca")
- system.disableChatCommandDisplay("pisca pisca")
- system.disableChatCommandDisplay("guirlandas")
- system.disableChatCommandDisplay("guirlanda")
- system.disableChatCommandDisplay("Guirlanda")
- system.disableChatCommandDisplay("Guirlandas")
- system.disableChatCommandDisplay("presentesss")
- system.disableChatCommandDisplay("presente")
- system.disableChatCommandDisplay("presenteSSS")
- system.disableChatCommandDisplay("presente3s")
- system.disableChatCommandDisplay("nevasca")
- system.disableChatCommandDisplay("nevascas")
- system.disableChatCommandDisplay("neve")
- system.disableChatCommandDisplay("neige")
- system.disableChatCommandDisplay("nevado")
- system.disableChatCommandDisplay("nevando")
- function eventPlayerWon(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- tfm.exec.snow("500" , "5")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement