SHOW:
|
|
- or go back to the newest paste.
| 1 | function eventNewGame() | |
| 2 | ui.addPopup(4, 0, "<font size='13.5'>New to this minigame? <U>Type !help.</U></font>",p, 13, 277, 100) | |
| 3 | system.disableChatCommandDisplay("exit",true)
| |
| 4 | system.disableChatCommandDisplay("refresh",true)
| |
| 5 | tfm.exec.setUIMapName("Map - <N><U>"..tfm.get.room.currentMap.."</N></U>")
| |
| 6 | ui.addPopup(3, 0, "<font size='13.5'>Loaded map - "..tfm.get.room.currentMap..". ",p, 13, 277, 100) | |
| 7 | end | |
| 8 | function eventChatCommand(p,c) | |
| 9 | if c=="cheese" then | |
| 10 | tfm.exec.giveCheese(p) | |
| 11 | elseif c=="win" then | |
| 12 | tfm.exec.giveCheese(p) | |
| 13 | tfm.exec.playerVictory(p) | |
| 14 | elseif c=="death" then | |
| 15 | tfm.exec.killPlayer(p) | |
| 16 | elseif c=="respawn" then | |
| 17 | tfm.exec.killPlayer(p) | |
| 18 | tfm.exec.respawnPlayer(p) | |
| 19 | elseif c=="vamp" or c=="vampire" then | |
| 20 | tfm.exec.setVampirePlayer(p) | |
| 21 | elseif c=="help" then | |
| 22 | ui.addPopup(1, 0, "<font size='13.5'>Welcome to Tribes : The minigame by Tailtong! Command list : !cheese, !win, !death, !respawn, !vamp/!vampire, !tfmVer, !apiVer, !sham/!shaman, !1-18, !neige/!snow.</font>",p, 13, 30, 200)--!refresh and !exit are not shown here for reasons | |
| 23 | elseif c=="refresh" then | |
| 24 | tfm.exec.newGame() | |
| 25 | elseif c=="tfmVer" then | |
| 26 | ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion,p, 13, 277, 100) | |
| 27 | elseif c=="apiVer" then | |
| 28 | ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion,p, 13, 277, 100) | |
| 29 | elseif c=="shaman" or c=="sham" then | |
| 30 | tfm.exec.setShaman(p) | |
| 31 | tfm.exec.setUIShamanName(""..p.."")
| |
| 32 | elseif c=="1" then | |
| 33 | tfm.exec.addShamanObject(0, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 34 | elseif c=="2" then | |
| 35 | tfm.exec.addShamanObject(6, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 36 | elseif c=="3" then | |
| 37 | tfm.exec.addShamanObject(28, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 38 | elseif c=="4" then | |
| 39 | tfm.exec.addShamanObject(32, math.random(0,800), 200, math.random(0,360), 1, 1, true) | |
| 40 | elseif c=="5" then | |
| 41 | tfm.exec.addShamanObject(1, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 42 | elseif c=="6" then | |
| 43 | tfm.exec.addShamanObject(2, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 44 | elseif c=="7" then | |
| 45 | tfm.exec.addShamanObject(10, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 46 | elseif c=="8" then | |
| 47 | tfm.exec.addShamanObject(3, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 48 | elseif c=="9" then | |
| 49 | tfm.exec.addShamanObject(4, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 50 | elseif c=="10" then | |
| 51 | tfm.exec.addShamanObject(7, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 52 | elseif c=="11" then | |
| 53 | tfm.exec.addShamanObject(54, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 54 | elseif c=="12" then | |
| 55 | tfm.exec.addShamanObject(59, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 56 | elseif c=="13" then | |
| 57 | tfm.exec.addShamanObject(23, math.random(0,800), 200, math.random(0,360), 3, 3, false) | |
| 58 | elseif c=="14" then | |
| 59 | tfm.exec.addShamanObject(19, math.random(0,800), 200, math.random(0,360), math.random(0.1,1), math.random(0.1,1), false) | |
| 60 | elseif c=="15" then | |
| 61 | tfm.exec.addShamanObject(34, math.random(0,800), 200, math.random(0,360), math.random(1,10), math.random(1,10), false) | |
| 62 | elseif c=="16" then | |
| 63 | tfm.exec.addShamanObject(35, math.random(0,800), 200, math.random(0,360), math.random(1,10), math.random(1,10), false) | |
| 64 | elseif c=="17" then | |
| 65 | tfm.exec.addShamanObject(26, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 66 | elseif c=="18" then | |
| 67 | tfm.exec.addShamanObject(27, math.random(0,800), 200, math.random(0,360), 1, 1, false) | |
| 68 | elseif c=="neige" or c=="snow" then | |
| 69 | tfm.exec.snow() | |
| 70 | elseif c=="exit" then | |
| 71 | system.exit() | |
| 72 | end | |
| 73 | end | |
| 74 | function eventNewPlayer(p) | |
| 75 | tfm.exec.respawnPlayer(p) | |
| 76 | end | |
| 77 | for p,player in pairs(tfm.get.room.playerList) do | |
| 78 | system.bindMouse(p,true) | |
| 79 | end | |
| 80 | function eventMouse(p,x,y) | |
| 81 | tfm.exec.movePlayer(p, x, y, false, 1, 1, true) | |
| 82 | end |