×

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
« ‹ 153 / 160 › »
Script Requests
Dagaker
« Censeur »
1549708920000
    • Dagaker#3257
    • Profil
    • Derniers messages
#3041
  0
I need a script that will allow me to spawn a ground in size that can go trough map.
Overjoy06
« Citoyen »
1550229060000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3042
  0
damn its been 6 days and nobody answered my question please help
Bolodefchoco
« Sénateur »
1550241840000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3043
  0
Overjoy06 a dit :
if t==60 then
i dont get how that code works. I've tried to test it but it doesnt work like it was supposed to be in my head

if the variable t is equals to 60 it executes the chunk inside the if
Overjoy06
« Citoyen »
1550283600000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3044
  0
Bolodefchoco a dit :
Overjoy06 a dit :
if t==60 then
i dont get how that code works. I've tried to test it but it doesnt work like it was supposed to be in my head

if the variable t is equals to 60 it executes the chunk inside the if

Do you need a different function for it or its just how it works
Bolodefchoco
« Sénateur »
1550284680000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3045
  0
Overjoy06 a dit :
Bolodefchoco a dit :
Overjoy06 a dit :
if t==60 then
i dont get how that code works. I've tried to test it but it doesnt work like it was supposed to be in my head

if the variable t is equals to 60 it executes the chunk inside the if

Do you need a different function for it or its just how it works

I don't know what you want lol
Defkyy
« Citoyen »
1550296980000
    • Defkyy#0000
    • Profil
    • Derniers messages
    • Tribu
#3046
  0
How can i update a textArea every 5 seconds? and then end it at TextArea 10
Bolodefchoco
« Sénateur »
1550319900000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3047
  0
Defkyy a dit :
How can i update a textArea every 5 seconds? and then end it at TextArea 10

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
local timer, times = 0, 0
eventLoop = function()
if timer < 0 then return end

if timer % 5 == 0 then
ui.addTextArea(0, times, nil)
times = times + 1
if times >= 11 then
timer = -1
return
end
end
timer = timer + .5
end
Aplejacek
« Citoyen »
1550332320000
    • Aplejacek#0000
    • Profil
    • Derniers messages
    • Tribu
#3048
  0
I'm asking for script
  • After writing !tp [player nickname] it would teleport player in clicked place
  • After writing !size [number] [player nickname] (or [player nickname] [number]) it would change size of player
  • After writing !colornick [colour code] [player nickname] (or [player nickname] [colour code]) it would change colour of player's nickname
  • That only people set on script could use these commands (if number of them is needed then 4)

  • It would be best if you wouldn't had to write #nuber of player but if this is needed then its ok. Thanks !

    Sorry for my broken english :c
Bolodefchoco
« Sénateur »
1550332980000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3049
  2
Aplejacek a dit :
I'm asking for script
  • After writing !tp [player nickname] it would teleport player in clicked place
  • After writing !size [number] [player nickname] (or [player nickname] [number]) it would change size of player
  • After writing !colornick [colour code] [player nickname] (or [player nickname] [colour code]) it would change colour of player's nickname
  • That only people set on script could use these commands (if number of them is needed then 4)

  • It would be best if you wouldn't had to write #nuber of player but if this is needed then its ok. Thanks !

    Sorry for my broken english :c

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
local admins = {
["Name#0000"] = true,
["Name#0000"] = true,
["Name#0000"] = true,
["Name#0000"] = true
}

local admData = { }
eventNewPlayer = function(n)
if not admins[n] then return end
admData[n] = {
tp = nil
}
system.bindMouse(n, true)
end
for n in next, tfm.get.room.playerList do eventNewPlayer(n) end

eventChatCommand = function(n, c)
if admins[n] then
local p, co = { }, 0
for a in c:gmatch("%S+") do
co = co + 1
p[co] = tonumber(a) or a
end

if p[1] == "tp" then
admData[n].tp = (p[2] and p[2]:lower():gsub("%a", string.upper, 1) or n)
elseif p[1] == "size" then
tfm.exec.changePlayerSize((p[3] or n), (p[2] or 1))
elseif p[1] == "colornick" then
tfm.exec.setNameColor((p[3] or n), (p[2] or -1))
end

end
end

eventMouse = function(n, x, y)
if not admData[n].tp then return end
tfm.exec.movePlayer(admData[n].tp, x, y)
admData[n].tp = nil
end

I didn't test, but should work
Aplejacek
« Citoyen »
1550411820000
    • Aplejacek#0000
    • Profil
    • Derniers messages
    • Tribu
#3050
  0
Bolodefchoco a dit :
Aplejacek a dit :
I'm asking for script
  • After writing !tp [player nickname] it would teleport player in clicked place
  • After writing !size [number] [player nickname] (or [player nickname] [number]) it would change size of player
  • After writing !colornick [colour code] [player nickname] (or [player nickname] [colour code]) it would change colour of player's nickname
  • That only people set on script could use these commands (if number of them is needed then 4)

  • It would be best if you wouldn't had to write #nuber of player but if this is needed then its ok. Thanks !

    Sorry for my broken english :c

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
local admins = {
["Name#0000"] = true,
["Name#0000"] = true,
["Name#0000"] = true,
["Name#0000"] = true
}

local admData = { }
eventNewPlayer = function(n)
if not admins[n] then return end
admData[n] = {
tp = nil
}
system.bindMouse(n, true)
end
for n in next, tfm.get.room.playerList do eventNewPlayer(n) end

eventChatCommand = function(n, c)
if admins[n] then
local p, co = { }, 0
for a in c:gmatch("%S+") do
co = co + 1
p[co] = tonumber(a) or a
end

if p[1] == "tp" then
admData[n].tp = (p[2] and p[2]:lower():gsub("%a", string.upper, 1) or n)
elseif p[1] == "size" then
tfm.exec.changePlayerSize((p[3] or n), (p[2] or 1))
elseif p[1] == "colornick" then
tfm.exec.setNameColor((p[3] or n), (p[2] or -1))
end

end
end

eventMouse = function(n, x, y)
if not admData[n].tp then return end
tfm.exec.movePlayer(admData[n].tp, x, y)
admData[n].tp = nil
end

I didn't test, but should work

Thank you very much! I wanted that admins could teleport and change other plaers size too thought but i really appricate what you have done!
Bolodefchoco
« Sénateur »
1550413320000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3051
  0
but they can.

!tp Tigrounette#0001
!size 5 Tigrounette#0001
Aplejacek
« Citoyen »
1550489820000
    • Aplejacek#0000
    • Profil
    • Derniers messages
    • Tribu
#3052
  0
Bolodefchoco a dit :
but they can.

!tp Tigrounette#0001
!size 5 Tigrounette#0001

Oh really? Thank you really much, i tried doing it in wrong order.
Defkyy
« Citoyen »
1550821320000
    • Defkyy#0000
    • Profil
    • Derniers messages
    • Tribu
#3053
  0
Bolodefchoco a dit :
Defkyy a dit :
How can i update a textArea every 5 seconds? and then end it at TextArea 10

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
local timer, times = 0, 0
eventLoop = function()
if timer < 0 then return end

if timer % 5 == 0 then
ui.addTextArea(0, times, nil)
times = times + 1
if times >= 11 then
timer = -1
return
end
end
timer = timer + .5
end

How can you change the text?
Bolodefchoco
« Sénateur »
1550831820000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3054
  0
^ The second parameter in line 6, "time", is where the text goes
L1x0
« Citoyen »
1551068460000
    • L1x0#8331
    • Profil
    • Derniers messages
    • Tribu
#3055
  0
i want a code that if 3 people click a TextArea it would change the map. Make it quick take your time
Overjoy06
« Citoyen »
1551430200000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3056
  0
L1x0 a dit :
i want a code that if 3 people click a TextArea it would change the map. Make it quick take your time

local players = 0
local isReady = false
local countdown = 5
local gameStarted = false
ui.addTextArea(1,"<a href='event:join'>Join game</a>",nil,350,180,300,40,nil,nil,0.8,true)

function eventNewGame()
if gameStarted then
ui.removeTextArea(1,nil)
--TODO CODES GO HERE
end
end

function eventTextAreaCallback(id,n,call)
if call=="join" then
players = players + 1
if players > 3 then
isReady = true
ui.updateTextArea(1,"Game starts in 5 seconds",nil)
end
end
end

function eventLoop(t,r)
if isReady then
countdown = countdown - 0.5
ui.updateTextArea(1,"Game starts in "..math.ceil(countdown).." seconds")
if countdown < 0 and not gameStarted then
gameStarted = true
--tfm.exec.newGame(mapcodehere)
end
end
end


I mean i'm not a pro at lua but i think this should work? :((

Dernière modification le 1551442080000
Soyloquisha
« Citoyen »
1553736960000
    • Soyloquisha#0000
    • Profil
    • Derniers messages
    • Tribu
#3057
  2
script traitor please?
Dramacorn
« Consul »
1554050280000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#3058
  0
I need a script that activates different things when I use emotes: for example when I press the first emotion, I die and a box is spawned in my place
Onkei
« Citoyen »
1554214680000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#3059
  0
Dramacorn a dit :
I need a script that activates different things when I use emotes: for example when I press the first emotion, I die and a box is spawned in my place

Untested. If it does work, I just added random different effects for the first 5 emotes.


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
local playerSize, playerTransformations, playerLinking = {}, {}, {}
local EMOTE_EVENTS = {

[0] = function(name)
local player = tfm.get.room.playerList[name]

tfm.exec.killPlayer(name)
tfm.exec.addShamanObject(2, player.x, player.y, 0, 0, 0, false)
end,

[1] = function(name)
if not playerSize[name] then
playerSize[name] = 1
end

playerSize[name] = playerSize[name] - 0.2
tfm.exec.changePlayerSize(name, playerSize[name])
end,

[2] = function(name)
if not playerSize[name] then
playerSize[name] = 1
end

playerSize[name] = playerSize[name] + 0.2
tfm.exec.changePlayerSize(name, playerSize[name])
end,

[3] = function(name)
if not playerTransformations[name] then
playerTransformations[name] = false
end

playerTransformations[name] = not playerTransformations[name]
tfm.exec.giveTransformations(name, playerTransformations[name])
end,

[4] = function(name)
if not playerLinking[name] then
playerLinking[name] = false

local abs = math.abs
local player = tfm.get.room.playerList[name]
for _name, _player in next, tfm.get.room.playerList do
if not _player.isDead and _name ~= name and abs(_player.x - player.x) < 30 and abs(_player.y - player.y) < 30 then

playerLinking[name] = _name
playerLinking[_name] = name

tfm.exec.linkMice(name, _name, true)
break
end
end
else
local linkedWith = playerLinking[name]
tfm.exec.linkMice(name, linkedWith, false)

playerLinking[name] = false
playerLinking[linkedWith] = false
end
end,

[5] = function(name)
tfm.exec.removeCheese(name)
end
}

function eventEmotePlayed(name, emoteType)
local emoteEvent = EMOTE_EVENTS[emoteType]

if emoteEvent then
emoteEvent(name)
end
end

Dernière modification le 1557053580000
Jitotranss
1554433920000
    • Jitotranss#0000
    • Profil
    • Derniers messages
    • Tribu
#3060
[Modéré par Batt_mellamy, raison : Please speak English in the EN forums // Por favor, no hables español en el foro Inglés. En vez de eso, clica en la bandera que está situada en la parte superior derecha de la pantalla y selecciona la bandera de España para ir al foro español.]
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 153 / 160 › »
© Atelier801 2018

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

Version 1.27