Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventNewGame()
- tfm.exec.setUIMapName("Map - <N><U>".. tfm.get.room.currentMap.. "</U>")
- ui.addPopup(3, 0, "<font size='13.5' >Loaded map ".. tfm.get.room.currentMap.. ".", (name), 13, 277, 100)
- end
- function eventChatCommand(name,command)
- if command=="cheese" then
- tfm.exec.giveCheese(name)
- elseif command=="win" then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- elseif command=="death" then
- tfm.exec.killPlayer(name)
- elseif command=="respawn" then
- tfm.exec.killPlayer(name)
- tfm.exec.respawnPlayer(name)
- elseif command=="vamp" or command=="vampire" then
- tfm.exec.setVampirePlayer(name)
- elseif command=="help" then
- 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-14.</font>", (name), 13, 30, 200)--!refresh is not shown here for reasons
- elseif command=="refresh" then
- tfm.exec.newGame()
- elseif command=="tfmVer" then
- ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion, (name), 13, 277, 100)
- elseif command=="apiVer" then
- ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion, (name), 13, 277, 100)
- elseif command=="shaman" or command=="sham" then
- tfm.exec.setShaman(name)
- tfm.exec.setUIShamanName("<N>".. (name).. "</N>")
- elseif command=="1" then
- tfm.exec.addShamanObject(0, 400, 200, 0, 1, 1, false)
- elseif command=="2" then
- tfm.exec.addShamanObject(6, 400, 200, 0, 1, 1, false)
- elseif command=="3" then
- tfm.exec.addShamanObject(28, 400, 200, 0, 1, 1, false)
- elseif command=="4" then
- tfm.exec.addShamanObject(32, 400, 200, 0, 1, 1, false)
- elseif command=="5" then
- tfm.exec.addShamanObject(1, 400, 200, 0, 1, 1, false)
- elseif command=="6" then
- tfm.exec.addShamanObject(2, 400, 200, 0, 1, 1, false)
- elseif command=="7" then
- tfm.exec.addShamanObject(10, 400, 200, 0, 1, 1, false)
- elseif command=="8" then
- tfm.exec.addShamanObject(3, 400, 200, 0, 1, 1, false)
- elseif command=="9" then
- tfm.exec.addShamanObject(4, 400, 200, 0, 1, 1, false)
- elseif command=="10" then
- tfm.exec.addShamanObject(7, 400, 200, 0, 1, 1, false)
- elseif command=="11" then
- tfm.exec.addShamanObject(54, 400, 200, 0, 1, 1, false)
- elseif command=="12" then
- tfm.exec.addShamanObject(59, 400, 200, 0, 1, 1, false)
- elseif command=="13" then
- tfm.exec.addShamanObject(23, 400, 200, 0, 1, 1, false)
- elseif command=="14" then
- tfm.exec.addShamanObject(19, 400, 200, -90, 1, 1, false)
- elseif command=="15" then
- tfm.exec.addShamanObject(34, 400, 200, -90, 1, 1, false)
- elseif command=="neige" or command=="snow" then
- tfm.exec.snow()
- elseif command=="exit" then
- system.exit()
- end
- end
- function eventNewPlayer(name)
- tfm.exec.respawnPlayer(name)
- ui.addPopup(4, 0, "<font size='13.5' >New to this minigame? <U>Type !help.</U></font>", (name), 13, 277, 100)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement