×

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
  • /
  • zamówienia na kody.
« ‹ 9 / 149 › »
zamówienia na kody.
Woterek
« Citoyen »
1388837100000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#161
  0
Tomiek a dit :
Chciałbym kod co mógłbym latać TYLKO JA i Sieemka

kod a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name, 32, false, true)
end

function eventKeyboard(name, key)
if key == 32 then
if name == "Tomiek" or name == "Sieemka" then
tfm.exec.movePlayer(name, 0, 0, false, 0, -50, false)
end
end
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

Mrmichas a dit :
Poprosze o Kod, który sprawi, że wszystkie myszki będą miały Zielone Nicki (Jasny Zieleń).
Oprócz:
Mrmichas
Dosiaaaxd
Lilamysz

Bardzo Proszę. Jeśli ktoś zrobi to mu już Dziękuję!

kod a dit :
function eventNewPlayer(name)
if name ~= "Mrmichas" and name ~= "Dosiaaaxd" and name ~= "Lilamysz" then
tfm.exec.setNameColor(name, 0x66ff66)
end
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

:)
Ouake
« Censeur »
1388838120000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#162
  0
a dit :
• Trololowaaa:
Z,S,o={},{},0

tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.newGame("@276534")

function eventNewPlayer(nick)
tfm.exec.bindKeyboard(nick,68,true)
tfm.exec.bindKeyboard(nick,81,true)
tfm.exec.setPlayerScore(nick,0)
Z[nick],S[nick]=0,1
end

for nick in pairs(tfm.get.room.playerList) do
eventNewPlayer(nick)
end

function eventChatCommand(nick,komd)
if komd=="on" then
tfm.exec.bindKeyboard(nick,83,true)
elseif komd=="off" then
tfm.exec.bindKeyboard(nick,83,true,false)
end
end

function eventKeyboard(nick,klaw,wd,x,y)
if klaw==68 then
Z[nick]=1
elseif klaw==81 then
Z[nick]=0
elseif klaw==83 and S[nick]==1 then
tfm.exec.addShamanObject(20-Z[nick],x+10-20*Z[nick],y+20)
S[nick]=0
end
end

function eventLoop(t1,t2)
for nick in pairs(tfm.get.room.playerList) do
S[nick]=1
end
A=0
for nick,stat in pairs(tfm.get.room.playerList) do
if stat.isDead~=true then
A,B=A+1,nick
end
end
if A>1 and o==0 then
o=1
elseif (A<=1 or t2<1) and o==1 then
if A==1 then
tfm.exec.displayParticle(5,tfm.get.room.playerList[B].x,tfm.get.room.playerList[B].y,0,-3,0,0.1,nil)
tfm.exec.setPlayerScore(B,1,true)
end
tfm.exec.newGame("@276534")
o=0
end
end

Nie ma eventu, który by wykrywał takie trafienia i dlatego drugiej części się nie da zrobić.

Komendą '!on' włączasz sobie możliwość strzelania, a '!off' wyłącza.

Trololowaaa a dit :
i jak zrobic zeby np w profilu nazwa plemienia byla na jakis kolor? zeby byla widoczna przez kazdego kto zaglada do profilu

To nie dotyczy lua.
Kacperlubel
« Citoyen »
1388852220000
    • Kacperlubel#0000
    • Profil
    • Derniers messages
#163
  0
ja chce że gdy wpisze /dewil lub !wampir zmienił bym się w wampira
Rohere
« Consul »
1388852220000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#164
  0
Topic-570042
Kacperlubel
« Citoyen »
1388853120000
    • Kacperlubel#0000
    • Profil
    • Derniers messages
#165
  0
ja chce że gdy wpisze /dewil lub !wampir zmienił bym się w wampira umie ktoś?
Aanguson
« Citoyen »
1388872020000
    • Aanguson#8461
    • Profil
    • Derniers messages
#166
  0
Kacperlubel a dit :
ja chce że gdy wpisze /dewil lub !wampir zmienił bym się w wampira umie ktoś?

Kod a dit :
function eventChatCommand(nick,komd)
if komd=="wampir" then
tfm.exec.setVampirePlayer(nick)
end
end

__________
Kod z blokadą wyłącznie na ciebie a dit :

function eventChatCommand(nick,komd)
if komd=="wampir" and nick=="Kacperlubel" then
tfm.exec.setVampirePlayer("Kacperlubel")
end
end

Tu kod z komendą którą możesz wpisać tylko ty.
!wampir
Unnamedsomeone
« Citoyen »
1388939640000
    • Unnamedsomeone#9799
    • Profil
    • Derniers messages
#167
  0
poprosze nieskonczony snieg brak szamana i te mapke @4673842
Maikeru
« Citoyen »
1388941800000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#168
  0
Woterek a dit :
Wotorek Thx!

Wielkie Thx
Ouake
« Censeur »
1388944200000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#169
  0
a dit :
• Trololowaaa:
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame("@4673842")
tfm.exec.snow(1e6)

for nick in pairs(tfm.get.room.playerList) do
tfm.exec.movePlayer(nick,400,150)
end


Ten fragment w innym kolorze nie jest potrzebny, ale wpisałem tylko dlatego, że myszy by ginęły od razu po wczytaniu :P
Szymoneklol
1388947020000
    • Szymoneklol#0000
    • Profil
    • Derniers messages
    • Tribu
#170
[Modéré par Coska]
Nicknamepll
« Citoyen »
1389037020000
    • Nicknamepll#0000
    • Profil
    • Derniers messages
    • Tribu
#171
  0
Czy jest możliwość zrobienia żeby meep się szybciej ładował?
Julitaserek
« Citoyen »
1389199980000
    • Julitaserek#0000
    • Profil
    • Derniers messages
#172
  0
Czy jest możliwe zrobienia kodu żeby można było latać w plemieniu?
Woterek
« Citoyen »
1389205740000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#173
  0
Julitaserek a dit :
Czy jest możliwe zrobienia kodu żeby można było latać w plemieniu?

kod a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name, 32, false, true)
end

function eventKeyboard(name, key)
if key == 32 then
tfm.exec.movePlayer(name, 0, 0, false, 0, -50, false)
end
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
Dzanessa
« Citoyen »
1389206400000
    • Dzanessa#0000
    • Profil
    • Derniers messages
#174
  0
Hmm....
mam pytanie, dałoby się zrobić taki kod, że, gdy myszki wpiszą !info pojawią się wpisane przezemnie informacje? :D
Nicknamepll
« Citoyen »
1389375840000
    • Nicknamepll#0000
    • Profil
    • Derniers messages
    • Tribu
#175
  0
Speedracing a dit :
---------------------By Nicknamepll
--------------Minigame name Speedracing
-------------21.10.13

tfm.exec.setNameColor("Nicknamepll", 0xFF1900)
tfm.exec.setNameColor("Ouake", 0xFF1900)
system.disableChatCommandDisplay("off",true)
system.disableChatCommandDisplay("help",true)
system.disableChatCommandDisplay("pomoc",true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoShaman(true)

function eventNewPlayer(playerName)
tfm.exec.bindKeyboard(playerName,37,true,true)
tfm.exec.bindKeyboard(playerName,39,true,true)
tfm.exec.bindKeyboard(playerName,81,true,true)
tfm.exec.bindKeyboard(playerName,68,true,true)
end

for playerName,player in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(playerName,37,true,true)
tfm.exec.bindKeyboard(playerName,39,true,true)
tfm.exec.bindKeyboard(playerName,65,true,true)
tfm.exec.bindKeyboard(playerName,68,true,true)
end


function eventKeyboard(playerName,key,down,x,y)
if key==37 or key == 65 then
tfm.exec.movePlayer(playerName, 0, 0, true, -20, 0, true)
elseif key==39 or key==68 then
tfm.exec.movePlayer(playerName, 0, 0, true, 20, 0, true)
end
end

function main()
tfm.exec.disableAutoNewGame (true);
tfm.exec.disableAutoShaman(true);
tfm.exec.disableAutoTimeLeft (true);
tfm.exec.disableAutoScore (true);
tfm.exec.disableAfkDeath (true);
end

function eventNewGame()
tfm.exec.setUIMapName("<P>Speedracing!</P>")
tfm.exec.setGameTime(60*1)
tfm.exec.setUIShamanName ("<L>Miłej zabawy!</L>")
end

tfm.exec.disableAutoNewGame(true)
maps={"@2134537", "@333714", "@333714", "@445219", "@333714", "@445219", "@2546484", "@333714", "@445219", "@2546484", "@406266", "@333714", "@445219", "@2546484", "@406266", "@669031", "@1378209", "@263163", "@798953", "@333714", "@798953", "@333714", "@445219", "@2546484", "@406266", "@669031", "@1378209", "@263163", }
tfm.exec.newGame(maps[math.random(#maps)])

function eventLoop(time,remaining)
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
tfm.exec.respawnPlayer(name);
end

function eventPlayerWon(name)
end

function eventPlayerDied(name)
end


for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
end

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
tfm.exec.respawnPlayer(name);
tfm.exec.setUIShamanName("<J>Speed</J>")
end

ui.addTextArea(0, "<a href='event:help'>Changelog & Commands</a>", nil, nil, nil, nil, "0x6A7495", "0x6A7495", nil)

function eventTextAreaCallback(id,name,cb)
if cb=='help' then
ui.addTextArea(1, "<br ><ROSE>CHANGELOG</ROSE><br /><br >Add new map <ROSE>- V 0.0.2 -</ROSE><br /><br >Add Callback <ROSE>- V 0.0.3 -</ROSE><br >Fixed some bugs <ROSE>- V 0.0.4 -</ROSE><br /><br ><ROSE>COMMANDS<br /></ROSE> - Lista pomocników.<br ><J>'!pomocnicy'</J> - <br /></ROSE><br /></ROSE>Lista testerów.<br /> <br ><J>'!testerzy'</J> - <br /></ROSE>Automatycznie zabija mysz<br /> - <br ><J>'!mort'</J><br /></ROSE></ROSE>\n<br><br><a href='event:close'><VP>Zamknij</VP></a>", name)
end
if cb=='close' then
ui.removeTextArea(1, name)
end
end

print '<rose>Version 0.0.4</rose> - <J>Fixed some bugs'
print '<VP> By Nicknamepll'


function eventChatCommand(playerName, com)
if com == 'pomocnicy' then
ui.addPopup(1,0,"Shamousey, Woterek, Szel, Ouake i Tomiek</font>",playerName,175,200,450)
else if com == 'mort' then
tfm.exec.killPlayer(playerName)
else if com == 'testerzy' then
ui.addPopup(1,0,"Ouake, Szel, Tomiek i Vuouv</font>",playerName,175,200,450)
else if com == 'off' then
print("Minigre wyłączył "..nick)
tfm.exec.disableAutoNewGame(false)
tfm.exec.disableAutoTimeLeft(false)
system.disableChatCommandDisplay("testerzy",false)
system.disableChatCommandDisplay("off",false)
system.disableChatCommandDisplay("mort",false)
system.disableChatCommandDisplay("pomocnicy",false)
system.exit()
end
end
end
end
end

Czy jest możliwość dodania do tego skryptu możliwości dla admina? Czyli że np.: Jestem adminem i moge latac i teleportować się oraz banować ( Z banem chodzi o to że myszka Umiera na początku mapy). Oraz zeby mógł pisać wiadoomości popup za pomocą specjalnych zablokowanych dla innych komend...
Basterfeild
« Citoyen »
1389445740000
    • Basterfeild#0000
    • Profil
    • Derniers messages
#176
  0
____________________________________________________________________

Dzanessa a dit :
Hmm....
mam pytanie, dałoby się zrobić taki kod, że, gdy myszki wpiszą !info pojawią się wpisane przezemnie informacje? :D

____________________________________________________________________
KOD
a dit :

function eventChatCommand(playerName, com)
if com == 'help' then
ui.addPopup(1,0,"Treść",playerName,100,100,400)
end
end

____________________________________________________________________
Chvdy
« Citoyen »
1389645540000
    • Chvdy#1405
    • Profil
    • Derniers messages
#177
  0
Mam pytanko jak się robi że nie widać że jesteś szaman tylko sa obiekty które mozesz kłaść tak jak na 1 tylko nie widać
Maikeru
« Citoyen »
1389710460000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#178
  0
Basterfeild a dit :
____________________________________________________________________
____________________________________________________________________
Mam Ciekawe Pytanie


____________________________________________________________________

Mam pytanie! Czy tam gdzie pisze: Treść. Da się Wpisać w Kodzie Lua: [color=#(kod)]... I tak Dalej!
I jak się wpisze komede do wyskoczy na Kolorowo?
Szel
« Citoyen »
1389710940000
    • Szel#0000
    • Profil
    • Derniers messages
#179
  0
Mrmichas a dit :
Mam pytanie! Czy tam gdzie pisze: Treść. Da się Wpisać w Kodzie Lua: [color=#(kod)]... I tak Dalej!
I jak się wpisze komede do wyskoczy na Kolorowo?

Możesz używać znaczników HTML, na kolor to będzie:
<font color="#kolor_w_HEX">(...)</font>
Maikeru
« Citoyen »
1389711360000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#180
  0
Ale mozesz mi podac Przyklad!
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • zamówienia na kody.
« ‹ 9 / 149 › »
© Atelier801 2018

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

Version 1.27