Advertisement
Tectoon

[TFM] Minigames

Aug 18th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 40.78 KB | None | 0 0
  1. "None"
  2. EventName[x] = "None"
  3. end
  4.  
  5. function eventLoop()
  6.  
  7. print("a="..a)
  8. print(c)
  9. print(ctrl)
  10. print("tped="..tped)
  11.  
  12. if racing == 1 then
  13. racingTime = racingTime+1
  14. end
  15.  
  16. if shaman == 1 then
  17. shamanTime = shamanTime+1
  18. end
  19.  
  20. if racingTime == 120 then
  21. tfm.exec.newGame(Racing[math.random(#Racing)])
  22. end
  23.  
  24. if shamanTime == 290 then
  25. tfm.exec.newGame(Shaman[math.random(#Shaman)])
  26. end
  27.  
  28. if mice == 0 and racing ==1 then
  29. tfm.exec.newGame(Racing[math.random(#Racing)])
  30. end
  31.  
  32. if mice == 0 and shaman ==1 then
  33. tfm.exec.newGame(Shaman[math.random(#Shaman)])
  34. end
  35.  
  36. if loopCount == 0 and snow == 1 then
  37. tfm.exec.snow()
  38.  
  39. end
  40. loopCount = (loopCount + 1) % 100
  41. end
  42.  
  43. function eventChatCommand(playerName,command)
  44.  
  45.             system.disableChatCommandDisplay(command, true)
  46.  
  47.             if command=="ro" then
  48.             remove = {}
  49.             for i,o in pairs(tfm.get.room.objectList) do
  50.             table.insert(remove, i)
  51.             end
  52.             for _,n in pairs(remove) do
  53.             tfm.exec.removeObject(n)
  54.             end
  55.             table.insert(log,1,playerName)
  56.             table.insert(EventName,1,"Remove objects")
  57.             end
  58.                    
  59.             if command=="help" or command=="??" then
  60.  
  61.             ui.addTextArea(60, [[<p align='center'><font size='18'> <J>MENU<br></br><font size='15'> <T><a href="event:??/????">Comandos</a> <br></br> <a href="event:??????">Summon Objects</a> <br></br><a href="event:????">Clear Objects</a><br></br><a href="event:????">Chat Commands</a><br></br><a href="event:????">Mode Options</a> <br></br><a href="event:??????">Record Sheet</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],playerName,350,200,290,180,0x000000,0x0fff00,0.5,true)
  62.  
  63.             end
  64.  
  65.         if command=="mort" then
  66.  
  67.             tfm.exec.addShamanObject(tfm.enum.shamanObject.iceCube,tfm.get.room.playerList[playerName].x,tfm.get.room.playerList[playerName].y)
  68.  
  69.             tfm.exec.killPlayer(playerName)
  70.             table.insert(log,1,playerName)
  71.             table.insert(EventName,1,command)
  72.  
  73.             end
  74.  
  75.              
  76.  
  77.             if command=="kill" or command=="death" or command=="birthday" or command=="badhank" then
  78.  
  79.             tfm.exec.killPlayer(playerName)
  80.             table.insert(log,1,playerName)
  81.             table.insert(EventName,1,command)
  82.  
  83.             end
  84.          
  85.  
  86.             if command=="hole" then
  87.  
  88.             tfm.exec.playerVictory(playerName)
  89.  
  90.             end
  91.  
  92.             if command=="cheese" or command=="????" or command=="dinner" or command=="??" then
  93.  
  94.             tfm.exec.giveCheese(playerName)
  95.             table.insert(log,1,playerName)
  96.             table.insert(EventName,1,command)
  97.  
  98.             end
  99.  
  100.             if command=="meep" then
  101.  
  102.             tfm.exec.giveMeep(playerName)
  103.             table.insert(log,1,playerName)
  104.             table.insert(EventName,1,command)
  105.  
  106.             end
  107.  
  108.             if command=="sham" or command=="mybirthdayo" then
  109.  
  110.             tfm.exec.setShaman(playerName)
  111.             table.insert(log,1,playerName)
  112.             table.insert(EventName,1,command)
  113.  
  114.             end
  115.  
  116.             if command=="snow" or command=="scarysnowman" then
  117.  
  118.             snow = 1
  119.  
  120.             end
  121.  
  122.             if command=="??" or command=="stop" then
  123.  
  124.             snow = 0
  125.  
  126.             end
  127.  
  128.             if command=="win" or command=="nicehank" then
  129.  
  130.             tfm.exec.giveCheese(playerName)
  131.  
  132.             tfm.exec.playerVictory(playerName)
  133.             table.insert(log,1,playerName)
  134.             table.insert(EventName,1,command)
  135.  
  136.             end
  137.  
  138.             if command=="vamp" or command=="nagosan" then
  139.  
  140.             tfm.exec.setVampirePlayer(playerName)
  141.             table.insert(log,1,playerName)
  142.             table.insert(EventName,1,command)
  143.  
  144.             end
  145.  
  146.             if command=="refresh" or command=="ref" or command=="tig" then
  147.  
  148.             tfm.exec.newGame()
  149.             table.insert(log,1,playerName)
  150.             table.insert(EventName,1,command)
  151.             tfm.exec.addShamanObject(87,0,0)
  152.  
  153.             end
  154.  
  155.             if command=="off" then
  156.  
  157.             system.exit()
  158.  
  159.             end
  160.  
  161.             if command=="explosion" or command=="????" or command=="???? ????" then
  162.  
  163.             b=1
  164.  
  165.             end
  166.            
  167.             if command=="explosion-off" then
  168.                
  169.             b=0
  170.             table.insert(log,1,playerName)
  171.             table.insert(EventName,1,command)
  172.            
  173.             end
  174.  
  175.             if command=="tmax" then
  176.  
  177.             tfm.exec.setGameTime(99400)
  178.  
  179.             end
  180.  
  181.         end
  182.  
  183. function eventPlayerDied(playerName)
  184.  
  185. mice = mice-1
  186. if racing == 0 and shaman == 0 then
  187. tfm.exec.respawnPlayer(playerName)
  188. end
  189.  
  190. end
  191.  
  192. function eventNewPlayer(name)
  193.  
  194.     tfm.exec.addShamanObject(87,0,0)
  195.     tfm.exec.bindKeyboard(name,17,true,true)
  196.     tfm.exec.bindKeyboard(name,104,true,true)
  197.     tfm.exec.bindKeyboard(name,100,true,true)
  198.     tfm.exec.bindKeyboard(name,102,true,true)
  199.     tfm.exec.bindKeyboard(name,98,true,true)
  200.     tfm.exec.bindKeyboard(name,71,true,true)
  201.     tfm.exec.bindKeyboard(name,72,true,true)
  202.     tfm.exec.bindKeyboard(name,75,true,true)
  203.     tfm.exec.bindKeyboard(name,76,true,true)
  204.     tfm.exec.bindKeyboard(name,79,true,true)
  205.     tfm.exec.bindKeyboard(name,186,true,true)
  206.     system.bindMouse(name, true)
  207.     tfm.exec.respawnPlayer(name)
  208.     mice = mice+1
  209.  
  210. end
  211.  
  212. for name,player in pairs(tfm.get.room.playerList) do
  213.  
  214.     eventNewPlayer(name)
  215.  
  216. end
  217.  
  218. function eventKeyboard(playername,key,down,x,y)
  219.  
  220.  
  221.     if key==72 then
  222.  
  223.             ui.addTextArea(60, [[<p align='center'><font size='18'> <J>MENU<br></br><font size='15'> <T><a href="event:??/????">Keyboard/Mouse Commands</a> <br></br> <a href="event:??????">Summon Objects</a> <br></br><a href="event:????">Clear Objects</a><br></br><a href="event:????">Chat Commands</a><br></br><a href="event:????">Mode Options</a> <br></br><a href="event:??????">Record Sheet</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],playername,350,200,290,180,0x000000,0x0fff00,0.5,true)
  224.  
  225.     end
  226.  
  227.     if key==71 then
  228.  
  229.             Portal = 26
  230.             c = playername
  231.     end
  232.  
  233.     if key==17 then
  234.  
  235.     if tped == 1 then
  236.          
  237.        tped = 0
  238.        ctrl = true
  239.  
  240.        for playername,player in pairs(tfm.get.room.playerList) do
  241.  
  242.        tfm.exec.bindKeyboard(playername,17,ctrl,true)
  243.  
  244.        end
  245.  
  246.     elseif a == 0 then
  247.  
  248.            a = 1
  249.            c = playername
  250.        ctrl = false
  251.  
  252.     elseif a == 1 then
  253.  
  254.            a = 0
  255.            c = nil
  256.        ctrl = true
  257.  
  258.     end
  259.  
  260.            for playername,player in pairs(tfm.get.room.playerList) do
  261.  
  262.        tfm.exec.bindKeyboard(playername,17,ctrl,true)
  263.  
  264.        end
  265.     end
  266.  
  267.     if key==104 or key==79 then
  268.  
  269.             tfm.exec.movePlayer(playername,0,0,true,0,-63,false)
  270.  
  271.     end
  272.  
  273.     if key==100 or key==75 then
  274.  
  275.             tfm.exec.movePlayer(playername,0,0,true,-200,0,false)
  276.  
  277.     end
  278.  
  279.     if key==102 or key==186 then
  280.  
  281.             tfm.exec.movePlayer(playername,0,0,true,200,0,false)
  282.  
  283.     end
  284.  
  285.     if key==98 or key==76 then
  286.  
  287.             tfm.exec.movePlayer(playername,0,0,true,0,300,false)
  288.  
  289.     end
  290.  
  291. end
  292.  
  293. for name,player in pairs(tfm.get.room.playerList) do
  294. system.bindMouse(name, true)
  295. end
  296.  
  297. function eventMouse(name, x, y)
  298.  
  299. if b == 1 then
  300. tfm.exec.explosion( x, y, 100, 100, false)
  301. tfm.exec.addShamanObject(24,x,y)
  302. table.insert(log,1,name)
  303. table.insert(EventName,1,"Explosion")
  304.  
  305. elseif a == 1 and c == name then
  306.  
  307. a = 0
  308. c = nil
  309. ctrl = false
  310. tped = 1
  311.  
  312. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  313. table.insert(log,1,name)
  314. table.insert(EventName,1,"Transport")
  315.  
  316. for name,player in pairs(tfm.get.room.playerList) do
  317.  
  318. tfm.exec.bindKeyboard(name,17,ctrl,true)
  319.  
  320. end
  321.  
  322. elseif Portal == 26 and c == name then
  323. tfm.exec.addShamanObject(26,x,y)
  324. Portal = 27
  325.  
  326. table.insert(log,1,name)
  327. table.insert(EventName,1,"Portal")
  328.  
  329. elseif Portal == 27 and c == name then
  330. tfm.exec.addShamanObject(27,x,y)
  331. Portal = 0
  332. end
  333.  
  334. end
  335.  
  336. function eventTextAreaCallback(ID,name,event)
  337. if event=='close' then
  338. ui.removeTextArea(ID,name)
  339. end
  340.  
  341. if event=='??/????' then
  342.  
  343. ui.removeTextArea(ID,name)
  344. ui.addTextArea(60, [[<p align='left'><font size='18'> <J>Comandos<br></br><font size='12'>Transportes: pressione Ctrl e clique na tela!<br></br>               Para ligar <br></br>Explosão: Digite "!explosion", Em seguida, clique na tela!<br></br>               Para desligar explosion digite "!explosion-off"<br></br>Portal:Pressione "G" em seguida, clique na tela para por o portal!<br></br>Rush/Fly/Fall down:Number pad 4,6/8/2<br></br><br></br><a href="event:???">Voltar</a><br></br><b><r><a href="event:close">Fechar</a></r></b></p>]],name,350,200,290,180,0x000000,0x0fff00,0.5,true)
  345.  
  346. end
  347. if event=='??????' then
  348.  
  349. ui.removeTextArea(ID,name)
  350. ui.addTextArea(60, [[<p align='left'><font size='20'> <J>Summon Objects<br></br><font size='12'><a href="event:Arrow">?Arrow?</a> <a href="event:Ball">?Ball?</a>  <a href="event:Fish">?Fish?</a> <a href="event:Trampoline">?Trampoline?</a> <a href="event:Anvil">?Anvil?</a> <a href="event:Bomb">?Bomb?</a> <a href="event:Spirit">?Spirit?</a> <a href="event:Balloon">?Balloon?</a> <a href="event:??!">?Chicken?</a> <a href="event:Rune">?Rune?</a> <a href="event:Valentines Arrow">?Valentines Arrow?</a> <a href="event:Apple">?Apple?</a> <a href="event:Sheep">?Sheep?</a> <a href="event:??">?Ice Plank?</a> <a href="event:????">?Choco Plank?</a> <a href="event:?">?Cloud?</a> <a href="event:??">?Buble?</a> <a href="event:?????">?Companion Crate?</a> <a href="event:??">?Pufferfish?</a> <a href="event:???">?Very Long Plank?</a> <a href="event:???">?Triangle Box?</a> <a href="event:S??">?S-Shaped Plank?</a> <a href="event:??">?Rock?</a> <a href="event:??">?Pumpkin?</a> <a href="event:??">?Tombstone?</a> <a href="event:?????">?Small Heart Box?</a> <a href="event:?????">?Small Christmas Box?</a> <a href="event:?????">?Small Cake Box?</a> <br></br><a href="event:???">previous page</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],name,0,30,800,120,0x000000,0x0fff00,0.5,true)
  351.  
  352. end
  353.  
  354. if event=='????' then
  355.  
  356. ui.removeTextArea(ID,name)
  357. ui.addTextArea(60, [[<p align='left'><font size='20'> <J>Chat Commands<br></br><font size='12'>?Remove Objects?:!ro<br></br>?Frozen Mouse?:!mort<br></br>?Suicide?:!death<br></br>?Get cheese?:!cheese<br></br>?Get meep?:!meep<br></br>?Be a shaman?:!sham<br></br>?Unlimited snow?:!snow<br></br>?Stop the snow?:!stop<br></br>?I R WINNER?:!win<br></br>?Be a vampire?:!vamp<br></br>?refresh tribe?:!tig,!refresh<br></br><a href="event:???">previous page</a><br></br><T><b><r><a href="event:close">close page</a></r></b></p>]],name,100,80,290,220,0x000000,0x0fff00,0.5,true)
  358.  
  359. end
  360.  
  361. if event=='??????' then
  362.  
  363. ui.removeTextArea(ID,name)
  364. ui.addTextArea(60, [[<p align='left'><font size='24'> <J>Record Sheet<font size='12'><br></br></r></b></p>]]..table.concat( { log[1],"   ",EventName[1],[[<br></br>]] } )..table.concat( { log[2],"   ",EventName[2],[[<br></br>]] } )..table.concat( { log[3],"   ",EventName[3],[[<br></br>]] } )..table.concat( { log[4],"   ",EventName[4],[[<br></br>]] } )..table.concat( { log[5],"   ",EventName[5],[[<br></br>]] } )..table.concat( { log[6],"   ",EventName[6],[[<br></br>]] } )..table.concat( { log[7],"   ",EventName[7],[[<br></br>]] } )..table.concat( { log[8],"   ",EventName[8],[[<br></br>]] } )..table.concat( { log[9],"   ",EventName[9],[[<br></br>]] } )..table.concat( { log[10],"   ",EventName[10],[[<br></br>]] } )..table.concat( { log[11],"   ",EventName[11],[[<br></br>]] } )..table.concat( { log[12],"   ",EventName[12],[[<br></br>]] } )..table.concat( { log[13],"   ",EventName[13],[[<br></br>]] } )..table.concat( { log[14],"   ",EventName[14],[[<br></br>]] } )..table.concat( { log[15],"   ",EventName[15],[[<br></br>]] } )..[[<p align='left'><font size='12'> <J><a href="event:???">previous page</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],name,100,80,290,300,0x000000,0x0fff00,0.5,true)
  365.  
  366. end
  367.  
  368. if event=='???' then
  369.  
  370. ui.removeTextArea(ID,name)
  371. ui.addTextArea(60, [[<p align='center'><font size='18'> <J>MENU<br></br><font size='15'> <T><a href="event:??/????">Keyboard/Mouse Commands</a> <br></br> <a href="event:??????">Summon Objects</a> <br></br><a href="event:????">Clear Objects</a><br></br><a href="event:????">Chat Commands</a><br></br><a href="event:????">Mode Options</a> <br></br><a href="event:??????">Record Sheet</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],name,350,200,290,180,0x000000,0x0fff00,0.5,true)
  372.  
  373. end
  374.  
  375. if event=='????' then
  376.  
  377. ui.removeTextArea(ID,name)
  378. ui.addTextArea(60, [[<p align='center'><font size='20'> <J>Mode Options<br></br><font size='12'>Racing Mode<br></br><a href="event:RacingOn">ON</a>      <a href="event:RacingOff">OFF</a><br></br>Bootcamp Mode<br></br><a href="event:BootcampOn">NEXT</a>      <a href="event:BootcampOff">OFF</a><br></br>Shaman Mode<br></br><a href="event:ShamanOn">ON</a>      <a href="event:ShamanOff">OFF</a><br></br><a href="event:???">previous page</a><br></br><b><r><a href="event:close">close page</a></r></b></p>]],name,0,30,350,150,0x000000,0x0fff00,0.5,true)
  379.  
  380. end
  381.  
  382. if event=='RacingOn' then
  383.  
  384. racing = 1
  385. shaman = 0
  386. bootcamp = 0
  387. tfm.exec.disableAutoNewGame(true)
  388. tfm.exec.disableAutoShaman(true)
  389. tfm.exec.disableAutoTimeLeft(true)
  390. tfm.exec.disableAfkDeath(false)
  391. tfm.exec.newGame(Racing[math.random(#Racing)])
  392.  
  393. end
  394.  
  395. if event=='RacingOff' then
  396.  
  397. racing = 0
  398. tfm.exec.setGameTime(1)
  399. tfm.exec.disableAutoNewGame(false)
  400. tfm.exec.disableAutoShaman(true)
  401. tfm.exec.disableAutoTimeLeft(false)
  402. tfm.exec.disableAfkDeath(true)
  403.  
  404. end
  405.  
  406. if event=='BootcampOn' then
  407.  
  408. racing = 0
  409. shaman = 0
  410. bootcamp = 1
  411. tfm.exec.disableAutoNewGame(true)
  412. tfm.exec.disableAutoShaman(true)
  413. tfm.exec.disableAutoTimeLeft(true)
  414. tfm.exec.disableAfkDeath(true)
  415. tfm.exec.newGame(Bootcamp[math.random(#Bootcamp)])
  416.  
  417. end
  418.  
  419. if event=='BootcampOff' then
  420.  
  421. bootcamp = 0
  422. tfm.exec.setGameTime(1)
  423. tfm.exec.disableAutoNewGame(false)
  424. tfm.exec.disableAutoShaman(true)
  425. tfm.exec.disableAutoTimeLeft(false)
  426. tfm.exec.disableAfkDeath(true)
  427.  
  428. end
  429.  
  430. if event=='ShamanOn' then
  431.  
  432. racing = 0
  433. bootcamp = 0
  434. shaman = 1
  435. tfm.exec.disableAutoNewGame(true)
  436. tfm.exec.disableAutoShaman(false)
  437. tfm.exec.disableAutoTimeLeft(true)
  438. tfm.exec.disableAfkDeath(false)
  439. tfm.exec.newGame(Shaman[math.random(#Shaman)])
  440.  
  441. end
  442.  
  443. if event=='ShamanOff' then
  444.  
  445. shaman = 0
  446. tfm.exec.setGameTime(1)
  447. tfm.exec.disableAutoNewGame(false)
  448. tfm.exec.disableAutoShaman(true)
  449. tfm.exec.disableAutoTimeLeft(false)
  450. tfm.exec.disableAfkDeath(true)
  451.  
  452. end
  453.  
  454. if event=='????' then
  455.  
  456.           remove = {}
  457.           for i,o in pairs(tfm.get.room.objectList) do
  458.           table.insert(remove, i)
  459.           end
  460.           for _,n in pairs(remove) do
  461.           tfm.exec.removeObject(n)
  462.           end
  463.           table.insert(log,1,name)
  464.           table.insert(EventName,1,"Remove Objects")
  465.           end
  466.  
  467. if event=='Arrow' then
  468. tfm.exec.addShamanObject(0,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  469. d=0
  470. table.insert(log,1,name)
  471. table.insert(EventName,1,event)
  472. end
  473.  
  474.  
  475. if event=='Fish' then
  476. tfm.exec.addShamanObject(63,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  477. d=63
  478. table.insert(log,1,name)
  479. table.insert(EventName,1,event)
  480. end
  481.  
  482. if event=='Small Box' then
  483. tfm.exec.addShamanObject(1,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  484. d=1
  485. table.insert(log,1,name)
  486. table.insert(EventName,1,event)
  487. end
  488.  
  489. if event=='Large Box' then
  490. tfm.exec.addShamanObject(2,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  491. d=2
  492. table.insert(log,1,name)
  493. table.insert(EventName,1,event)
  494. end
  495.  
  496. if event=='Small Plank' then
  497. tfm.exec.addShamanObject(3,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  498. d=3
  499. table.insert(log,1,name)
  500. table.insert(EventName,1,event)
  501. end
  502.  
  503. if event=='Large Plank' then
  504. tfm.exec.addShamanObject(4,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  505. d=4
  506. table.insert(log,1,name)
  507. table.insert(EventName,1,event)
  508. end
  509.  
  510. if event=='Ball' then
  511. tfm.exec.addShamanObject(6,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  512. d=6
  513. table.insert(log,1,name)
  514. table.insert(EventName,1,event)
  515. end
  516.  
  517. if event=='Trampoline' then
  518. tfm.exec.addShamanObject(7,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  519. d=7
  520. table.insert(log,1,name)
  521. table.insert(EventName,1,event)
  522. end
  523.  
  524. if event=='Anvil' then
  525. tfm.exec.addShamanObject(10,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  526. d=10
  527. table.insert(log,1,name)
  528. table.insert(EventName,1,event)
  529. end
  530.  
  531. if event=='Bomb' then
  532. tfm.exec.addShamanObject(23,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  533. d=23
  534. table.insert(log,1,name)
  535. table.insert(EventName,1,event)
  536. end
  537.  
  538. if event=='Spirit' then
  539. tfm.exec.addShamanObject(24,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  540. d=24
  541. table.insert(log,1,name)
  542. table.insert(EventName,1,event)
  543. end
  544.  
  545. if event=='Balloon' then
  546. tfm.exec.addShamanObject(28,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  547. d=28
  548. table.insert(log,1,name)
  549. table.insert(EventName,1,event)
  550. end
  551.  
  552. if event=='Rune' then
  553. tfm.exec.addShamanObject(32,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  554. d=32
  555. table.insert(log,1,name)
  556. table.insert(EventName,1,event)
  557. end
  558.  
  559. if event=='??!' then
  560. tfm.exec.addShamanObject(33,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  561. d=33
  562. table.insert(log,1,name)
  563. table.insert(EventName,1,"Chicken")
  564. end
  565.  
  566. if event=='Valentines Arrow' then
  567. tfm.exec.addShamanObject(35,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  568. d=35
  569. table.insert(log,1,name)
  570. table.insert(EventName,1,event)
  571. end
  572.  
  573. if event=='Apple' then
  574. tfm.exec.addShamanObject(39,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  575. d=39
  576. table.insert(log,1,name)
  577. table.insert(EventName,1,event)
  578. end
  579.  
  580. if event=='Sheep' then
  581. tfm.exec.addShamanObject(40,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  582. d=40
  583. table.insert(log,1,name)
  584. table.insert(EventName,1,event)
  585. end
  586.  
  587. if event=='??' then
  588. tfm.exec.addShamanObject(45,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  589. d=45
  590. table.insert(log,1,name)
  591. table.insert(EventName,1,"Ice Plank")
  592. end
  593.  
  594. if event=='????' then
  595. tfm.exec.addShamanObject(46,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  596. d=46
  597. table.insert(log,1,name)
  598. table.insert(EventName,1,"Choco Plank")
  599. end
  600.  
  601. if event=='?' then
  602. tfm.exec.addShamanObject(57,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  603. d=57
  604. table.insert(log,1,name)
  605. table.insert(EventName,1,"Cloud")
  606. end
  607.  
  608. if event=='??' then
  609. tfm.exec.addShamanObject(59,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  610. d=59
  611. table.insert(log,1,name)
  612. table.insert(EventName,1,"Buble")
  613. end
  614.  
  615. if event=='?????' then
  616. tfm.exec.addShamanObject(61,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  617. d=61
  618. table.insert(log,1,name)
  619. table.insert(EventName,1,"Companion Crate")
  620. end
  621.  
  622. if event=='??' then
  623. tfm.exec.addShamanObject(65,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  624. d=65
  625. table.insert(log,1,name)
  626. table.insert(EventName,1,"Pufferfish")
  627. end
  628.  
  629. if event=='???' then
  630. tfm.exec.addShamanObject(67,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  631. d=67
  632. table.insert(log,1,name)
  633. table.insert(EventName,1,"Very Long Plank")
  634. end
  635.  
  636. if event=='???' then
  637. tfm.exec.addShamanObject(68,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  638. d=68
  639. table.insert(log,1,name)
  640. table.insert(EventName,1,"Triangle Box")
  641. end
  642.  
  643. if event=='S??' then
  644. tfm.exec.addShamanObject(69,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  645. d=69
  646. table.insert(log,1,name)
  647. table.insert(EventName,1,"S-Shaped Plank")
  648. end
  649.  
  650. if event=='??' then
  651. tfm.exec.addShamanObject(85,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  652. d=85
  653. table.insert(log,1,name)
  654. table.insert(EventName,1,"Rock")
  655. end
  656.  
  657. if event=='??' then
  658. tfm.exec.addShamanObject(89,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  659. d=89
  660. table.insert(log,1,name)
  661. table.insert(EventName,1,"Pumpkin")
  662. end
  663.  
  664. if event=='??' then
  665. tfm.exec.addShamanObject(90,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  666. d=90
  667. table.insert(log,1,name)
  668. table.insert(EventName,1,"Tombstone")
  669. end
  670.  
  671. if event=='?????' then
  672. tfm.exec.addShamanObject(101,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  673. d=101
  674. table.insert(log,1,name)
  675. table.insert(EventName,1,"Small Heart Box")
  676. end
  677.  
  678. if event=='?????' then
  679. tfm.exec.addShamanObject(103,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  680. d=103
  681. table.insert(log,1,name)
  682. table.insert(EventName,1,"Small Christmas Box")
  683. end
  684.  
  685. if event=='?????' then
  686. tfm.exec.addShamanObject(104,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  687. d=104
  688. table.insert(log,1,name)
  689. table.insert(EventName,1,"Small Cake Box")
  690. end
  691.  
  692. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement