×

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 Requests
« ‹ 141 / 160 › »
Script Requests
Koruto
« Citoyen »
1521123300000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#2801
  0
To tell and reveal positive and over are the same guy and please stop doing the little drama to make you look good.

Ask decent Q's only.
Overjoy06
« Citoyen »
1521346620000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2802
  0
Koruto a dit :
To tell and reveal positive and over are the same guy and please stop doing the little drama to make you look good.

Ask decent Q's only.

It's my sister asking in the game she's too lazy to talk in real life. Please kill me
Overjoy06
« Citoyen »
1521944760000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2803
  0
what's wrong with this lua code :
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
function eventTextAreaCallback(id,n,ev)
if ev=="click1" then
ui.addTextArea(2,"<p align='center'><font color='#00ffff'><font size='13px'><a href='event:click2'>The Miracle</a></font></p>",nil,400,100,100,20, 0x000000, 0x00ffff,1,true)elseif ev=="click2" then
ui.addTextArea(3,"<p align='center'><font color='#ffff00'><font size='13px'><a href='event:close'>Spirits</a></font></p>",nil,600,100,100,20, 0x000000, 0x00ffff,1,true)
elseif ev=="close" then
or i=1,3 do ui.removeTextArea(i) endend
end

ui.addTextArea(1,"<p align='center'><font color='#ff0000'><font size='13px'><a href='event:click1'>Welcome to</a></font></p>",nil,500,50,100,20, 0x000000, 0xff0000,1,true)
function eventChatCommand(playerName,message)
ui.addPopup(100,0,""..playerName..": "..message,nil,180,200,200,true)
end
Bolodefchoco
« Sénateur »
1521948660000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2805
  0
Overjoy06 a dit :
what's wrong with this lua code :

Line 6: "or" should be "for" and "endend" should be "end end"
Overjoy06
« Citoyen »
1521960600000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2806
  0
thanks
Overjoy06
« Citoyen »
1522242720000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2807
  0
I need a script that can time how fast you are from spawning to winning. I need it to be atleast at the nearest decisecond preferably to the nearest centisecond.

Also instead of from win time make it tell you the time from spawn to reaching a certain place without winning. So from the spawning point once your mouse runs past the x = 500px mark it will say how fast u are to get to 500px from spawning
Dramacorn
« Consul »
1522317240000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#2808
  3
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?
Bolodefchoco
« Sénateur »
1522323360000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2809
  0
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese
Dramacorn
« Consul »
1522326600000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#2810
  3
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)
Massi
« Consul »
1522333620000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2811
  0
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

Fixed ^-^ there was "then" instead of "do" in "for"
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie do
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese do
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

Dernière modification le 1522333680000
Dramacorn
« Consul »
1522334940000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#2812
  3
Unlocker001 a dit :
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

Fixed ^-^ there was "then" instead of "do" in "for"
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie do
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese do
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

I probably forgot to say, I want team B to get the cheese and A team to die when, for example, team B destroys the ground of the team A (eg the team A has a tower made of stone and team B destroys it)
Bolodefchoco
« Sénateur »
1522342440000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2813
  0
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

oh damn, i was in rush >_> sorry

As Unlocker said, it's `do`, not `then` ^_^


Dramacorn a dit :
Unlocker001 a dit :
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

Fixed ^-^ there was "then" instead of "do" in "for"
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie do
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese do
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

I probably forgot to say, I want team B to get the cheese and A team to die when, for example, team B destroys the ground of the team A (eg the team A has a tower made of stone and team B destroys it)

You already have a sketch. Try to develop it yourself :P This is really important for learning purposes!
Koruto
« Citoyen »
1522386720000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#2814
  0
Can I get the script which is in basket ball . The starting part where u click join and time start , then teams are made that one can you create?
Bolodefchoco
« Sénateur »
1522414920000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2815
  0
Koruto a dit :
Can I get the script which is in basket ball . The starting part where u click join and time start , then teams are made that one can you create?

#basketball
Koruto
« Citoyen »
1522416300000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#2816
  0
Can you make that script .
Dramacorn
« Consul »
1522430340000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#2817
  3
Bolodefchoco a dit :
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

oh damn, i was in rush >_> sorry

As Unlocker said, it's `do`, not `then` ^_^


Dramacorn a dit :
Unlocker001 a dit :
Dramacorn a dit :
Bolodefchoco a dit :
Dramacorn a dit :
Is there a script in which, for example, if you give a field to a team, that team dies and the opposing team wins and gets cheese?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie then
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese then
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

• [15:29] # [*Drama's tribe] Init Error : [string "Regeleroyal#0000.lua"]:5: 'do' expected
• [15:29] # [*Drama's tribe] [Regeleroyal#0000] Lua script loaded in 2 ms (4000 max)

Fixed ^-^ there was "then" instead of "do" in "for"
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
teamA = {"name", "name"}
teamB = {"name", "name"}

doSomething = function(toDie, toGetCheese)
for k, v in next, toDie do
tfm.exec.killPlayer(v)
end
for k, v in next, toGetCheese do
tfm.exec.giveCheese(v)
end
end

doSomething(teamA, teamB) -- A dies, B gets cheese

I probably forgot to say, I want team B to get the cheese and A team to die when, for example, team B destroys the ground of the team A (eg the team A has a tower made of stone and team B destroys it)

You already have a sketch. Try to develop it yourself :P This is really important for learning purposes!

But i need for a personal project:(
Vekout
« Citoyen »
1522479720000
    • Vekout#0000
    • Profil
    • Derniers messages
    • Tribu
#2818
  0
Hey guys!

I need a textArea that simulates being a cheese, when my mouse "touch the textArea" give me the cheese. Please<3
Vekout
« Citoyen »
1522479840000
    • Vekout#0000
    • Profil
    • Derniers messages
    • Tribu
#2819
  0
Vekout a dit :
Hey guys!

I need a textArea that simulates being a cheese, when my mouse "touch the textArea" give me the cheese. Please<3

When I say "touch", I don't mean to click, I mean, the exact coordinates of textarea
Koruto
« Citoyen »
1522482960000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#2820
  0
Code Lua

1
2
3
function eventTextAreaCallback(textAreaID, playerName, callback)
tfm.exec.giveCheese("playerName")
end

Try this
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 141 / 160 › »
© Atelier801 2018

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

Version 1.27