×

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
  • /
  • Archives
  • /
  • [Script] Lua Simulator
[Script] Lua Simulator
Minstens
« Censeur »
1394478180000
    • Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
http://i.imgur.com/moDz0Uq.png
It is as you said the name a simulator for /lua basic for fun. It opens with the !lua command, And when you hit send the screen turns translucent as the original. And I send a lua print more typical message "## [Nick] Lua script loaded in 1 ms (4000 max)". It's simple and so I ask new more ideas for this new module.
lua a dit :

function eventChatCommand (name,command)
if command == "lua" then
ui.addTextArea(0,"<font size='11'><font color='#6c77c1'> 1<br> 2<br> 3<br> 4<br> 5<br> 6<br> 7<br> 8<br> 9<br> 10<br> 11<br> 12<br> 13<br> 14<br> 15<br> 16<br> 17<br> 18<br> 19<br> 20<br> 21<br></font></font>",name,100,35,600,350,0x272834,0x272834,1,1)
ui.addTextArea(1,"<p align='center'><a href='event:submit'>Submit</a></p>",name,110,330,580,17,0x3c5064,0x3c5064,1,1)
ui.addTextArea(2,"<p align='center'><a href='event:close'>Close</a></p>",name,110,360,580,17,0x3c5064,0x3c5064,1,1)
ui.addTextArea(3,"-- Autor: Minstens<br>-- Name: #/lua<br>-- Commands: !lua<br>print(''lua'')",name,135,45,555,265,0x272834,0x425b68,1,1)
end
end

system.disableChatCommandDisplay("lua",true)

function eventTextAreaCallback(textAreaId,name,callback)
if (callback=="submit") then
ui.addTextArea(0,"<font size='11'><font color='#6c77c1'> 1<br> 2<br> 3<br> 4<br> 5<br> 6<br> 7<br> 8<br> 9<br> 10<br> 11<br> 12<br> 13<br> 14<br> 15<br> 16<br> 17<br> 18<br> 19<br> 20<br> 21<br></font></font>",name,100,35,600,350,0x272834,0x272834,200,1)
ui.addTextArea(1,"<p align='center'><a href='event:submit'>Submit</a></p>",name,110,330,580,17,0x3c5064,0x3c5064,200,1)
ui.addTextArea(2,"<p align='center'><a href='event:close'>Close</a></p>",name,110,360,580,17,0x3c5064,0x3c5064,200,1)
ui.addTextArea(3,"-- Autor: Minstens<br>-- Name: #/lua<br>-- Commands: !lua<br>print(''lua'')",name,135,45,555,265,0x272834,0x425b68,100,1)
print("["..name.."] Lua script loaded in 1 ms (4000 max)")
print("lua")
elseif (callback=="close") then
ui.removeTextArea(0,name)
ui.removeTextArea(1,name)
ui.removeTextArea(2,name)
ui.removeTextArea(3,name)
end
end

Topic-653846 - ES Original Thread.

http://i.imgur.com/moDz0Uq.png
Es como bien dice el nombre un simulador de /lua básico para divertirse. Se abre con el comando !lua y cuando le das a enviar la pantalla se pone translúcida como el original. Y te envía un print de lua mas el típico mensaje de ## [+Minstens] Lua script loaded in 1 ms (4000 max). Es sencillo y nuevo así que pedimos mas ideas para este nuevo modulo.
lua a dit :

function eventChatCommand (name,command)
if command == "lua" then
ui.addTextArea(0,"<font size='11'><font color='#6c77c1'> 1<br> 2<br> 3<br> 4<br> 5<br> 6<br> 7<br> 8<br> 9<br> 10<br> 11<br> 12<br> 13<br> 14<br> 15<br> 16<br> 17<br> 18<br> 19<br> 20<br> 21<br></font></font>",name,100,35,600,350,0x272834,0x272834,1,1)
ui.addTextArea(1,"<p align='center'><a href='event:submit'>Submit</a></p>",name,110,330,580,17,0x3c5064,0x3c5064,1,1)
ui.addTextArea(2,"<p align='center'><a href='event:close'>Close</a></p>",name,110,360,580,17,0x3c5064,0x3c5064,1,1)
ui.addTextArea(3,"-- Autor: Minstens<br>-- Name: #/lua<br>-- Commands: !lua<br>print(''lua'')",name,135,45,555,265,0x272834,0x425b68,1,1)
end
end

system.disableChatCommandDisplay("lua",true)

function eventTextAreaCallback(textAreaId,name,callback)
if (callback=="submit") then
ui.addTextArea(0,"<font size='11'><font color='#6c77c1'> 1<br> 2<br> 3<br> 4<br> 5<br> 6<br> 7<br> 8<br> 9<br> 10<br> 11<br> 12<br> 13<br> 14<br> 15<br> 16<br> 17<br> 18<br> 19<br> 20<br> 21<br></font></font>",name,100,35,600,350,0x272834,0x272834,200,1)
ui.addTextArea(1,"<p align='center'><a href='event:submit'>Submit</a></p>",name,110,330,580,17,0x3c5064,0x3c5064,200,1)
ui.addTextArea(2,"<p align='center'><a href='event:close'>Close</a></p>",name,110,360,580,17,0x3c5064,0x3c5064,200,1)
ui.addTextArea(3,"-- Autor: Minstens<br>-- Name: #/lua<br>-- Commands: !lua<br>print(''lua'')",name,135,45,555,265,0x272834,0x425b68,100,1)
print("["..name.."] Lua script loaded in 1 ms (4000 max)")
print("lua")
elseif (callback=="close") then
ui.removeTextArea(0,name)
ui.removeTextArea(1,name)
ui.removeTextArea(2,name)
ui.removeTextArea(3,name)
end
end

Hilo original de es: Topic-653846

Dernière modification le 1467758940000
Robonado
« Citoyen »
1394479080000
    • Robonado#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  1
Well Done
Mikuhl
« Citoyen »
1394482680000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#3
  0
http://i.imgur.com/p2tIC6r.png
Kmlcan
« Citoyen »
1394483940000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Can we run this in this? Luaception?
Jjaakkee
« Citoyen »
1394489460000
    • Jjaakkee#0000
    • Profil
    • Derniers messages
#5
  0
Jaackster a dit :

Ha.

Could be useful for coding in a team or sharing scripts privately.
Thedalek
1394532060000
    • Thedalek#0000
    • Profil
    • Derniers messages
#6
[Modéré par Bolinboy, raison : Spam.]
Leafileaf
« Citoyen »
1394621940000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
pls you can't even edit the stuff in there
i was hoping someone would create loadstring tho
Abdeltif
« Citoyen »
1394650860000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Leafileaf a dit :
pls you can't even edit the stuff in there
i was hoping someone would create loadstring tho

err >.>
I know, I WANT IT SO HARD
Evil tig >.>

Ps; how can this be created lol
Kmlcan
« Citoyen »
1394653680000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Leafileaf a dit :
pls you can't even edit the stuff in there
i was hoping someone would create loadstring tho

I've made a similar one, I will show you when you log in.
Mipmippp
« Citoyen »
1394654940000
    • Mipmippp#0000
    • Profil
    • Derniers messages
#10
  0
Jaackster a dit :

LOL
~~
You surprise me again with nice scripts, Minstens.
Leafileaf
« Citoyen »
1394713560000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Abdeltif a dit :
err &gt;.&gt;
I know, I WANT IT SO HARD
Evil tig &gt;.&gt;

Ps; how can this be created lol

it's possible, just create some stuff to recognise lua syntax
like, recognise function creation, variable assignment, function calls, if/else and for loops and stuff
complicated but possible, and it'll probably take up half of the 64k char limit (pardon exaggeration :P)
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • [Script] Lua Simulator
© Atelier801 2018

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

Version 1.27