Advertisement
Guest User

Tribes : The minigame

a guest
Sep 28th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.10 KB | None | 0 0
  1. function eventNewGame()
  2.    tfm.exec.setUIMapName("Map - <N><U>".. tfm.get.room.currentMap.. "</U>")
  3.    ui.addPopup(3, 0, "<font size='13.5' >Loaded map ".. tfm.get.room.currentMap.. ".", (name), 13, 277, 100)
  4. end
  5. function eventChatCommand(name,command)
  6.    if command=="cheese" then
  7.       tfm.exec.giveCheese(name)
  8.    elseif command=="win" then
  9.       tfm.exec.giveCheese(name)
  10.       tfm.exec.playerVictory(name)
  11.    elseif command=="death" then
  12.       tfm.exec.killPlayer(name)
  13.    elseif command=="respawn" then
  14.       tfm.exec.killPlayer(name)
  15.       tfm.exec.respawnPlayer(name)
  16.    elseif command=="vamp" or command=="vampire" then
  17.       tfm.exec.setVampirePlayer(name)
  18.    elseif command=="help" then
  19.       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
  20.    elseif command=="refresh" then
  21.       tfm.exec.newGame()
  22.    elseif command=="tfmVer" then
  23.       ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion, (name), 13, 277, 100)
  24.    elseif command=="apiVer" then
  25.       ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion, (name), 13, 277, 100)
  26.    elseif command=="shaman" or command=="sham" then
  27.       tfm.exec.setShaman(name)
  28.       tfm.exec.setUIShamanName("<N>".. (name).. "</N>")
  29.    elseif command=="1" then
  30.       tfm.exec.addShamanObject(0, 400, 200, 0, 1, 1, false)
  31.    elseif command=="2" then
  32.       tfm.exec.addShamanObject(6, 400, 200, 0, 1, 1, false)
  33.    elseif command=="3" then
  34.       tfm.exec.addShamanObject(28, 400, 200, 0, 1, 1, false)
  35.    elseif command=="4" then
  36.       tfm.exec.addShamanObject(32, 400, 200, 0, 1, 1, false)
  37.    elseif command=="5" then
  38.       tfm.exec.addShamanObject(1, 400, 200, 0, 1, 1, false)
  39.    elseif command=="6" then
  40.       tfm.exec.addShamanObject(2, 400, 200, 0, 1, 1, false)
  41.    elseif command=="7" then
  42.       tfm.exec.addShamanObject(10, 400, 200, 0, 1, 1, false)
  43.    elseif command=="8" then
  44.       tfm.exec.addShamanObject(3, 400, 200, 0, 1, 1, false)
  45.    elseif command=="9" then
  46.       tfm.exec.addShamanObject(4, 400, 200, 0, 1, 1, false)
  47.    elseif command=="10" then
  48.       tfm.exec.addShamanObject(7, 400, 200, 0, 1, 1, false)
  49.    elseif command=="11" then
  50.       tfm.exec.addShamanObject(54, 400, 200, 0, 1, 1, false)
  51.    elseif command=="12" then
  52.       tfm.exec.addShamanObject(59, 400, 200, 0, 1, 1, false)
  53.    elseif command=="13" then
  54.       tfm.exec.addShamanObject(23, 400, 200, 0, 1, 1, false)
  55.    elseif command=="14" then
  56.       tfm.exec.addShamanObject(19, 400, 200, -90, 1, 1, false)
  57.    elseif command=="15" then
  58.       tfm.exec.addShamanObject(34, 400, 200, -90, 1, 1, false)
  59.    elseif command=="neige" or command=="snow" then
  60.       tfm.exec.snow()
  61.    elseif command=="exit" then
  62.       system.exit()
  63.    end
  64. end
  65. function eventNewPlayer(name)
  66.    tfm.exec.respawnPlayer(name)
  67.    ui.addPopup(4, 0, "<font size='13.5' >New to this minigame? <U>Type !help.</U></font>", (name), 13, 277, 100)
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement