Advertisement
Travonrodfer

Banheiro Magico

Oct 22nd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.06 KB | None | 0 0
  1. xml='<C><P D="x_bouboum/x_fond/x_f4.jpg" /><Z><S><S L="50" X="649" H="10" Y="207" T="14" P="0,0,0,0,60,0,0,0" /><S L="88" H="23" X="684" v="0001" Y="200" T="9" P="0,0,,,,0,0,0" /><S L="50" H="10" X="718" Y="208" T="14" P="0,0,0,0,-60,0,0,0" /><S L="50" X="682" H="10" Y="220" T="14" P="0,0,0,0,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="280" o="ffffff" X="660" Y="243" T="12" H="45" /><S L="280" o="ffffff" X="141" H="45" Y="243" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="320" o="ffffff" X="640" H="45" Y="288" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="320" o="ffffff" H="45" Y="288" T="12" X="161" /><S L="360" o="ffffff" H="45" X="181" Y="333" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="360" o="ffffff" X="620" Y="333" T="12" H="45" /><S L="800" o="ffffff" X="400" H="45" Y="378" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D><P C="ffffff" Y="224" T="120" P="1,0" X="684" /><P C="e8e9eb,e8e9eb" Y="221" T="119" P="0,1" X="25" /><T Y="359" X="400" /><P X="159" Y="148" T="114" P="0,0" /><P C="e3e3e3,1b1d1c,e3e3e3" Y="222" T="128" X="183" P="0,0" /><P C="e3e3e3,1b1d1c,e3e3e3" Y="222" T="128" P="0,1" X="135" /><P C="e3e3e3,a31638" Y="227" T="127" X="158" P="0,0" /></D><O /></Z></C>'
  2. local priv={}
  3. local espelho={}
  4. local saiespelho={}
  5. local es={}
  6. mensag = 0
  7. for name in pairs(tfm.get.room.playerList) do
  8.     priv[name] = false
  9.     espelho[name] = false
  10.     saiespelho[name] = false
  11.     es[name] = 0
  12. end
  13.  
  14. function localidade()
  15.     for name,i in pairs(tfm.get.room.playerList) do
  16.         if i.x > 641 and i.x < 725 and i.y > 180 and i.y < 220 then
  17.             for k = 10,0,-1 do
  18.                 tfm.exec.displayParticle(14,math.random(641,725),math.random(176,215),0,math.random(1.1),0,math.random(0.22))
  19.             end
  20.         end
  21.         if es[name] == 0 and i.x > 140 and i.x < 175 and i.y > 160 and i.y < 195 then
  22.             ui.addTextArea(1, "<font size=\"15\">Diga: Espelho, espelho meu, tem alguem mais bonita do que eu?", name, 74, 212, 262, 44, 0x000001, 0x000001, 1, true)
  23.             saiespelho[name] = true
  24.         end
  25.         if priv[name] == true and i.x < 114 and i.x > 150 and i.y < 152 and i.y > 190 then
  26.             ui.removeTextArea(0, name)
  27.         end
  28.     end
  29. end
  30.  
  31. function eventChatMessage(name, msg)
  32.     if msg == "Espelho, espelho meu, tem alguem mais bonita do que eu?" or msg == "espelho, espelho meu, tem alguem mais bonita do que eu?" or msg == "espelho espelho meu tem alguem mais bonita do que eu?" or msg == "Espelho espelho meu tem alguem mais bonita do que eu?" or msg == "espelho, espelho meu, tem alguém mais bonita do que eu?" or msg == "Espelho, espelho meu, tem alguém mais bonita do que eu?" or msg == "espelho espelho meu tem alguém mais bonita do que eu?" then
  33.         mensag = math.random(5)
  34.     end
  35. end
  36.  
  37. function falasdoespelho(name)
  38.     if mensag == 1 then
  39.         ui.addTextArea(2, "<font size=\"15\">Espelho", nil, 223, 309, 70, 26, 0x000001, 0x000000, 1, true)
  40.         ui.addTextArea(3, "<font size=\"15\">Será que diante do espelho da vida, você se sente incomodado com o diferente e por isso é tão preconceituosa?", nil, 223, 335, 327, 59, 0x000001, 0x000001, 1, true)
  41.         es[name]=6
  42.     elseif mensag == 2 then
  43.         ui.addTextArea(2, "<font size=\"15\">Espelho", nil, 223, 309, 70, 26, 0x000001, 0x000000, 1, true)
  44.         ui.addTextArea(3, "<font size=\"15\">E você ainda pergunta?", nil, 223, 335, 190, 21, 0x000001, 0x000001, 1, true)
  45.         es[name]=6
  46.     elseif mensag == 3 then
  47.         ui.addTextArea(2, "<font size=\"15\">Espelho", nil, 223, 309, 70, 26, 0x000001, 0x000000, 1, true)
  48.         ui.addTextArea(3, "<font size=\"15\">Você é considerada a mais bela em Chernobyl!!!", nil, 223, 335, 212, 40, 0x000001, 0x000001, 1, true)
  49.         es[name]=6
  50.     elseif mensag == 4 then
  51.         ui.addTextArea(2, "<font size=\"15\">Espelho", nil, 223, 309, 70, 26, 0x000001, 0x000000, 1, true)
  52.         ui.addTextArea(3, "<font size=\"15\">Não, beleza igual a sua, não existe. OH, mais bela das belas!", nil, 223, 335, 253, 40, 0x000001, 0x000001, 1, true)
  53.         es[name]=6
  54.     elseif mensag == 5 then
  55.         ui.addTextArea(2, "<font size=\"15\">Espelho", nil, 223, 309, 70, 26, 0x000001, 0x000000, 1, true)
  56.         ui.addTextArea(3, "<font size=\"15\">Só todas as mulheres do planeta!", nil, 223, 335, 260, 25, 0x000001, 0x000001, 1, true)
  57.         es[name]=6
  58.     end
  59. end
  60.  
  61. function eventLoop()
  62.     localidade()
  63.     for name in pairs(tfm.get.room.playerList) do
  64.         falasdoespelho(name)
  65.         if saiespelho[name] then
  66.             es[name] = es[name] +.5
  67.         end
  68.         if es[name] == 4 then
  69.             ui.removeTextArea(1, name)
  70.             saiespelho[name] = false
  71.         elseif es[name] >= 6 then
  72.             es[name] = es[name] +.5
  73.         elseif es[name] == 8 then
  74.             ui.removeTextArea(2, name)
  75.             ui.removeTextArea(3, name)
  76.             es[name] = 5
  77.         end
  78.     end
  79. end
  80.  
  81. function eventEmotePlayed(name, emo)
  82.     for name,i in pairs(tfm.get.room.playerList) do
  83.         if emo == 8 and i.x > 11 and i.x < 46 and i.y >166 and i.y <204 then
  84.             ui.addTextArea(0, "", nil, (i.x - 20), i.y, 50, 20, 0x000001, 0x000001, 1, false)
  85.             priv[name] = true
  86.         end
  87.     end
  88. end
  89.  
  90. tfm.exec.disableAutoShaman(true)
  91. tfm.exec.disableAfkDeath(true)
  92. tfm.exec.disableAutoNewGame(true)
  93. tfm.exec.disableAutoTimeLeft(true)
  94. tfm.exec.newGame(xml)
  95. tfm.exec.setGameTime(99999)
  96. ui.setMapName("Banheiro Magico Do Travonrodfer#0000")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement