epicshawty

Tribes: The Minigame (original by Tailtong)

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