Advertisement
Travonrodfer

Pet

Nov 28th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 34.29 KB | None | 0 0
  1. dono = "Travonrodfer#0000"
  2. function begin()
  3. bicho = 113
  4. bb= false
  5. xu = math.random(800)
  6. yu = math.random(300)
  7. id = tfm.exec.addShamanObject(bicho, 0, 0, false, 0, 0, true)
  8. mort={}
  9. tutorial = {}
  10. tutu = {}
  11. showall = {}
  12. mostrando = false
  13. namao = {}
  14. obje = 0
  15. macieira={}
  16. ossadeira = {}
  17. appleshot = 12
  18. ossinhos = 1
  19. m = 0
  20. osstatus = 0
  21. horadobanho = false
  22. b = 0
  23. fome = 200
  24. felicidade = 200
  25. higiene = 200
  26. sono = 200
  27. sonin = false
  28. justonetime = 0
  29. amizade = {}
  30. joint = 0
  31. piso = 0
  32. porta = 0
  33. broto1 = false
  34. broto2 = false
  35. broto3 = false
  36. broto4 = false
  37. flr1=0
  38. flr2=0
  39. flr3=0
  40. flr4=0
  41. end
  42. begin()
  43.  
  44. function status(name)
  45.     ui.addTextArea(0, "<R><a href=\"event:fechar\"><p align=\"right\">Fechar", name, 6, 227, 200, 176, 0x1e1a1b, 0x000000, 1, true)
  46.     ui.addTextArea(1, "<p align=\"center\"><font size=\"15\" color=\"#10740b\">FOME", name, 6, 374, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  47.     ui.addTextArea(2, "", name, 6, 374, fome, 20, 0x10740b, 0x000000, 1, true)
  48.     ui.addTextArea(3, "<p align=\"center\"><font size=\"15\" color=\"#74c7d6\">HIGIENE", name, 6, 312, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  49.     ui.addTextArea(4, "", name, 6, 312, higiene, 20, 0x74c7d6, 0x000000, 1, true)
  50.     ui.addTextArea(5, "<p align=\"center\"><font size=\"15\" color=\"#eeff00\">FELICIDADE", name, 6, 343, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  51.     ui.addTextArea(6, "", name, 6, 343, felicidade, 20, 0xeeff00, 0x000000, 1, true)
  52.     ui.addTextArea(7, "<p align=\"center\"><font size=\"15\" color=\"#ffffff\">SONO", name, 6, 281, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  53.     ui.addTextArea(8, "", name, 6, 281, sono, 20, 0xffffff, 0x000000, 1, true)
  54.     ui.addTextArea(9, "<p align=\"center\"><font size=\"15\" color=\"#f565e4\">AMIZADE", name, 6, 249, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  55.     ui.addTextArea(10, "", name, 6, 249, amizade[name], 20, 0xf565e4, 0x000000, 1, true)
  56.     if namao[name] == 1 then
  57.         ui.addTextArea(12, "<PT><font size=\"15\">Maças:<font color=\"#C2C2DA\"> " .. appleshot .."", name, 8, 222, 93, 23, 0x324650, 0x000000, 0, true)
  58.     elseif namao[name] == 2 then
  59.         ui.addTextArea(12, "<PT><font size=\"15\">Ossos:<font color=\"#C2C2DA\"> " .. ossinhos .."", name, 8, 222, 93, 23, 0x324650, 0x000000, 0, true)
  60.     end
  61. end
  62.  
  63. function movimento()
  64.  obje = math.random(15)
  65.     if obje == 1 and sonin == false or obje == 2 and sonin == false or obje == 3 and sonin == false or obje == 4 and sonin == false then
  66.         tfm.exec.moveObject(id, xua, yua, false, -30)
  67.     elseif obje == 5 and sonin == false or obje == 6 and sonin == false or obje == 7 and sonin == false or obje == 8 and sonin == false then
  68.         tfm.exec.moveObject(id, xua, yua, false, 30)
  69.     elseif obje == 9 and sonin == false then
  70.         tfm.exec.moveObject(id, xua, yua, false, 80)
  71.     elseif obje == 10 and sonin == false then
  72.         tfm.exec.moveObject(id, xua, yua, false, -80)
  73.     elseif obje == 11 and sonin == false then
  74.         tfm.exec.moveObject(id, xua, yua, false, -30, -50)
  75.     elseif obje == 12 and sonin == false then
  76.         tfm.exec.moveObject(id, xua, yua, false, 30, -50)
  77.     end
  78. cordenada = tfm.get.room.objectList[id] or {x=0 , y=0}
  79. massalocal = tfm.get.room.objectList[massa] or {x=0 , y=0}
  80. ossalocal = tfm.get.room.objectList[ossea] or {x=0 , y=0}
  81. end
  82.  
  83. function eventLoop(ct, tr)
  84.     if tr <= 0 then
  85.         initial()
  86.     end
  87.     for name in pairs(tfm.get.room.playerList) do
  88.     osstatus = osstatus + .5
  89.     movimento()
  90.     if osstatus == 10 then
  91.         fome = fome - 5
  92.         higiene = higiene - 2
  93.         felicidade = felicidade - 4
  94.         if sonin == false then
  95.             sono = sono - 3
  96.         elseif sonin == true then
  97.             sono = sono + 6
  98.         end
  99.         osstatus = 0
  100.     elseif osstatus >= 0 and showall[name] == true then
  101.         status(name)
  102.     end
  103.     if horadobanho == true then
  104.         b = b +.5
  105.     end
  106.     if horadobanho == true and b < 10 then
  107.         tfm.exec.moveObject(id, 670, 180)
  108.         for k = 10,0,-1 do
  109.             tfm.exec.displayParticle(14,math.random(647,760),math.random(162,200),0,math.random(1.1),0,math.random(0.22))
  110.         end
  111.     elseif horadobanho == true and b > 10 then
  112.         felicidade = felicidade + 2
  113.         higiene = 200
  114.         horadobanho = false
  115.         b=0
  116.         ui.addTextArea(20, "<R><font size=\"12\"><a href=\"event:banho\"><p align=\"center\">Dar banho", nil, 670, 135, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  117.         if showall == true then
  118.             ui.addTextArea(4, "", name, 6, 312, higiene, 20, 0x74c7d6, 0x000000, 1, true)
  119.         end
  120.     end
  121.  
  122.     if sono < 20 then
  123.         felicidade = felicidade - 30
  124.         sonin = true
  125.     elseif sono >= 200 then
  126.         felicidade = felicidade + 3
  127.         sonin = false
  128.     end
  129.  
  130.     if broto1 == true then
  131.         flr1 = flr1 + .5
  132.     end
  133.     if broto2 == true then
  134.         flr2 = flr2 + .5
  135.     end
  136.     if broto3 == true then
  137.         flr3 = flr3 + .5
  138.     end
  139.     if broto4 == true then
  140.         flr4 = flr4 + .5
  141.     end
  142.     if flr1 == 40 and broto1 == true then
  143.         brotin = 1
  144.         xa = 985
  145.         ya = 292
  146.         broto(xa, ya)
  147.     elseif flr1 == 120 and broto1 == true then
  148.         brotin = 1
  149.         xa = 985
  150.         ya = 292
  151.         florescendo(xa, ya)
  152.     elseif flr1 == 180 and broto1 == true then
  153.         m = 1
  154.         tfm.exec.addPhysicObject(11, 1015, 297, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  155.         tfm.exec.addPhysicObject(12, 1045, 267, {type= 14, width=30, height=10, miceCollision=false, groundCollision=true, friction=9999})
  156.         tfm.exec.addPhysicObject(13, 1028, 248, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  157.         m11 = tfm.exec.addShamanObject(39, 1015, 282, 0, 0, 0, true)
  158.         m12 = tfm.exec.addShamanObject(39, 1043, 260, 0, 0, 0, true)
  159.         m13 = tfm.exec.addShamanObject(39, 1028, 237, 0, 0, 0, true)
  160.         ui.addTextArea(21, "<R><font size=\"20\"><a href=\"event:colhe1\"><p align=\"center\">Colher", nil, 985, 172, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  161.         flr1 = 0
  162.         broto1 = false
  163.     end
  164.     if flr2 == 40 and broto2 == true then
  165.         brotin = 2
  166.         xa = 1150
  167.         ya = 292
  168.         broto(xa, ya)
  169.     elseif flr2 == 120 and broto2 == true then
  170.         brotin = 2
  171.         xa = 1150
  172.         ya = 292
  173.         florescendo(xa, ya)
  174.     elseif flr2 == 180 and broto2 == true then
  175.         m = 2
  176.         tfm.exec.addPhysicObject(21, 1175, 297, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  177.         tfm.exec.addPhysicObject(22, 1215, 267, {type= 14, width=30, height=10, miceCollision=false, groundCollision=true, friction=9999})
  178.         tfm.exec.addPhysicObject(23, 1194, 248, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  179.         m21 =tfm.exec.addShamanObject(39, 1175, 282, 0, 0, 0, true)
  180.         m22 =tfm.exec.addShamanObject(39, 1211, 260, 0, 0, 0, true)
  181.         m23 =tfm.exec.addShamanObject(39, 1194, 237, 0, 0, 0, true)
  182.         ui.addTextArea(22, "<R><font size=\"20\"><a href=\"event:colhe2\"><p align=\"center\">Colher", nil, 1145, 172, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  183.         flr2 = 0
  184.         broto2 = false
  185.     end
  186.     if flr3 == 40 and broto3 == true then
  187.         brotin = 3
  188.         xa = 1300
  189.         ya = 292
  190.         broto(xa, ya)
  191.     elseif flr3 == 120 and broto3 == true then
  192.         brotin = 3
  193.         xa = 1300
  194.         ya = 292
  195.         florescendo(xa, ya)
  196.     elseif flr3 == 180 and broto3 == true then
  197.         m = 3
  198.         tfm.exec.addPhysicObject(31, 1327, 297, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  199.         tfm.exec.addPhysicObject(32, 1362, 267, {type= 14, width=30, height=10, miceCollision=false, groundCollision=true, friction=9999})
  200.         tfm.exec.addPhysicObject(33, 1339, 248, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  201.         m31 =tfm.exec.addShamanObject(39, 1327, 282, 0, 0, 0, true)
  202.         m32 =tfm.exec.addShamanObject(39, 1358, 260, 0, 0, 0, true)
  203.         m33 =tfm.exec.addShamanObject(39, 1339, 237, 0, 0, 0, true)
  204.         ui.addTextArea(23, "<R><font size=\"20\"><a href=\"event:colhe3\"><p align=\"center\">Colher", nil, 1305, 172, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  205.         flr3 = 0
  206.         broto3 = false
  207.     end
  208.     if flr4 == 40 and broto4 == true then
  209.         brotin = 4
  210.         xa = 1465
  211.         ya = 292
  212.         broto(xa, ya)
  213.     elseif flr4 == 120 and broto4 == true then
  214.         brotin = 4
  215.         xa = 1465
  216.         ya = 292
  217.         florescendo(xa, ya)
  218.     elseif flr4 == 180 and broto4 == true then
  219.         m = 4
  220.         tfm.exec.addPhysicObject(41, 1487, 297, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  221.         tfm.exec.addPhysicObject(42, 1525, 267, {type= 14, width=30, height=10, miceCollision=false, groundCollision=true, friction=9999})
  222.         tfm.exec.addPhysicObject(43, 1507, 248, {type= 14, width=25, height=10, miceCollision=false, groundCollision=true, friction=9999})
  223.         m41 =tfm.exec.addShamanObject(39, 1487, 282, 0, 0, 0, true)
  224.         m42 =tfm.exec.addShamanObject(39, 1521, 260, 0, 0, 0, true)
  225.         m43 =tfm.exec.addShamanObject(39, 1507, 237, 0, 0, 0, true)
  226.         ui.addTextArea(24, "<R><font size=\"20\"><a href=\"event:colhe4\"><p align=\"center\">Colher", nil, 1465, 172, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  227.         flr4 = 0
  228.         broto4 = false
  229.     end
  230.     for name,i in pairs(tfm.get.room.playerList) do
  231.         if i.x > (cordenada.x - 38) and i.x < (cordenada.x + 38) and i.y > (cordenada.y - 32) and i.y < (cordenada.y + 32) and not mort[name] and amizade[name] < 100 then
  232.             mort[name] = true
  233.             tfm.exec.killPlayer(name)
  234.         end
  235.     end
  236.     for i,v in ipairs(macieira) do
  237.         if v[2] < os.time() - 6000 then
  238.             tfm.exec.removeObject(v[1])
  239.             table.remove(macieira, i)
  240.             appleshot = appleshot + 1
  241.         end
  242.         if massalocal.x > (cordenada.x - 50) and massalocal.x < (cordenada.x + 50) and massalocal.y > (cordenada.y - 45) and massalocal.y < (cordenada.y + 45) and sonin == false then
  243.             tfm.exec.removeObject(v[1])
  244.             table.remove(macieira, i)
  245.             fome = fome + 15
  246.             felicidade = felicidade + 2
  247.         end
  248.     end
  249.     for i,v in ipairs(ossadeira) do
  250.         if v[2] < os.time() - 50000 then
  251.             tfm.exec.removeObject(v[1])
  252.             table.remove(ossadeira, i)
  253.             ossinhos = ossinhos + 1
  254.             felicidade = felicidade - 10
  255.         end
  256.         if ossalocal.x > (cordenada.x - 50) and ossalocal.x < (cordenada.x + 50) and ossalocal.y > (cordenada.y - 50) and ossalocal.y < (cordenada.y + 50) and sonin == false then
  257.             tfm.exec.removeObject(v[1])
  258.             table.remove(ossadeira, i)
  259.             ossinhos = ossinhos + 1
  260.             felicidade = felicidade + 10
  261.         elseif ossalocal.x > cordenada.x and sonin == false then
  262.             tfm.exec.moveObject(id, xua, yua, false, 50)
  263.         elseif ossalocal.x < cordenada.x and sonin == false then
  264.             tfm.exec.moveObject(id, xua, yua, false, -50)
  265.         end
  266.     end
  267.     if fome >= 200 then
  268.         fome = 200
  269.         if showall[name] then
  270.             ui.addTextArea(2, "", name, 6, 374, fome, 20, 0x10740b, 0x000000, 1, true)
  271.         end
  272.     elseif fome <= 0 then
  273.         fome = 0
  274.         tfm.exec.removeObject(id)
  275.         ui.addTextArea(15, "<R><font size=\"12\"><p align=\"center\">Seu pet MORREU DE FOME! Cuide melhor dos seus animais de estimação, ou nós cuidaremos de você!", nil, 322, 163, 156, yua, 0x1e1a1b, 0x000000, 1, true)
  276.         ui.removeTextArea(2, name)
  277.         if justonetime == 0 then
  278.             tfm.exec.setGameTime(10)
  279.             justonetime = 1
  280.         end
  281.     end
  282.     if felicidade >= 200 then
  283.         felicidade = 200
  284.         if showall[name] then
  285.             ui.addTextArea(6, "", name, 6, 343, felicidade, 20, 0xeeff00, 0x000000, 1, true)
  286.         end
  287.     elseif felicidade <= 0 then
  288.         felicidade = 0
  289.         tfm.exec.removeObject(id)
  290.         ui.addTextArea(15, "<R><font size=\"12\"><p align=\"center\">Seu pet estava muito infeliz e fugiu para encontrar um lar, onde dessem mais atenção para ele!", nil, 322, 163, 156, yua, 0x1e1a1b, 0x000000, 1, true)
  291.         ui.removeTextArea(6, name)
  292.         if justonetime == 0 then
  293.             tfm.exec.setGameTime(10)
  294.             justonetime = 1
  295.         end
  296.     end
  297.  
  298.     if higiene <= 0 then
  299.         higiene = 0
  300.         tfm.exec.removeObject(id)
  301.         ui.addTextArea(15, "<R><font size=\"12\"><p align=\"center\">Seu pet ficou muito sujo e acabou pegando uma infecção. Sentimos muito pela sua perda!", nil, 326, 169, 167, yua, 0x1e1a1b, 0x000000, 1, true)
  302.         ui.removeTextArea(4, name)
  303.         if justonetime == 0 then
  304.             tfm.exec.setGameTime(10)
  305.             justonetime = 1
  306.         end
  307.     end
  308.     if sono >= 200 then
  309.         sono = 200
  310.         ui.addTextArea(13, "<R><font size=\"12\"><a href=\"event:dormir\"><p align=\"center\">Por para dormir", nil, 550, 265, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  311.         if showall[name] then
  312.             ui.addTextArea(8, "", name, 6, 281, sono, 20, 0xffffff, 0x000000, 1, true)
  313.         end
  314.     end
  315.  
  316.     if amizade[name] >= 200 then
  317.         amizade[name] = 200
  318.         if bb == false then
  319.             bicho = 216
  320.             tfm.exec.removeObject(id)
  321.             id = tfm.exec.addShamanObject(bicho, 0, 0, false, 0, 0, true)
  322.             bb = true
  323.         end
  324.         if showall[name] then
  325.             ui.addTextArea(10, "", name, 6, 249, amizade[name], 20, 0xf565e4, 0x000000, 1, true)
  326.         end
  327.     elseif amizade[name] <= 0 then
  328.         ui.removeTextArea(10, name)
  329.     end
  330. end
  331. end
  332.  
  333. function eventTextAreaCallback(id, name, link)
  334.     if link == "menu" then
  335.         ui.removeTextArea(12, name)
  336.         ui.addTextArea(0, "<R><a href=\"event:fechar\"><p align=\"right\">Fechar", name, 6, 227, 200, 176, 0x1e1a1b, 0x000000, 1, true)
  337.         ui.addTextArea(1, "<p align=\"center\"><font size=\"15\" color=\"#10740b\">FOME", name, 6, 374, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  338.         ui.addTextArea(2, "", name, 6, 374, fome, 20, 0x10740b, 0x000000, 1, true)
  339.         ui.addTextArea(3, "<p align=\"center\"><font size=\"15\" color=\"#74c7d6\">HIGIENE", name, 6, 312, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  340.         ui.addTextArea(4, "", name, 6, 312, higiene, 20, 0x74c7d6, 0x000000, 1, true)
  341.         ui.addTextArea(5, "<p align=\"center\"><font size=\"15\" color=\"#eeff00\">FELICIDADE", name, 6, 343, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  342.         ui.addTextArea(6, "", name, 6, 343, felicidade, 20, 0xeeff00, 0x000000, 1, true)
  343.         ui.addTextArea(7, "<p align=\"center\"><font size=\"15\" color=\"#ffffff\">SONO", name, 6, 281, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  344.         ui.addTextArea(8, "", name, 6, 281, sono, 20, 0xffffff, 0x000000, 1, true)
  345.         ui.addTextArea(9, "<p align=\"center\"><font size=\"15\" color=\"#f565e4\">AMIZADE", name, 6, 249, 200, 20, 0x1e1a1b, 0x000000, 1, true)
  346.         ui.addTextArea(10, "", name, 6, 249, amizade[name], 20, 0xf565e4, 0x000000, 1, true)
  347.         if namao[name] == 1 then
  348.             ui.addTextArea(12, "<PT><font size=\"15\">Maças:<font color=\"#C2C2DA\"> " .. appleshot .."", name, 8, 222, 93, 23, 0x324650, 0x000000, 0, true)
  349.         elseif namao[name] == 2 then
  350.             ui.addTextArea(12, "<PT><font size=\"15\">Ossos:<font color=\"#C2C2DA\"> " .. ossinhos .."", name, 8, 222, 93, 23, 0x324650, 0x000000, 0, true)
  351.         end
  352.         showall[name] = true
  353.     elseif link == "fechar" then
  354.         ui.addTextArea(12, "<b><a href=\"event:menu\"><font color=\"#820d0d\">Status<a>", name, 6, 380, x, y, 0x1e1a1b, 0x000000, 1, true)
  355.         showall[name] = false
  356.         for id = 0,10 do
  357.             ui.removeTextArea(id, name)
  358.         end
  359.     elseif link == "help" then
  360.         ui.addTextArea(14, "<R><font size=\"15\"><p align=\"center\">Como cuidar do meu PET?!<font size=\"10\"><N>\nLeia este manual até o fim e saiba tudo sobre como criar um pet! \n<b>aperte P, para ir prosseguindo!</b>", name, 292, 185, 215, yua, 0x1e1a1b, 0x000000, 1, true)
  361.         tutorial[name] = true
  362.         tutu[name] = 0
  363.     end
  364.     for name,i in pairs(tfm.get.room.playerList) do
  365.         if link == "banho" and i.x > 647 and i.x < 760 and i.y > 112 and i.y < 198 and higiene < 100 and sonin == false then
  366.             amizade[name] = amizade[name] + 1
  367.             ui.removeTextArea(20, nil)
  368.             horadobanho = true
  369.             b = 0
  370.         elseif link == "dormir" and i.x > 518 and i.x < 690 and i.y >285 and i.y < 366 and sono < 150 and sonin == false then
  371.             for id in pairs(tfm.get.room.objectList) do
  372.                 tfm.exec.moveObject(id, 580, 350)
  373.             end
  374.             ui.addTextArea(13, nil)
  375.             sonin = true
  376.             ui.addTextArea(13, "<R><font size=\"12\"><a href=\"event:acordar\"><p align=\"center\">Acordar", nil, 580, 260, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  377.         elseif link == "acordar" and name == dono and i.x > 518 and i.x < 690 and i.y >285 and i.y < 366 and sono > 100 and sonin == true then
  378.             sonin = false
  379.             ui.addTextArea(13, "<R><font size=\"12\"><a href=\"event:dormir\"><p align=\"center\">Por para dormir", nil, 550, 260, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  380.  
  381.         elseif link == "plant1" and i.x > 973 and i.x < 1076 and i.y > 300 and i.y < 380 and appleshot > 0 then
  382.             appleshot = appleshot - 1
  383.             ui.addTextArea(21, "<R><font size=\"20\"><a href=\"event:rego1\"><p align=\"center\">Regar", nil, 985, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  384.         elseif link == "rego1" and i.x > 973 and i.x < 1076 and i.y > 300 and i.y < 380 then
  385.             ui.removeTextArea(21, nil)
  386.             broto1 = true
  387.         elseif link == "plant2" and i.x > 1118 and i.x < 1240 and  i.y > 300 and i.y < 380 and appleshot > 0 then
  388.             appleshot = appleshot - 1
  389.             ui.addTextArea(22, "<R><font size=\"20\"><a href=\"event:rego2\"><p align=\"center\">Regar", nil, 1145, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  390.         elseif link == "rego2" and i.x > 1118 and i.x < 1240 and  i.y > 300 and i.y < 380 then
  391.             ui.removeTextArea(22, nil)
  392.             broto2 = true
  393.         elseif link == "plant3" and i.x > 1291 and i.x < 1397 and i.y >300 and i.y < 380 and appleshot > 0 then
  394.             appleshot = appleshot - 1
  395.             ui.addTextArea(23, "<R><font size=\"20\"><a href=\"event:rego3\"><p align=\"center\">Regar", name, 1305, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  396.         elseif link == "rego3" and i.x > 1291 and i.x < 1397 and i.y >300 and i.y < 380 then
  397.             ui.removeTextArea(23, nil)
  398.             broto3= true
  399.         elseif link == "plant4" and i.x > 1454 and i.x < 1557 and i.y > 300 and i.y < 380 and appleshot > 0 then
  400.             appleshot = appleshot - 1
  401.             ui.addTextArea(24, "<R><font size=\"20\"><a href=\"event:rego4\"><p align=\"center\">Regar", name, 1465, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  402.         elseif link == "rego4" then
  403.             ui.removeTextArea(24, nil)
  404.             broto4 = true
  405.         elseif link =="colhe1" and i.x > 973 and i.x < 1076 and i.y > 300 and i.y < 380 then
  406.             appleshot = appleshot + 3
  407.             brotin = 1
  408.             tfm.exec.removeJoint(brotin + 1)
  409.             tfm.exec.removeJoint(brotin + 5)
  410.             tfm.exec.removeJoint(brotin + 25)
  411.             tfm.exec.removeObject(m11)
  412.             tfm.exec.removeObject(m12)
  413.             tfm.exec.removeObject(m13)
  414.             tfm.exec.removePhysicObject(11)
  415.             tfm.exec.removePhysicObject(12)
  416.             tfm.exec.removePhysicObject(13)
  417.             ui.addTextArea(21, "<R><font size=\"20\"><a href=\"event:plant1\"><p align=\"center\">Plantar", nil, 985, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  418.         elseif link =="colhe2" and i.x > 1118 and i.x < 1240 and  i.y > 300 and i.y < 380 then
  419.             appleshot = appleshot + 3
  420.             brotin = 2
  421.             tfm.exec.removeJoint(brotin + 1)
  422.             tfm.exec.removeJoint(brotin + 5)
  423.             tfm.exec.removeJoint(brotin + 25)
  424.             tfm.exec.removeObject(m21)
  425.             tfm.exec.removeObject(m22)
  426.             tfm.exec.removeObject(m23)
  427.             tfm.exec.removePhysicObject(21)
  428.             tfm.exec.removePhysicObject(22)
  429.             tfm.exec.removePhysicObject(23)
  430.             ui.addTextArea(22, "<R><font size=\"20\"><a href=\"event:plant2\"><p align=\"center\">Plantar", nil, 1145, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  431.         elseif link =="colhe3" and i.x > 1291 and i.x < 1397 and i.y >300 and i.y < 380 then
  432.             appleshot = appleshot + 3
  433.             brotin = 3
  434.             tfm.exec.removeJoint(brotin + 1)
  435.             tfm.exec.removeJoint(brotin + 5)
  436.             tfm.exec.removeJoint(brotin + 25)
  437.             tfm.exec.removeObject(m31)
  438.             tfm.exec.removeObject(m32)
  439.             tfm.exec.removeObject(m33)
  440.             tfm.exec.removePhysicObject(31)
  441.             tfm.exec.removePhysicObject(32)
  442.             tfm.exec.removePhysicObject(33)
  443.             ui.addTextArea(23, "<R><font size=\"20\"><a href=\"event:plant3\"><p align=\"center\">Plantar", nil, 1305, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  444.         elseif link =="colhe4" and i.x > 1454 and i.x < 1557 and i.y > 300 and i.y < 380 then
  445.             appleshot = appleshot + 3
  446.             brotin = 4
  447.             tfm.exec.removeJoint(brotin + 1)
  448.             tfm.exec.removeJoint(brotin + 5)
  449.             tfm.exec.removeJoint(brotin + 25)
  450.             tfm.exec.removeObject(m41)
  451.             tfm.exec.removeObject(m42)
  452.             tfm.exec.removeObject(m43)
  453.             tfm.exec.removePhysicObject(41)
  454.             tfm.exec.removePhysicObject(42)
  455.             tfm.exec.removePhysicObject(43)
  456.             ui.addTextArea(24, "<R><font size=\"20\"><a href=\"event:plant4\"><p align=\"center\">Plantar", nil, 1465, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  457.         end
  458.     end
  459. end
  460.  
  461. function eventKeyboard(name, key, d, x, y)
  462.     if key == 32 and appleshot > 0 and tfm.get.room.playerList[name].isFacingRight and namao[name] == 1 then
  463.         massa = tfm.exec.addShamanObject(39, x, y, 0, 10, 0, true)
  464.         table.insert(macieira, {massa, os.time()})
  465.         appleshot = appleshot - 1
  466.     elseif key == 32  and appleshot > 0 and not tfm.get.room.playerList[name].isFacingRight and namao[name] == 1 then
  467.         massa = tfm.exec.addShamanObject(39, x, y, 0, -10, 0, true)
  468.         table.insert(macieira, {massa, os.time()})
  469.         appleshot = appleshot - 1
  470.     elseif key == 32 and ossinhos > 0 and tfm.get.room.playerList[name].isFacingRight and namao[name] == 2 then
  471.         ossea = tfm.exec.addShamanObject(602, x + 20, y, 0, 20, 0)
  472.         table.insert(ossadeira, {ossea, os.time()})
  473.         ossinhos = ossinhos - 1
  474.     elseif key == 32 and ossinhos > 0 and not tfm.get.room.playerList[name].isFacingRight and namao[name] == 2 then
  475.         ossea = tfm.exec.addShamanObject(602, x - 20, y, 0, -20, 0)
  476.         table.insert(ossadeira, {ossea, os.time()})
  477.         ossinhos = ossinhos - 1
  478.     elseif key == 188 then
  479.         namao[name] = 1
  480.     elseif key == 190 then
  481.         namao[name] = 2
  482.     elseif key == 80 and tutorial[name] then
  483.         tutu[name] = tutu[name] + 1
  484.     end
  485.     if tutu[name] == 1 and key == 80 and tutorial[name] then
  486.         ui.addTextArea(14, "<p align=\"center\">Clicando aqui embaixo, em <b>status</b>, você abrirá os status do seu pet, como: <font color=\"#10740b\">fome<N>, <font color=\"#eeff00\">felicidade, <font color=\"#74c7d6\">higiene<N>, <font color=\"#ffffff\">sono<N> e a <font color=\"#f565e4\">amizade!", name, 7, 302, 173, yua, 0x1e1a1b, 0x000000, 1, true)
  487.     elseif tutu[name] == 2 and key == 80 and tutorial[name] then
  488.         showall[name] = true
  489.         status(name)
  490.         ui.addTextArea(14, "<p align=\"center\">Perceba que eles vão abaixando. Você deve sempre manter essas barras cheias!", name, 334, 170, 132, yua, 0x1e1a1b, 0x000000, 1, true)
  491.     elseif tutu[name] == 3 and key == 80 and tutorial[name] then
  492.         status(name)
  493.         ui.addTextArea(14, "<p align=\"center\">Essa é a barra de <font color=\"#f565e4\">amizade", name, 220, 249, xua, 20, 0x1e1a1b, 0x000000, 1, true)
  494.     elseif tutu[name] == 4 and key == 80 and tutorial[name] then
  495.         ui.addTextArea(14, "<p align=\"center\">Se sua amizade com o pet for baixa, ele irá te atacar até a morte, quando você se aproximar. <r>CUIDADO!", name, 334, 170, 161, yua, 0x1e1a1b, 0x000000, 1, true)
  496.     elseif tutu[name] == 5 and key == 80 and tutorial[name] then
  497.         ui.addTextArea(14, "<p align=\"center\">Caso sua amizade seja muito alta, o pet irá finalmente se sentir em casa e não te atacará mais", name, 327, 165, 146, yua, 0x1e1a1b, 0x000000, 1, true)
  498.     elseif tutu[name] == 6 and key == 80 and tutorial[name] then
  499.         status(name)
  500.         ui.addTextArea(14, "<p align=\"center\">Essa é a barra de <font color=\"#ffffff\">sono", name, 220, 281, xua, 20, 0x1e1a1b, 0x000000, 1, true)
  501.     elseif tutu[name] == 7 and key == 80 and tutorial[name] then
  502.         ui.addTextArea(14, "<p align=\"center\">Se o sono cair muito, o pet desmaiará e assim ficará, até acordar! Caso aconteça, você perdera muita da sua amizade com ele.", name, 334, 170, 163, yua, 0x1e1a1b, 0x000000, 1, true)
  503.     elseif tutu[name] == 8 and key == 80 and tutorial[name] then
  504.         ui.addTextArea(14, "<p align=\"center\">Você pode por seu pet para dormir, indo em cima do sofá com o ursinho e clicando no local mostrado!", name, 325, 166, 149, yua, 0x1e1a1b, 0x000000, 1, true)
  505.     elseif tutu[name] == 9 and key == 80 and tutorial[name] then
  506.         status(name)
  507.         ui.addTextArea(14, "<p align=\"center\">Essa é a barra de <font color=\"#74c7d6\"> higiene", name, 220, 312, xua, 20, 0x1e1a1b, 0x000000, 1, true)
  508.     elseif tutu[name] == 10 and key == 80 and tutorial[name] then
  509.         ui.addTextArea(14, "<p align=\"center\">Sendo um pet, ele correrá para todos os lados e ficará sujo. Você precisa dar banho nele frequentemente, para evitar doenças!", name, 314, 166, 171, yua, 0x1e1a1b, 0x000000, 1, true)
  510.     elseif tutu[name] == 11 and key == 80 and tutorial[name] then
  511.         ui.addTextArea(14, "<p align=\"center\">Para dar banho no seu pet, entre dentro da banheira e clique no local mostrado!", name, 338, 170, 123, yua, 0x1e1a1b, 0x000000, 1, true)
  512.     elseif tutu[name] == 12 and key == 80 and tutorial[name] then
  513.         status(name)
  514.         ui.addTextArea(14, "<p align=\"center\">Essa é a barra de <font color=\"#eeff00\"> felicidade", name, 220, 343, xua, 20, 0x1e1a1b, 0x000000, 1, true)
  515.     elseif tutu[name] == 13 and key == 80 and tutorial[name] then
  516.         ui.addTextArea(14, "<p align=\"center\">Há vários jeitos de manter o seu pet feliz! Se ele tiver uma boa noite de sono, um bom banho, e comer uma comida saborosa, sua felicidade irá aumentar um pouco.", name, 309, 158, 181, yua, 0x1e1a1b, 0x000000, 1, true)
  517.     elseif tutu[name] == 14 and key == 80 and tutorial[name] then
  518.         ui.addTextArea(14, "<p align=\"center\">Mas caso você queira que ela aumente em um nível considerável, você deve brincar com ele!", name, 330, 166, 140, yua, 0x1e1a1b, 0x000000, 1, true)
  519.     elseif tutu[name] == 15 and key == 80 and tutorial[name] then
  520.         ui.addTextArea(14, "<p align=\"center\">Você possui a habilidade de lançar coisas. Agora, você está com uma maça na mão, caso aperte espaço, será isso que você vai lançar.", name, 316, 164, 168, yua, 0x1e1a1b, 0x000000, 1, true)
  521.     elseif tutu[name] == 16 and key == 80 and tutorial[name] then
  522.         ui.addTextArea(14, "<p align=\"center\">aperte <R>,<N> para ir para o item anterior e <R>.<N> para o próximo item. Caso você lance um cranio, seu pet ira correr atrás para pegá-lo e isso o deixará muito feliz.", name, 312, 160, 176, yua, 0x1e1a1b, 0x000000, 1, true)
  523.     elseif tutu[name] == 17 and key == 80 and tutorial[name] then
  524.         ui.addTextArea(14, "<p align=\"center\">Caso você lance em um lugar, que o pet não consiga pegar a tempo, ele se sentirá incapaz e se entristecerá.", name, 331, 165, 138, yua, 0x1e1a1b, 0x000000, 1, true)
  525.     elseif tutu[name] == 18 and key == 80 and tutorial[name] then
  526.         status(name)
  527.         ui.addTextArea(14, "<p align=\"center\">Essa é a barra de <font color=\"#10740b\"> fome", name, 220, 374, xua, 20, 0x1e1a1b, 0x000000, 1, true)
  528.     elseif tutu[name] == 19 and key == 80 and tutorial[name] then
  529.         ui.addTextArea(14, "<p align=\"center\">A fome será um dos seus maiores problemas, uma vez que seu pet tem muito apetite! ", name, 335, 165, 129, yua, 0x1e1a1b, 0x000000, 1, true)
  530.     elseif tutu[name] == 20 and key == 80 and tutorial[name] then
  531.         ui.addTextArea(14, "<p align=\"center\">Seu pet adora comer maças! Aperte espaço para lançar as maças para ele. Mas jogue devagar, ele não consegue comer muito rápido!", name, 318, 161, 164, yua, 0x1e1a1b, 0x000000, 1, true)
  532.     elseif tutu[name] == 21 and key == 80 and tutorial[name] then
  533.         ui.addTextArea(14, "<p align=\"center\">Tome cuidado para não dar á ele todas as maças! Elas são finitas, então você deve ir lá fora plantar, para que nunca acabem e seu pet não morra de fome! <font size=\"7\">\nei, isso pode dar problema com o pessoal dos direitos dos animais!", name, 305, 152, 189, yua, 0x1e1a1b, 0x000000, 1, true)
  534.     elseif tutu[name] == 22 and key == 80 and tutorial[name] then
  535.         ui.addTextArea(14, "<p align=\"center\">Caso você seja o dono da casa, poderá trancar e abrir a porta, clicando com o mouse, na entrada da casa!", name, 327, 165, 146, yua, 0x1e1a1b, 0x000000, 1, true)
  536.     elseif tutu[name] == 23 and key == 80 and tutorial[name] then
  537.         status(name)
  538.         ui.addTextArea(14, "<p align=\"center\">Você pode ver o item que está segurando e a quantidade que possui, aqui!\n<p align=\"left\"> ↓ ↓ ↓ ↓ ↓ ↓", name, 7, 138, 126, yua, 0x1e1a1b, 0x000000, 1, true)
  539.     elseif tutu[name] == 24 and key == 80 and tutorial[name] then
  540.         ui.removeTextArea(14, name)
  541.         tutu[name] = 0
  542.         tutorial[name] = false
  543.     end
  544. end
  545.  
  546. function eventMouse(name, x, y)
  547.     if name == dono and x > (777 - 30) and x < (777 + 30) and y > (333 - 50) and y < (333 + 50) and porta == 0 then
  548.         tfm.exec.addPhysicObject(-1, 777, 333, {type= 12, width=20, height=74, miceCollision=true, groundCollision=true, color=0x620613})
  549.         porta = 1
  550.     elseif name == dono and x > (777 - 30) and x < (777 + 30) and y > (333 - 50) and y < (333 + 50) and porta == 1 then
  551.         tfm.exec.removePhysicObject(-1)
  552.         porta = 0
  553.     end
  554. end
  555.  
  556. for name in pairs(tfm.get.room.playerList) do
  557.     system.bindMouse(name)
  558.     system.bindKeyboard(name, 32, true, true)
  559.     system.bindKeyboard(name, 80, true, true)
  560.     system.bindKeyboard(name, 188, true, true)
  561.     system.bindKeyboard(name, 190, true, true)
  562. end
  563.  
  564. function eventNewGame()
  565.     for name in pairs(tfm.get.room.playerList) do
  566.         mort[name] = false
  567.         ui.addTextArea(11, "<a href=\"event:help\"><p align=\"center\"><font color=\"#820d0d\"><b>?", name, 62, 380, x, y, 0x1e1a1b, 0x000000, 1, true)
  568.         ui.addTextArea(12, "<b><a href=\"event:menu\"><font color=\"#820d0d\">Status<a>", name, 6, 380, x, y, 0x1e1a1b, 0x000000, 1, true)
  569.         ui.addTextArea(13, "<R><font size=\"12\"><a href=\"event:dormir\"><p align=\"center\">Por para dormir", nil, 550, 260, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  570.         ui.addTextArea(20, "<R><font size=\"12\"><a href=\"event:banho\"><p align=\"center\">Dar banho", name, 670, 135, xua, yua, 0x1e1a1b, 0x000000, 1, false)
  571.         ui.addTextArea(21, "<R><font size=\"20\"><a href=\"event:plant1\"><p align=\"center\">Plantar", name, 985, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  572.         ui.addTextArea(22, "<R><font size=\"20\"><a href=\"event:plant2\"><p align=\"center\">Plantar", name, 1145, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  573.         ui.addTextArea(23, "<R><font size=\"20\"><a href=\"event:plant3\"><p align=\"center\">Plantar", name, 1305, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  574.         ui.addTextArea(24, "<R><font size=\"20\"><a href=\"event:plant4\"><p align=\"center\">Plantar", name, 1465, 272, 82, 30, 0x1e1a1b, 0x000000, 1, false)
  575.     end
  576.     xu = math.random(800)
  577.     yu = math.random(300)
  578.     id = tfm.exec.addShamanObject(113, xu, yu, false, 0, 0, true)
  579.     tfm.exec.addShamanObject(id)
  580. end
  581.  
  582. function broto(xa, ya)
  583.     tfm.exec.addPhysicObject(piso + 1, xa, ya, {type=14, miceColision=false, groundCollision=false})
  584.     tfm.exec.addJoint(brotin+1, piso + 1, piso + 1, {type = 0, point1=''..(xa + 44)..','..(ya+47)..'', point2=''..(xa + 42)..','..(ya+71)..'', color = '0x39b841', line = 10, alpha = 1, foreground = false})
  585.     tfm.exec.addJoint(brotin+5, piso + 1, piso + 1, {type = 0, point1='' .. (xa + 46)..','..(ya+72) .. '', point2='' .. (xa + 62)..','..(ya+31) .. '', color = '0x39b841', line = 6, alpha = 1, foreground = false})
  586.     tfm.exec.addJoint(brotin+25, piso + 1, piso + 1, {type = 0, point1='' .. (xa + 42)..','..(ya+74) .. '', point2='' .. (xa + 33)..','..(ya+45) .. '', color = '0x39b841', line = 5, alpha = 1, foreground = false})
  587. end
  588.  
  589. function florescendo(xa, ya)
  590.     tfm.exec.addPhysicObject(piso + 1, xa, ya, {type=14, miceColision=false, groundCollision=false})
  591.     tfm.exec.addJoint(brotin+1, piso + 1, piso + 1, {type = 0, point1=''..(xa + 42)..','..(ya+21)..'', point2=''..(xa + 30)..','..(ya+-7)..'', color = '0x39b841', line = 5, alpha = 1, foreground = false})
  592.     tfm.exec.addJoint(brotin+5, piso + 1, piso + 1, {type = 0, point1='' .. (xa + 47)..','..(ya+1) .. '', point2='' .. (xa + 63)..','..(ya+-40) .. '', color = '0x39b841', line = 6, alpha = 1, foreground = false})
  593.     tfm.exec.addJoint(brotin+25, piso + 1, piso + 1, {type = 0, point1='' .. (xa + 44)..','..(ya+-48) .. '', point2='' .. (xa + 44)..','..(ya+71) .. '', color = '0x39b841', line = 10, alpha = 1, foreground = false})
  594. end
  595.  
  596. function eventPlayerDied(name)
  597.     tfm.exec.respawnPlayer(name)
  598.     mort[name] = false
  599. end
  600.  
  601. function initial()
  602. dia = math.random(8)
  603.     if dia == 1 or dia == 2 or dia == 3 or dia == 5 or dia == 7 or dia == 8 then
  604.         map = ('<C><P F="' .. dia .. '" L="1600" /><Z><S><S L="130" H="10" X="96" Y="372" T="2" P="0,0,0,1.2,0,0,0,0" /><S P="0,0,0.3,0.2,180,0,0,0" L="200" H="30" c="4" Y="214" T="0" X="95" /><S H="75" L="45" X="777" c="4" Y="333" T="0" P="0,0,0.3,0.2,180,0,0,0" /><S L="600" H="30" X="461" Y="214" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="720" H="45" X="1240" Y="400" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="900" X="460" H="60" Y="400" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" H="45" X="0" Y="233" T="0" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,-10,0,0,0" L="400" o="620613" H="100" N="" Y="-13" T="12" X="48" /><S L="300" X="777" H="47" Y="147" T="0" P="0,0,0.3,0.2,90,0,0,0" /><S L="400" o="620613" H="100" X="730" N="" Y="-13" T="12" P="0,0,0.3,0.2,10,0,0,0" /><S L="310" o="620613" H="100" X="390" N="" Y="-47" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="200" H="47" X="507" Y="29" T="0" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="2000" o="6a7495" X="800" c="4" Y="551" T="12" H="300" /><S P="0,0,,,,0,0,0" L="100" H="25" v="0001" Y="182" T="9" X="705" /><S P="0,0,0.3,0.2,0,0,0,0" L="100" X="1026" c="4" Y="372" T="5" H="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="100" X="1186" c="4" Y="372" T="5" H="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="100" X="1346" c="4" Y="372" T="5" H="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="100" X="1506" c="4" Y="372" T="5" H="12" /><S L="40" H="10" X="666" Y="183" T="14" P="0,0,0,0.2,60,0,0,0" /><S L="40" X="744" H="10" Y="185" T="14" P="0,0,0,0.2,-60,0,0,0" /><S P="0,0,0,0.2,90,0,0,0" L="1000" H="10" c="2" Y="-99" T="14" X="1604" /><S P="0,0,2,,45,0,0,0" L="20" X="354" c="2" Y="373" T="14" H="20" /><S H="20" L="20" X="519" c="2" Y="373" T="14" P="0,0,2,,45,0,0,0" /><S P="0,0,2,,45,0,0,0" L="20" H="20" c="2" Y="373" T="14" X="689" /><S X="183" L="20" H="20" c="2" Y="373" T="14" P="0,0,2,,45,0,0,0" /><S P="0,0,0.3,0.2,180,0,0,0" L="45" H="72" c="4" Y="163" T="0" X="507" /></S><D><P C="e8ebec" Y="0" T="34" X="0" P="0,0" /><DS Y="328" X="308" /><P X="301" Y="155" T="76" P="0,0" /><P X="299" Y="153" T="121" P="0,0" /><P C="620613" Y="373" T="15" P="0,0" X="268" /><P C="dd4e58,1b1d1c,e3e3e3" Y="200" T="129" P="0,0" X="374" /><P P="0,0" Y="202" T="124" X="229" /><P C="dd4e58,1b1d1c,e3e3e3" Y="200" T="128" P="0,0" X="326" /><P C="c03323" Y="206" T="120" P="1,0" X="706" /><P C="e8e9eb,c03323" Y="200" T="119" P="0,1" X="613" /><P C="dbd4cb" Y="374" T="96" P="0,0" X="433" /><P C="620613" Y="373" T="15" X="603" P="0,0" /><P C="dd4e58,1b1d1c,e3e3e3" Y="200" T="128" X="278" P="0,1" /><P C="dd4e58,1b1d1c,e3e3e3" Y="200" T="129" X="230" P="0,0" /><P X="430" Y="200" T="28" P="0,0" /><P X="856" Y="369" T="4" P="0,0" /><P X="644" Y="346" T="26" P="0,0" /><P X="468" Y="203" T="37" P="0,0" /></D><O /></Z></C>')
  605.         tfm.exec.disableAutoShaman(true)
  606.         tfm.exec.disableAfkDeath(true)
  607.         tfm.exec.disableAutoNewGame(true)
  608.         tfm.exec.disableAutoTimeLeft(true)
  609.         tfm.exec.newGame(map)
  610.         tfm.exec.setGameTime(99999)
  611.         ui.setMapName("Pet")
  612.         begin()
  613.         for name in pairs(tfm.get.room.playerList) do
  614.             ui.removeTextArea(15, name)
  615.             tutorial[name] = false
  616.             tutu[name] = 0
  617.             namao[name] = 1
  618.             showall[name] = false
  619.             amizade[name] = 1
  620.             if name == dono then
  621.                 amizade[name] = 199
  622.             end
  623.         end
  624.     elseif dia == 4 or dia == 6 then
  625.         initial()
  626.     end
  627. end
  628. initial()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement