×

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
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 196 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Kuppiarda
« Citoyen »
1401620580000
    • Kuppiarda#0000
    • Profil
    • Derniers messages
    • Tribu
#3901
  0
Tutekkro a dit :


.
.

Kod istiyorum demedim, komut ile yaratılan objeyi silmeyi dedim.

Table ile yapınca argument error hatası geldi.
Horroy
« Citoyen »
1401620700000
    • Horroy#0000
    • Profil
    • Derniers messages
    • Tribu
#3902
  0
Tutekkro a dit :


.
.

oyunda açıkmısın*

-

herkezi şaman etme kodu varmı
Kuppiarda
« Citoyen »
1401620820000
    • Kuppiarda#0000
    • Profil
    • Derniers messages
    • Tribu
#3903
  0
Horroy a dit :


oyunda açıkmısın*

-

herkezi şaman etme kodu varmı

komutun için filan koymak için
Kod:

for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(name)
end
Fatihmilano
« Citoyen »
1401621960000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#3904
  0
Fxie a dit :
0 = normal mode
1 = hard mode
2 = divine mode

.
Thewildnes
« Citoyen »
1401622140000
    • Thewildnes#0000
    • Profil
    • Derniers messages
    • Tribu
#3905
  0
Geçende biri test odasında Transformation kodu kullandı
Kodu varmı?
Leo
« Citoyen »
1401622740000
    • Leo#6000
    • Profil
    • Derniers messages
#3906
  0
a dit :
function eventChatCommand(n, c)
local args={}
local on={}
system.disableChatCommandDisplay(args)
for arg in c:gmatch("%S+") do
table.insert(args, arg)
table.insert(on, off)
end
if args[1] == "chat" then
table.remove(args, 1)
print("<J>["..n.."] <N>"..table.concat(args, " "))
end
end

Kullanılan tüm komutları chatta göstermez ayrıca komutu aktif edip etmeme özelliğide var. komut oluştururken if args[1] == "komut" and on then yazarsanız komut aktif olur ve if args[1] == "komut" and not on then yazarsanız komut aktif olmaz.
Neonstrayzer
« Citoyen »
1401623280000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#3907
  0
Tutekkro a dit :


Kullanılan tüm komutları chatta göstermez ayrıca komutu aktif edip etmeme özelliğide var. komut oluştururken if args[1] == "komut" and on then yazarsanız komut aktif olur ve if args[1] == "komut" and not on then yazarsanız komut aktif olmaz.

Yada aktif olmasını istediğimiz komutu ekler. İstemediğimizi sileriz.
Leo
« Citoyen »
1401623280000
    • Leo#6000
    • Profil
    • Derniers messages
#3908
  0
Neonstrayzer a dit :

Yada aktif olmasını istediğimiz komutu ekler. İstemediğimizi sileriz.

Elbette :D Yani

-- [[

]]

görevini görüyor
Ipzey
« Citoyen »
1401625560000
    • Ipzey#0000
    • Profil
    • Derniers messages
#3909
  0
Kırmızı ve Mavi takım kodu?

-
Mavilerin Tamamı girince Blue Kazandı.

Mavilerin tamamı girince sürenin 10 olması.


Kırmızılaırn tamamı girince Red Kazandı. yazıcak.

Kırmızıların tamamı girincesürenin 10 olması.
Qrcun
« Citoyen »
1401626100000
    • Qrcun#0000
    • Profil
    • Derniers messages
#3910
  0
-- By Nicolasledu
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame(5087913)

prop = {}
prop[0] = {type=0,width=40,height=40,friction=0.3,restitution=0.2}
prop[1] = {type=1,width=40,height=40,friction=0,restitution=0.2}
prop[2] = {type=2,width=40,height=40,friction=0,restitution=1.2}
prop[3] = {type=3,width=40,height=40,friction=0,restitution=20}
prop[4] = {type=4,width=40,height=40,friction=20,restitution=0.2}
prop[5] = {type=5,width=40,height=40,friction=0.3,restitution=0.2}
prop[6] = {type=6,width=40,height=40,friction=0.3,restitution=0.2}
prop[7] = {type=7,width=40,height=40,friction=0.1,restitution=0.2}
prop[8] = {type=8,width=40,height=40,friction=0.3,restitution=0.2,miceCollision=false}
prop[9] = {type=9,width=40,height=40,friction=0.3,restitution=0.2}
prop[10] = {type=10,width=40,height=40,friction=0.3,restitution=0}
prop[11] = {type=11,width=40,height=40,friction=0.05,restitution=0.1}
prop[12] = {type=12,width=40,height=40,friction=0.3,restitution=0.2,color=0xaaaaaa}
prop[13] = {type=13,width=20,friction=0.3,restitution=0.2,color=0xaaaaaa}
function eventTextAreaCallback(idt,name,callback)
if callback=="place" then
local bloc = blocplayer[name]
tfm.exec.addPhysicObject(idt,blocx[idt] + 20,blocy[idt] + 20,prop[tonumber(bloc)] or prop[0])
ui.addTextArea(idt, "<a href='event:remove'><p align='center'><font size='20'><r>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
elseif callback=="remove" then
tfm.exec.removePhysicObject(idt)
ui.addTextArea(idt, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
end
end
function eventNewPlayer(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerWon(p)
tfm.exec.respawnPlayer(p)
end

function eventChatCommand(playerName, command)
if command:sub(0,4) == "type" then
blocplayer[playerName] = command:sub(5)
end
end
function eventNewGame()
blocplayer = {}

for playerName,p in pairs(tfm.get.room.playerList) do
blocplayer[playerName] = 0
end
xp = 0
yp = 0
id = 0
blocx = {}
blocy = {}
for a = 1,200 do
id = id + 1
blocx[id] = xp
blocy[id] = yp
ui.addTextArea(id, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, xp+5, yp+8, 30, 30,nil,nil,0,false)

xp = xp+40
if xp == 800 then
xp = 0
yp = yp + 40
end
end
end
bu kodu uzun mapa göre yapabilirmisiniz.
Ipzey
« Citoyen »
1401626880000
    • Ipzey#0000
    • Profil
    • Derniers messages
#3911
  0
Ipzey a dit :
Kırmızı ve Mavi takım kodu?

-
Mavilerin Tamamı girince Blue Kazandı.

Mavilerin tamamı girince sürenin 10 olması.


Kırmızılaırn tamamı girince Red Kazandı. yazıcak.

Kırmızıların tamamı girincesürenin 10 olması.

^
Barsemsbot
« Citoyen »
1401628020000
    • Barsemsbot#0000
    • Profil
    • Derniers messages
    • Tribu
#3912
  0
Qrcun a dit :

bu kodu uzun mapa göre yapabilirmisiniz.

1600 lük haritaya göre a dit :
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame(5087913)

prop = {}
prop[0] = {type=0,width=40,height=40,friction=0.3,restitution=0.2}
prop[1] = {type=1,width=40,height=40,friction=0,restitution=0.2}
prop[2] = {type=2,width=40,height=40,friction=0,restitution=1.2}
prop[3] = {type=3,width=40,height=40,friction=0,restitution=20}
prop[4] = {type=4,width=40,height=40,friction=20,restitution=0.2}
prop[5] = {type=5,width=40,height=40,friction=0.3,restitution=0.2}
prop[6] = {type=6,width=40,height=40,friction=0.3,restitution=0.2}
prop[7] = {type=7,width=40,height=40,friction=0.1,restitution=0.2}
prop[8] = {type=8,width=40,height=40,friction=0.3,restitution=0.2,miceCollision=false}
prop[9] = {type=9,width=40,height=40,friction=0.3,restitution=0.2}
prop[10] = {type=10,width=40,height=40,friction=0.3,restitution=0}
prop[11] = {type=11,width=40,height=40,friction=0.05,restitution=0.1}
prop[12] = {type=12,width=40,height=40,friction=0.3,restitution=0.2,color=0xaaaaaa}
prop[13] = {type=13,width=20,friction=0.3,restitution=0.2,color=0xaaaaaa}
function eventTextAreaCallback(idt,name,callback)
if callback=="place" then
local bloc = blocplayer[name]
tfm.exec.addPhysicObject(idt,blocx[idt] + 20,blocy[idt] + 20,prop[tonumber(bloc)] or prop[0])
ui.addTextArea(idt, "<a href='event:remove'><p align='center'><font size='20'><r>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
elseif callback=="remove" then
tfm.exec.removePhysicObject(idt)
ui.addTextArea(idt, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
end
end
function eventNewPlayer(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerWon(p)
tfm.exec.respawnPlayer(p)
end

function eventChatCommand(playerName, command)
if command:sub(0,4) == "type" then
blocplayer[playerName] = command:sub(5)
end
end
function eventNewGame()
blocplayer = {}

for playerName,p in pairs(tfm.get.room.playerList) do
blocplayer[playerName] = 0
end
xp = 0
yp = 0
id = 0
blocx = {}
blocy = {}
for a = 1,400 do
id = id + 1
blocx[id] = xp
blocy[id] = yp
ui.addTextArea(id, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, xp+5, yp+8, 30, 30,nil,nil,0,false)

xp = xp+40
if xp == 1600 then
xp = 0
yp = yp + 40
end
end
end

^
Oyga
« Citoyen »
1401629940000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#3913
  0
Ipzey a dit :


^

Mini oyun istemeyin bizden.
Kuppiarda a dit :

Kod istiyorum demedim, komut ile yaratılan objeyi silmeyi dedim.

Table ile yapınca argument error hatası geldi.

Tam olarak amacını söyle.
Cicoscivciv
« Citoyen »
1401630300000
    • Cicoscivciv#0000
    • Profil
    • Derniers messages
#3914
  0
yardım ediiiinnnnnnnnnnnnnn bni hapsettiler böyle çimenler felan var bi tane fare var hapsetti beni 2 kişiler adları Qrcun ve Brkzsevdim zeminlere hapsediyo ikisi
Brkzsevdim
« Citoyen »
1401630300000
    • Brkzsevdim#0000
    • Profil
    • Derniers messages
#3915
  0
Harbi yazdı lan Ben opsfentek :D yazmaz sandım yazdı la :D neyse boşverin ama kabilede kopuyoz :D
Cicoscivciv
« Citoyen »
1401630420000
    • Cicoscivciv#0000
    • Profil
    • Derniers messages
#3916
  0
Brkzsevdim a dit :
Harbi yazdı lan Ben opsfentek :D yazmaz sandım yazdı la :D neyse boşverin ama kabilede kopuyoz :D

ÇIKar be beni
Brkzsevdim
« Citoyen »
1401630420000
    • Brkzsevdim#0000
    • Profil
    • Derniers messages
#3917
  0
Olmaz neyse konuyu kirletmeyelim :D
Oyga
« Citoyen »
1401631320000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#3918
  0
Opsfentek, şu sıralar saçma saçma işler yapıyorsun. Nedir bu sahte hesaplar, konuyu batırmalar falan? Kendiniz bizden soğutma.

Ya düzgünce kendi hesabınla gel, yada hiç gelme.
Ipzey
« Citoyen »
1401632220000
    • Ipzey#0000
    • Profil
    • Derniers messages
#3919
  0
Kırmızı ve Mavi takım kodu?

-
Mavilerin Tamamı girince Blue Kazandı.

Mavilerin tamamı girince sürenin 10 olması.


Kırmızılaırn tamamı girince Red Kazandı. yazıcak.

Kırmızıların tamamı girincesürenin 10 olması.
Oyga
« Citoyen »
1401632760000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#3920
  0
Ipzey a dit :
Kırmızı ve Mavi takım kodu?

-
Mavilerin Tamamı girince Blue Kazandı.

Mavilerin tamamı girince sürenin 10 olması.


Kırmızılaırn tamamı girince Red Kazandı. yazıcak.

Kırmızıların tamamı girincesürenin 10 olması.

Oyga a dit :


Mini oyun istemeyin bizden.

^ Burası yardımlaşma başlığı, mini oyun kodlama başlığı değil.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 196 / 388 › »
© Atelier801 2018

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

Version 1.27