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