×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Rapid Racing
[Script] Rapid Racing
Weth
« Citoyen »
1552224540000
    • Weth#9837
    • Profil
    • Derniers messages
    • Tribu
#1
  1
Dear visitor!

Do you like to compete with your partner, but are you tired of calculating your points?
Here is the SOLUTION!
My Rapid Racing program just has to enjoy the game because the points will be counted!

Important information:
  • Minimum 2 mice to run! (otherwise not perfect)
  • Created by: Weth#9837

Have fun! ˘-˘


Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
-- Created by: Weth#9847
-- Have fun! ;)
maps = {1718723,344865,323115,405075,2455250,3683600,169892,230741,282434,313091,261078,2682985,6351269,3693822,1687268,3156569,6180353,5028454,732880,5848412,4645670,1663415,1611631,3778128,4612295,2283921,506215,363638,213697,789128,350251,7465839,694900,7101000,1307956,367520,317754,6665146,1216253,190026,280896,1728943,1975684,3730656,238380,436107,219548,3611702,185774,7059747,339272,365652,1368222,5106003,398081,195720,1221661,6087537,444830,6114281,1659639,3712183,7025409,1694602,339418,3684457,223986,269337,117548,1378209,1749434,247818,1862823,1845710,499687,373511,2180790,120152,5699298,340069,6036604,424786,6456247,344361,441598,1513407,6070140,234959,1144548,3684784,3778389,4088129,3700684,1330800,407488,5452432,905496,4000001,1654841,156847,6326640,196468,5846953,7200001,620996,425349,191716,282101,232699,7417713,6835898,3676141,230510,309169,381287,430736,317779,3556405,7240530,242708,1614563,245223,583056,5710586,6351619,7470363,237321,235034,229830,166705,348479,1759287,749102,3468601,1162611,330441,1449069,1194523,7125505,425771,393851,1601492,1982476,2918866,7543645,1954898,6276662,186604,429262,1373748,982242,3845214,1608259,586688,397296,7526673,359521,504951,1923785,238791,412211,2276526,410565,284299,2700958,5272513,260547}
time = 119
round = 1
winner = {}

function Main()
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.disableMortCommand(true)
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setGameTime(62)
for index,name in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(index,0,false)
end
ui.addTextArea(2,"<p align='center'><font color='#FFFFFF' size='18' face='Comic Sans MS'><a href='event:info'>Informations",name,296,28,238,25,0x020305,0x000000,0.6,true)
tfm.exec.setUIShamanName("Round : <b>"..round.."</b>/5")
end

function eventPlayerWon(playerName)
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setGameTime(62)
tfm.exec.setPlayerScore(playerName,4,true)
time = 119
round = round +1
tfm.exec.setUIShamanName("Round : <b>"..round.."</b>/5")
ui.removeTextArea(0,nil)
ui.removeTextArea(1,nil)
end

function eventPlayerDied(playerName)
tfm.exec.respawnPlayer(playerName)
end

function eventTextAreaCallback(id,name,link)
if link == "info" then
ui.addTextArea(3,"<p align='center'><font color='#FFFFFF' size='20' face='Comic Sans MS'><a href='event:hu'>#HU</a> <a href='event:en'>#EN</a>\n<font size='9'>_________________________________\n\n",name,296,62,238,nil,0x020305,0x000000,0.6,true)
ui.addTextArea(2,"<p align='center'><font color='#FFFFFF' size='18' face='Comic Sans MS'><a href='event:x'>x",name,296,28,238,25,0x020305,0x000000,0.6,true)
end
if link == "x" then
ui.addTextArea(2,"<p align='center'><font color='#FFFFFF' size='18' face='Comic Sans MS'><a href='event:info'>Informations",name,296,28,238,25,0x020305,0x000000,0.6,true)
ui.removeTextArea(3,name)
end
if link == "hu" then
ui.addTextArea(3,"<p align='center'><font color='#FFFFFF' size='20' face='Comic Sans MS'><a href='event:hu'>#HU</a> <a href='event:en'>#EN</a>\n<font size='9'>_________________________________\n\n<font size='15'><p align='left'>Készítette: <font size='20'>W<font size='16'>eth<font size='12'>#9837\n<p align='right'><font size='11'>Verzió: 1.0",name,296,62,238,nil,0x020305,0x000000,0.6,true)
end
if link == "en" then
ui.addTextArea(3,"<p align='center'><font color='#FFFFFF' size='20' face='Comic Sans MS'><a href='event:hu'>#HU</a> <a href='event:en'>#EN</a>\n<font size='9'>_________________________________\n\n<font size='15'><p align='left'>Created by: <font size='20'>W<font size='16'>eth<font size='12'>#9837\n<p align='right'><font size='11'>Version: 1.0",name,296,62,238,nil,0x020305,0x000000,0.6,true)
end
end

function eventLoop()
time = time -1
if time == 0 then
time = 119
round = round +1
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setGameTime(62)
tfm.exec.setUIShamanName("Round : <b>"..round.."</b>/5")
ui.removeTextArea(0,nil)
ui.removeTextArea(1,nil)
end
if round == 6 then
time = 18
tfm.exec.setGameTime(10)
ui.addTextArea(0,"",name,-1499,-1500,3000,3000,0x000001,0x000001,1,true)
tfm.exec.setUIShamanName("Shortly...")
for index,name in pairs(tfm.get.room.playerList) do
playerPoint = tfm.get.room.playerList[index].score
winner[index] = playerPoint
end
round = 0
local key = next(winner)
local max = winner[key]
for k, v in pairs(winner) do
if winner[k] > max then
key, max = k, v
end
end
winning = key, max
ui.addTextArea(1,"<font color='#DCE620' size='20'><B>The winner is : <font color='#06F2FF'>"..winning.."</B>",nil,22,38,nil,nil,nil,nil,0.5,true)
winner = {}
for index,name in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(index,0,false)
end
end
end

Main()
Soyloquisha
« Citoyen »
1552498020000
    • Soyloquisha#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
very cool
Weth
« Citoyen »
1552822560000
    • Weth#9837
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Soyloquisha a dit :
very cool

Thanks :')
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Rapid Racing
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27