Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.27 KB | None | 0 0
  1. --[[ Titles ]]--
  2. title = {
  3.     [1] = "Packrat",
  4.     [2] = "Reindeer",
  5.     [3] = "Santa's Sack",
  6.     --[[
  7.         Panettone
  8.         Naughty
  9.         Secret Santa (Amigo secreto)
  10.         Christmas Tree
  11.         Snowman
  12.         Snowmouse
  13.         Frozen Mouse
  14.         Snowglobe
  15.         Old Saint Mouse
  16.         Frosty Mouse
  17.         Elf Mouse
  18.     ]]
  19. }
  20.  
  21. --[[ Lib ]]--
  22. math.pythag = function(x1,y1,x2,y2,range)
  23.     return ((x1-x2)^2+(y1-y2)^2<range^2)
  24. end
  25. math.percent = function(x,of,total)
  26.     return (x/of)*total
  27. end
  28.  
  29. table.random = function(t,r)
  30.     local i = math.random(#t)
  31.     if r then return t[i],i else return t[i] end
  32. end
  33. table.destroy=function(list,value)
  34.     for k,v in next,list do
  35.         if v == value then
  36.             table.remove(list,k);break
  37.         end
  38.     end
  39. end
  40.  
  41. system.looping = function(f,tk)
  42.     local s = 1000 / tk
  43.     local t = {}
  44.     for timer = 0,1000-s,s do
  45.         system.newTimer(function() t[#t] = system.newTimer(f,1000,true) end,1000+timer,false)
  46.     end
  47.     return t
  48. end
  49.  
  50. base64 = {}
  51. base64.base = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  52. base64.to = function(str)
  53.     local str = {str:byte(1,#str)}
  54.     local code = {}
  55.     local bs
  56.     for i = 1,#str,3 do
  57.         bs = bit32.rshift(str[i] % 0xFD,2)
  58.         code[#code + 1] = base64.base:sub(bs + 1,bs + 1)
  59.         bs = bit32.lshift(str[i] % 0x04,4)
  60.         if (i + 1 <= #str) then
  61.             bs = bit32.bor(bs,bit32.rshift(str[i + 1] % 0xF1,4))
  62.             code[#code + 1] = base64.base:sub(bs + 1,bs + 1)
  63.             bs = bit32.lshift(str[i + 1] % 0x10,2)
  64.             if (i + 2 <= #str) then
  65.                 bs = bit32.bor(bs,bit32.rshift(str[i + 2] % 0xC1,6))
  66.                 code[#code + 1] = base64.base:sub(bs + 1,bs + 1)
  67.                 bs = str[i + 2] % 0x40
  68.                 code[#code + 1] = base64.base:sub(bs + 1,bs + 1)
  69.             else
  70.                 code[#code + 1] = base64.base:sub(bs + 1,bs + 1)
  71.                 code[#code + 1] = "="
  72.             end
  73.         else
  74.             code[#code + 1] = base64.base:sub(bs + 1, bs + 1)
  75.             code[#code + 1] = "=="
  76.         end
  77.     end
  78.     return table.concat(code)
  79. end
  80.  
  81. morse = {}
  82. morse.code = {a=".-",b="-...",c="-.-.",d="-..",e=".",f="..-.",g="--.",h="....",i="..",j=".---",k="-.-",l=".-..",m="--",n="-.",o="---",p=".--.",q="--.-",r=".-.",s="...",t="-",u="..-",v="...-",w=".--",x="-..-",y="-.--",z="--..",[1]=".----",[2]="..---",[3]="...--",[4]="....-",[5]=".....",[6]="-....",[7]="--...",[8]="---..",[9]="----.",[0]="-----"}
  83. morse.to = function(str)
  84.     str = str:lower()
  85.     str = str:gsub(" +"," / ")
  86.     for i,v in next,morse.code do
  87.         str = str:gsub(tostring(i),v.." ")
  88.     end
  89.     return str
  90. end
  91.  
  92. enigma = {}
  93. enigma.words = {
  94.     "Li4uLiAuLSAuLS0uIC4uICAvIC0uLi0gLi4gLS0gLi0gLi4uIC4uLSA=", -- Hapi Ximasu
  95. }
  96. enigma.verify = function(player,word)
  97.     if not info[player].db.titles[3] then
  98.         if info[player].db.enigma == base64.to(morse.to(word)) then
  99.             info[player].db.titles[3] = true
  100.             --system.giveEventGift(player,title[3])
  101.         end
  102.     end
  103. end
  104.  
  105. --[[ Database ]]--
  106. info = {}
  107.  
  108. serialization = {table={},string={}}
  109. serialization.table.tostring = function(t)
  110.     local str = ""
  111.     for index,value in next,t do
  112.         local prefix,tbOption = (type(value)=="string" and "_@" or type(value)=="boolean" and "_!" or type(value)=="number" and "_#" or type(value)=="table" and "_%" or ""),(type(value)~="table" and tostring(value) or "+&"..serialization.table.tostring(value):gsub(";","?").."&-")
  113.         str = str .. ':' .. tostring(index) .. prefix .. tbOption .. ";"
  114.     end
  115.     return str
  116. end
  117. serialization.string.totable = function(s)
  118.     local list = {}
  119.     for str in s:gmatch("(.-);") do
  120.         local varName,valueType,value = str:match(':(.-)_(%p)(.+)')
  121.         if varName~=nil then
  122.             varName = tonumber(varName) or varName
  123.             if valueType == "@" then
  124.                 list[varName] = tostring(value)
  125.             elseif valueType == "!" then
  126.                 list[varName] = value=="true"
  127.             elseif valueType == "#" then
  128.                 list[varName] = tonumber(value)
  129.             elseif valueType == "%" then
  130.                 list[varName] = serialization.string.totable(value:gsub("+&",""):gsub("&-",""):gsub("%?",";"))
  131.             end
  132.         end
  133.     end
  134.     return list
  135. end
  136. --[[
  137. eventPlayerDataLoaded = function(n,d)
  138.     local data
  139.     if d == "" then
  140.         data = {
  141.             db = {
  142.                 gifts = {{0,0,0,0},0},
  143.                 aim = 5,
  144.                 titles = {false,false,false},
  145.                 enigma = table.random(enigma.words),
  146.             },
  147.         }
  148.         --system.savePlayerData(n,serialization.table.tostring(data.db))
  149.     else
  150.         data = serialization.string.totable(d)
  151.     end
  152.     info[n] = data
  153. end
  154. ]]
  155. --[[ Sets ]]--
  156. tfm.exec.disableAutoShaman()
  157. tfm.exec.disableAfkDeath()
  158.  
  159. --[[ Map ]]--
  160. local xml = '<C><P /><Z><S o="47F6E1"><S o="47F6E1" X="400" L="800" Y="400" H="70" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="-5" L="10" Y="200" H="400" P="0,0,0,0,0,0,0,0" T="12" /><S o="47F6E1" X="457" L="80" Y="154" H="12" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="805" L="10" Y="200" H="400" P="0,0,0,0,0,0,0,0" T="12" /><S o="47F6E1" X="157" L="92" Y="303" H="12" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="400" L="800" Y="-5" H="10" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="307" L="110" Y="236" H="12" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="270" L="70" Y="140" H="12" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S o="47F6E1" X="77" L="155" Y="200" H="12" P="0,0,0.3,0.2,0,0,0,0" T="12" /></S><D /><O /></Z></C>'
  161. tfm.exec.newGame(xml)
  162. system.start = false
  163.  
  164. --[[ Player ]]--
  165. system.displayBar = function(id,player,value,nvalue,color,sig,size,height)
  166.     sig = sig or ""
  167.     size = size or 100
  168.     height = height or 20
  169.  
  170.     ui.addTextArea(id,"",player,5,(height+8) * id,size + 4,height,0xC7CED2,1,1,true)
  171.     if value ~= 0 then
  172.         ui.addTextArea(id.."0","",player,6,(height+8) * id + 2,nvalue + 2,height - 4,color,color,1,true)
  173.     end
  174.     ui.addTextArea(id.."00","<B><font color='#0'>"..value..sig,player,(size-20)/2,(height+8) * id + 1,50,height,1,1,0,true)
  175. end
  176. system.updateBar = function(n)
  177.     local bar = {{0xB73535,19},{0x358CB7,10},{0x35B765,6},{0xB7B735,4}}
  178.     system.displayBar(1,n,(type(info[n].db.aim)=="number" and math.floor(info[n].db.gifts[2]) .. " / "..info[n].db.aim or info[n].db.aim),math.percent(info[n].db.gifts[2],(type(info[n].db.aim)=="number" and info[n].db.aim or 10),100),0xFF0000)
  179.     for i = 1,4 do
  180.         system.displayBar(i+2,n,info[n].db.gifts[1][i],math.percent(info[n].db.gifts[1][i],bar[i][2],50),bar[i][1],"G",50,15)
  181.     end
  182. end
  183.  
  184. eventNewGame = function()
  185.     tfm.exec.addImage("158c1b8aa5a.png","?0",0,0)
  186.     system.start = not system.start
  187.     tfm.exec.setGameTime(120)
  188.     ui.setMapName("<J>#Christmas")
  189.     ui.setShamanName("<R>S4NT4 M4U5")
  190.     for k,v in next,tfm.get.room.playerList do
  191.         --system.loadPlayerData(k)
  192.        
  193.         info[k] = {
  194.             db = {
  195.                 gifts = {{0,0,0,0},0},
  196.                 aim = 5,
  197.                 titles = {false,false,false},
  198.                 enigma = table.random(enigma.words),
  199.             },
  200.         }
  201.        
  202.         info[k].keyboard = 0
  203.        
  204.         if not v.isDead then
  205.             system.bindKeyboard(k,32,true,true)
  206.         end
  207.         system.updateBar(k)
  208.     end
  209. end
  210.  
  211. eventPlayerDied = function(n)
  212.     if system.start then
  213.         system.bindKeyboard(n,32,true,false)
  214.     end
  215. end
  216.  
  217. --[[ AI ]]---
  218. local despawnObjects = {}
  219. local currentGifts = {}
  220. local messaged = false
  221. local gifts = {
  222.     [1] = {
  223.         [1] = "158bb1db61b",
  224.         [2] = 15000,
  225.     };
  226.     [2] = {
  227.         [1] = "158bb1c95e0",
  228.         [2] = 10000,
  229.     };
  230.     [3] = {
  231.         [1] = "158bb1cc6ec",
  232.         [2] = 6000,
  233.     };
  234.     [4] = {
  235.         [1] = "158bb1ce1aa",
  236.         [2] = 3000,
  237.     };
  238. }
  239.  
  240. local giftSequence = {}
  241. local insertGift = function(k,n)
  242.     for i = 1,k do
  243.         giftSequence[#giftSequence + 1] = n
  244.     end
  245. end
  246. insertGift(19,0)
  247. insertGift(10,1)
  248. insertGift(6,2)
  249. insertGift(4,3)
  250.  
  251. local noel = {}
  252. local initx,inity = 450,135
  253. noel.x = initx
  254. noel.y = inity
  255.  
  256. noel.isEscaping = {0,false}
  257. noel.isTired[1] = 0
  258.  
  259. noel.timers = {
  260.     teleport = 0,
  261.     prize = 0
  262. }
  263.  
  264. noel.img = {
  265.     tired = {"158bb1dccb6","158bb1cf9a8","158bb1d6489","158bb1e2518"},
  266.     right = "158bb1d8069",
  267.     left = "158bb1e0daf",
  268.     flying = "158bb1d470a",
  269.     stop = "158bb1d9b67",
  270. }
  271.  
  272. noel.updateImage = function(img)
  273.     tfm.exec.removeImage(noel.imgId)
  274.     noel.imgId = tfm.exec.addImage(img..".png","#"..noel.id,-23,-32)
  275. end
  276. noel.particles = function(id)
  277.     for i = 1,5 do
  278.         tfm.exec.displayParticle(id,noel.x + math.random(-50,50),noel.y + math.random(-50,50),table.random({-.2,.2}),table.random({-.2,.2}))
  279.     end
  280. end
  281. noel.move = function(x,y)
  282.     tfm.exec.moveObject(noel.id,0,0,false,x,y,false)
  283. end
  284.  
  285. noel.nearMouse = function(range)
  286.     local player = {"",{dist=math.random(800),x=0,y=0}}
  287.     for k,v in next,tfm.get.room.playerList do
  288.         if not v.isDead then
  289.             if math.pythag(v.x,v.y,noel.x,noel.y,range) then
  290.                 local m = v.x-noel.x
  291.                 if math.abs(m) < player[2].dist then
  292.                     player = {k,{dist=m,x=v.x,y=v.y}}
  293.                 end
  294.             end
  295.         end
  296.     end
  297.     noel.isEscaping = player[1] ~= ""
  298.     return player
  299. end
  300.  
  301. noel.escape = function(id)
  302.     local player = noel.nearMouse(80)
  303.     local mul = (player[1] ~= "" and (player[2].dist < 0 and 1 or -1) or table.random({-1,1}))
  304.     local img = (mul < 0 and "left" or "right")
  305.     local rand = 9 - math.random(9)
  306.     if id == 0 or (rand < 6) then
  307.         noel.move(mul * math.random(30,60),0)
  308.         noel.updateImage(noel.img[img])
  309.     elseif id == 1 or (rand < 9) then
  310.         noel.move(mul * math.random(40,50),-80)
  311.         noel.updateImage(table.random({noel.img[img],noel.img.flying}))
  312.     elseif id == 2 or rand == 9 then
  313.         noel.move(mul * math.random(1,5),-math.random(70,100))
  314.         noel.updateImage(noel.img.flying)
  315.     end
  316. end
  317. noel.meep = function()
  318.     tfm.exec.displayParticle(20,noel.x,noel.y)
  319.     tfm.exec.explosion(noel.x,noel.y,20,50)
  320. end
  321. noel.cannon = function()
  322.     local player = noel.nearMouse(100)
  323.     if player[1] ~= "" then
  324.         local x = noel.x + (noel.x > player[2].x and -40 or 40)
  325.         local y = noel.y + (noel.y > player[2].y and -40 or 40)
  326.         local angle = math.deg(math.atan2(player[2].y-noel.y,player[2].x-noel.x)) + 90
  327.         table.insert(despawnObjects,{
  328.             [1] = tfm.exec.addShamanObject(1703,x,y,angle),
  329.             [2] = os.time() + 3000
  330.         })
  331.         local effect = function(id,sx,sy,xs,ys,e)
  332.             for i = 1,2 do
  333.                 tfm.exec.displayParticle(id[i] and id[i] or id[1],x + sx * e,y - sy * e,xs/1.5,ys/1.5)
  334.             end
  335.         end
  336.         for i = 1,20 do
  337.             effect({9,11},math.cos(i),math.sin(i),math.cos(i),-math.sin(i),22)
  338.             effect({13},math.cos(i),math.sin(i),math.sin(i),math.cos(i),19)
  339.         end
  340.     end
  341. end
  342. noel.teleport = function()
  343.     if os.time() > noel.timers.teleport then
  344.         noel.timers.teleport = os.time() + 8000
  345.         tfm.exec.displayParticle(37,noel.x,noel.y)
  346.         local x,y = math.random(10,790),math.random(50,300)
  347.         tfm.exec.moveObject(noel.id,x,y)
  348.         tfm.exec.displayParticle(37,x,y)
  349.     else
  350.         noel.escape(2)
  351.     end
  352. end
  353.  
  354. noel.gift = function()
  355.     if os.time() > noel.timers.prize then
  356.         noel.timers.prize = os.time() + 5000
  357.         noel.updateImage(noel.img.stop)
  358.         if #giftSequence > 0 then
  359.             local gift = table.random(giftSequence)
  360.             table.destroy(giftSequence,gift)
  361.             for k,v in next,gifts do
  362.                 if gift == (k-1) then
  363.                     gift = k
  364.                     break
  365.                 end
  366.             end
  367.             local gen = {}
  368.             gen[1] = tfm.exec.addShamanObject(6300,noel.x,noel.y)
  369.             gen[2] = os.time() + gifts[gift][2]
  370.             gen[3] = tfm.exec.addImage(gifts[gift][1]..".png","#"..gen[1],-15,-15)
  371.             gen[4] = gift
  372.             table.insert(currentGifts,gen)
  373.         end
  374.     else
  375.         noel.escape(0)
  376.     end
  377. end
  378. noel.tired = function(timer)
  379.     if os.time() > noel.timers.prize then
  380.         noel.isTired[1] = os.time() + 8000
  381.     else
  382.         noel.escape(2)
  383.     end
  384. end
  385.  
  386. eventLoop = function(currentTime)
  387.     if system.start and (currentTime/1000)>4 then
  388.         if not messaged then
  389.             messaged = true
  390.             if os.date("%m") == "12" and tonumber(os.date("%d")) >= 18 then
  391.                 tfm.exec.snow(60)
  392.                 local t = "<V><B>[S4NT4]</B> <R>%s!</R>\n<V><B>[S4NT4]</B> <VP>%s</VP>"
  393.                 local l = {
  394.                     en = "Merry Christmas",
  395.                     fr = "Joyeux Noel",
  396.                     br = "Feliz Natal",
  397.                     tr = "Mutlu Noeller",
  398.                     pl = "Wesołych Świąt",
  399.                     hu = "Boldog Karácsonyt",
  400.                     ro = "Craciun Fericit",
  401.                     ar = "عيد ميلاد سعيد",
  402.                     vk = "God Jul",
  403.                     nl = "Vrolijk Kerstfeest",
  404.                     id = "Selamat Natal",
  405.                     de = "Fröhliche Weihnachten",
  406.                     ru = "С Рождеством",
  407.                     cn = "聖誕快樂",
  408.                     ph = "Maligayang Pasko",
  409.                     lt = "Linksmų Kalėdų",
  410.                     jp = "メリークリスマス",
  411.                     fi = "Hyvää Joulua",
  412.                     it = "Buon Natale",
  413.                     cz = "Veselé Vánoce",
  414.                     hr = "Sretan Božić",
  415.                     bg = "Весела Коледа",
  416.                     lv = "Priecīgus Ziemassvētkus",
  417.                     et = "Häid Jõule",
  418.                 }
  419.                 l.pt = l.br
  420.                 local f = l.en
  421.                 for k,v in next,l do
  422.                     if k == tfm.get.room.community then
  423.                         f = v
  424.                         break
  425.                     end
  426.                 end
  427.                 for k,v in next,info do
  428.                     tfm.exec.chatMessage(t:format(f:upper(),v.db.enigma),k)
  429.                 end
  430.             end
  431.         end
  432.  
  433.         if not noel.id then
  434.             noel.id = tfm.exec.addShamanObject(6300,noel.x,noel.y)
  435.             noel.updateImage(noel.img.stop)
  436.         end
  437.        
  438.         local ox,oy
  439.         if tfm.get.room.objectList[noel.id] then
  440.             ox,oy = tfm.get.room.objectList[noel.id].x,tfm.get.room.objectList[noel.id].y
  441.         else
  442.             ox,oy = noel.x,noel.y
  443.         end
  444.        
  445.         if (ox < -10 or ox > 810) or (oy > 400 or oy < -50) then
  446.             tfm.exec.removeObject(noel.id)
  447.             noel.x,noel.y = initx,inity
  448.             noel.id = nil
  449.         end
  450.        
  451.         if noel.id then
  452.             noel.x = ox
  453.             noel.y = oy
  454.         end
  455.  
  456.         for k,v in ipairs(despawnObjects) do
  457.             if os.time() > v[2] then
  458.                 tfm.exec.removeObject(v[1])
  459.             end
  460.         end
  461.         for k,v in ipairs(currentGifts) do
  462.             if os.time() > v[2] then
  463.                 tfm.exec.removeObject(v[1])
  464.                 tfm.exec.removeImage(v[3])
  465.                 giftSequence[#giftSequence + 1] = math.random(0,1)
  466.             end
  467.         end
  468.  
  469.         if os.time() > noel.isTired[1] then
  470.             noel.particles(13)
  471.             if math.floor(currentTime/1000) % 24 == 0 then
  472.             noel.tired()
  473.             elseif math.floor(currentTime/1000) % 10 == 0 then
  474.                 noel.gift()
  475.             elseif math.floor(currentTime/1000) % 2 == 0 then
  476.                 local option = math.random((noel.isEscaping and 15 or 10))
  477.                 if option > 3 then
  478.                     noel.escape()
  479.                 else
  480.                     noel.updateImage(noel.img.stop)
  481.                     if (currentTime/1000)>7 and math.random(1,2) == 1 then
  482.                         if option == 3 then
  483.                             noel.cannon()
  484.                         elseif option == 2 then
  485.                             noel.teleport()
  486.                         elseif option == 1 then
  487.                             noel.meep()
  488.                         end
  489.                     end
  490.                 end
  491.             else
  492.                 noel.updateImage(noel.img.stop)
  493.             end
  494.         else
  495.             noel.particles(1)
  496.             if not noel.isTired[2] then
  497.                 noel.isTired[2] = true
  498.                 noel.timers.prize = os.time() + 5000
  499.                 local imgId = #noel.img.tired
  500.                 local animation = {}
  501.                 local numb = 1
  502.                 animation = system.looping(function()
  503.                     noel.updateImage(noel.img.tired[imgId])
  504.  
  505.                     if imgId == #noel.img.tired or imgId == 1 then
  506.                         numb = -numb
  507.                     end
  508.  
  509.                     imgId = imgId + numb
  510.  
  511.                     if (os.time()+250) > noel.isTired[1] then
  512.                         for k,v in next,animation do
  513.                             system.removeTimer(v)
  514.                         end
  515.                         noel.isTired[2] = false
  516.                     end
  517.                 end,9)
  518.             end
  519.         end
  520.     end
  521. end
  522.  
  523. eventKeyboard = function(n,k,d,x,y)
  524.     if system.start then
  525.         if os.time() > info[n].keyboard then
  526.             if k == 32 then
  527.                 if os.time() < noel.isTired[1] then
  528.                     if math.pythag(x,y,noel.x,noel.y,32) then
  529.                         info[n].db.gifts[2] = info[n].db.gifts[2] + (info[n].db.gifts[1][1]/10) + (info[n].db.gifts[1][2]/10) + (info[n].db.gifts[1][3]/10) + (info[n].db.gifts[1][4]/10)
  530.                         info[n].db.gifts[1] = {0,0,0,0}
  531.                        
  532.                         if not info[n].db.titles[1] then
  533.                             if info[n].db.gifts[2] >= 5 then
  534.                                 info[n].db.aim = 10
  535.                                 info[n].db.titles[1] = true
  536.                                 --system.giveEventGift(n,title[1])
  537.                             end
  538.                         end
  539.                         if not info[n].db.titles[2] then
  540.                             if info[n].db.gifts[2] >= 10 then
  541.                                 info[n].db.aim = "<font letterSpacing='5'>!!!!!!"
  542.                                 info[n].db.titles[2] = true
  543.                                 --system.giveEventGift(n,title[2])
  544.                             end
  545.                         end
  546.  
  547.                         --system.savePlayerData(n,serialization.table.tostring(info[n].db))
  548.  
  549.                         system.updateBar(n)
  550.                     end
  551.                 else
  552.                     for k,v in next,currentGifts do
  553.                         local o = tfm.get.room.objectList[v[1]]
  554.                         if o and math.pythag(x,y,o.x,o.y,25) then
  555.                             local maximum = {19,10,6,4}
  556.                             if (info[n].db.gifts[1][v[4]]+v[4]) <= maximum[v[4]] then
  557.                                 tfm.exec.removeObject(v[1])
  558.                                 tfm.exec.removeImage(v[3])
  559.                                 currentGifts[k][2] = 0
  560.                                 info[n].db.gifts[1][v[4]] = info[n].db.gifts[1][v[4]] + v[4]
  561.  
  562.                                 --system.savePlayerData(n,serialization.table.tostring(info[n].db))
  563.  
  564.                                 system.updateBar(n)
  565.                                 break
  566.                             end
  567.                         end
  568.                     end
  569.                 end
  570.             end
  571.             info[n].keyboard = os.time() + 1500
  572.         end
  573.     end
  574. end
  575.  
  576. eventChatMessage = function(n,c)
  577.     if os.date("%m") == "12" and tonumber(os.date("%d")) >= 18 then
  578.         if os.time() > noel.isTired[1] then
  579.             if math.pythag(tfm.get.room.playerList[n].x,tfm.get.room.playerList[n].y,noel.x,noel.y,32) then
  580.                 enigma.verify(n,c)
  581.             end
  582.         end
  583.     end
  584. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement