View difference between Paste ID: FLTNLYj0 and r1vNkqae
SHOW: | | - or go back to the newest paste.
1
function eventNewGame()
2-
   tfm.exec.setUIMapName("Map - <N><U>".. tfm.get.room.currentMap.. "</U>")
2+
   tfm.exec.setUIMapp("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)
3+
   ui.addPopup(3, 0, "<font size='13.5' >Loaded map ".. tfm.get.room.currentMap.. ".", (p), 13, 277, 100)
4
end
5-
function eventChatCommand(name,command)
5+
function eventChatc(p,c)
6-
   if command=="cheese" then
6+
   if c=="cheese" then
7-
      tfm.exec.giveCheese(name)
7+
      tfm.exec.giveCheese(p)
8-
   elseif command=="win" then
8+
   elseif c=="win" then
9-
      tfm.exec.giveCheese(name)
9+
      tfm.exec.giveCheese(p)
10-
      tfm.exec.playerVictory(name)
10+
      tfm.exec.playerVictory(p)
11-
   elseif command=="death" then
11+
   elseif c=="death" then
12-
      tfm.exec.killPlayer(name)
12+
      tfm.exec.killPlayer(p)
13-
   elseif command=="respawn" then
13+
   elseif c=="respawn" then
14-
      tfm.exec.killPlayer(name)
14+
      tfm.exec.killPlayer(p)
15-
      tfm.exec.respawnPlayer(name)
15+
      tfm.exec.respawnPlayer(p)
16-
   elseif command=="vamp" or command=="vampire" then
16+
   elseif c=="vamp" or c=="vampire" then
17-
      tfm.exec.setVampirePlayer(name)
17+
      tfm.exec.setVampirePlayer(p)
18-
   elseif command=="help" then
18+
   elseif c=="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
19+
      ui.addPopup(1, 0, "<font size='13.5' >Welcome to Tribes : The minigame by Tailtong! c list : !cheese, !win, !death, !respawn, !vamp/!vampire, !tfmVer, !apiVer, !sham/!shaman, !1-14.</font>", (p), 13, 30, 200)--!refresh is not shown here for reasons
20-
   elseif command=="refresh" then
20+
   elseif c=="refresh" then
21
      tfm.exec.newGame()
22-
   elseif command=="tfmVer" then
22+
   elseif c=="tfmVer" then
23-
      ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion, (name), 13, 277, 100)
23+
      ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion, (p), 13, 277, 100)
24-
   elseif command=="apiVer" then
24+
   elseif c=="apiVer" then
25-
      ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion, (name), 13, 277, 100)
25+
      ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion, (p), 13, 277, 100)
26-
   elseif command=="shaman" or command=="sham" then
26+
   elseif c=="shaman" or c=="sham" then
27-
      tfm.exec.setShaman(name)
27+
      tfm.exec.setShaman(p)
28-
      tfm.exec.setUIShamanName("<N>".. (name).. "</N>")
28+
      tfm.exec.setUIShamanp("<N>".. (p).. "</N>")
29-
   elseif command=="1" then
29+
   elseif c=="1" then
30
      tfm.exec.addShamanObject(0, 400, 200, 0, 1, 1, false)
31-
   elseif command=="2" then
31+
   elseif c=="2" then
32
      tfm.exec.addShamanObject(6, 400, 200, 0, 1, 1, false)
33-
   elseif command=="3" then
33+
   elseif c=="3" then
34
      tfm.exec.addShamanObject(28, 400, 200, 0, 1, 1, false)
35-
   elseif command=="4" then
35+
   elseif c=="4" then
36
      tfm.exec.addShamanObject(32, 400, 200, 0, 1, 1, false)
37-
   elseif command=="5" then
37+
   elseif c=="5" then
38
      tfm.exec.addShamanObject(1, 400, 200, 0, 1, 1, false)
39-
   elseif command=="6" then
39+
   elseif c=="6" then
40
      tfm.exec.addShamanObject(2, 400, 200, 0, 1, 1, false)
41-
   elseif command=="7" then
41+
   elseif c=="7" then
42
      tfm.exec.addShamanObject(10, 400, 200, 0, 1, 1, false)
43-
   elseif command=="8" then
43+
   elseif c=="8" then
44
      tfm.exec.addShamanObject(3, 400, 200, 0, 1, 1, false)
45-
   elseif command=="9" then
45+
   elseif c=="9" then
46
      tfm.exec.addShamanObject(4, 400, 200, 0, 1, 1, false)
47-
   elseif command=="10" then
47+
   elseif c=="10" then
48
      tfm.exec.addShamanObject(7, 400, 200, 0, 1, 1, false)
49-
   elseif command=="11" then
49+
   elseif c=="11" then
50
      tfm.exec.addShamanObject(54, 400, 200, 0, 1, 1, false)
51-
   elseif command=="12" then
51+
   elseif c=="12" then
52
      tfm.exec.addShamanObject(59, 400, 200, 0, 1, 1, false)
53-
   elseif command=="13" then
53+
   elseif c=="13" then
54
      tfm.exec.addShamanObject(23, 400, 200, 0, 1, 1, false)
55-
   elseif command=="14" then
55+
   elseif c=="14" then
56
      tfm.exec.addShamanObject(19, 400, 200, -90, 1, 1, false)
57-
   elseif command=="15" then
57+
   elseif c=="15" then
58
      tfm.exec.addShamanObject(34, 400, 200, -90, 1, 1, false)
59-
   elseif command=="neige" or command=="snow" then
59+
   elseif c=="neige" or c=="snow" then
60
      tfm.exec.snow()
61-
   elseif command=="exit" then
61+
   elseif c=="exit" then
62
      system.exit()
63
   end
64
end
65-
function eventNewPlayer(name)
65+
function eventNewPlayer(p)
66-
   tfm.exec.respawnPlayer(name)
66+
   tfm.exec.respawnPlayer(p)
67-
   ui.addPopup(4, 0, "<font size='13.5' >New to this minigame? <U>Type !help.</U></font>", (name), 13, 277, 100)
67+
   ui.addPopup(4, 0, "<font size='13.5' >New to this minigame? <U>Type !help.</U></font>", (p), 13, 277, 100)
68
end