×

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] Lua Online
[Script] Lua Online
Anesad31
« Citoyen »
1708383120000
    • Anesad31#9968
    • Profil
    • Derniers messages
#1
  0
You can code with your friends with this script.
Commands:
!change [line(number)] [message]: The content within the line makes up the message.
!rotate [line(number)] : Rotates luas seeable position to line.
!copy all: print everything on screen.
!copy [line(number)] : prints line.
!copy [line(number)min] [line(number)max] / !copy [line(number)max] [line(number)min]: Writes everything between [line(number)min] and [line(number)max].

Script:
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
size = 1000 -- You can add more size but it is gonna be laggy.
system.disableChatCommandDisplay()
board = {}
index = 1
for i = 1, size + 20 do
board[i] = ""
end
ui.addTextArea(0,"<font size='11'><font color='#6c77c1'> "..index.."<br> "..index+1 .."<br> "..index+2 .."<br> "..index+3 .."<br> "..index+4 .."<br> "..index+5 .."<br> "..index+6 .."<br> "..index+7 .."<br> "..index+8 .."<br> "..index+9 .."<br> "..index+10 .."<br> "..index+11 .."<br> "..index+12 .."<br> "..index+13 .."<br> "..index+14 .."<br> "..index+15 .."<br> "..index+16 .."<br> "..index+17 .."<br> "..index+18 .."<br> "..index+19 .."<br> "..index+20 .."<br></font></font>",nil,100,35,600,350,0x272834,0x272834,0.85,1)
ui.addTextArea(1,"<p align='center'>Submit</a></p>",nil,110,330,580,17,0x3c5064,0x3c5064,0.85,1)
ui.addTextArea(2,"<p align='center'>Close</a></p>",nil,110,360,580,17,0x3c5064,0x3c5064,0.85,1)
ui.addTextArea(3,"<font size='11'>"..board[index].."<br>"..board[index + 1].."<br>"..board[index + 2].."<br>"..board[index + 3].."<br>"..board[index + 4].."<br>"..board[index + 5].."<br>"..board[index + 6].."<br>"..board[index + 7].."<br>"..board[index + 8].."<br>"..board[index + 9].."<br>"..board[index + 10].."<br>"..board[index + 11].."<br>"..board[index + 12].."<br>"..board[index + 13].."<br>"..board[index + 14].."<br>"..board[index + 15].."<br>"..board[index + 16].."<br>"..board[index + 17].."<br>"..board[index + 18].."<br>"..board[index + 19].."<br>"..board[index + 20].."",nil,135,30,555,280,0x272834,0x425b68,0.85,1)
function update()
ui.updateTextArea(0,"<font size='11'><font color='#6c77c1'> "..index.."<br> "..index+1 .."<br> "..index+2 .."<br> "..index+3 .."<br> "..index+4 .."<br> "..index+5 .."<br> "..index+6 .."<br> "..index+7 .."<br> "..index+8 .."<br> "..index+9 .."<br> "..index+10 .."<br> "..index+11 .."<br> "..index+12 .."<br> "..index+13 .."<br> "..index+14 .."<br> "..index+15 .."<br> "..index+16 .."<br> "..index+17 .."<br> "..index+18 .."<br> "..index+19 .."<br> "..index+20 .."<br></font></font>")
ui.updateTextArea(1,"<p align='center'>Submit</a></p>")
ui.updateTextArea(2,"<p align='center'>Close</a></p>")
ui.updateTextArea(3,"<font size='11'>"..board[index].."<br>"..board[index + 1].."<br>"..board[index + 2].."<br>"..board[index + 3].."<br>"..board[index + 4].."<br>"..board[index + 5].."<br>"..board[index + 6].."<br>"..board[index + 7].."<br>"..board[index + 8].."<br>"..board[index + 9].."<br>"..board[index + 10].."<br>"..board[index + 11].."<br>"..board[index + 12].."<br>"..board[index + 13].."<br>"..board[index + 14].."<br>"..board[index + 15].."<br>"..board[index + 16].."<br>"..board[index + 17].."<br>"..board[index + 18].."<br>"..board[index + 19].."<br>"..board[index + 20].."")
end
function eventChatCommand(name, command)
local args = {}
for arg in command:gmatch("%S+") do
table.insert(args, arg)
end
if args[1] == "change" and tonumber(args[2]) and args[3] and tonumber(args[2]) < size + 20 and tonumber(args[2]) > 0 then
board[tonumber(args[2])] = table.concat(args, " ", 3):gsub("(%S+ %S+ %S+)", "%1")
update()
elseif args[1] == "rotate" and tonumber(args[2]) and tonumber(args[2]) <= size and tonumber(args[2]) > 0 then
index = tonumber(args[2])
update()
elseif args[1] == "copy" then
if tonumber(args[2]) and tonumber(args[2]) > 0 then
if tonumber(args[3]) and tonumber(args[3]) > 0 then
if tonumber(args[2]) > tonumber(args[3]) then
print(table.concat({table.unpack(board, tonumber(args[3]), tonumber(args[2]))}, " "))
else
print(table.concat({table.unpack(board, tonumber(args[2]), tonumber(args[3]))}, " "))
end
else
print(board[tonumber(args[2])])
end
elseif args[2] == "all" then
print(table.concat(board, " "))
end
end
end

TOPIC-653913 - UI Places made by this lua.

Dernière modification le 1708383720000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Lua Online
© Atelier801 2018

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

Version 1.27