×

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ığı
« ‹ 223 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Enesxfbxpro
« Censeur »
1402392780000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4441
  0
Neonstrayzer a dit :

Ben kodu verdim kullanıcının her yarım saniyede bulunduğu yerin şuanki mapın deliğinin x ve y siyle uyuşursa peynir ver direk girer.

Hata veriyo ama


## Runtime Error : Enesxfbxpro.lua:94: attempt to index ? (a nil value)
Neonstrayzer
« Citoyen »
1402393200000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#4442
  0
Enesxfbxpro a dit :


Hata veriyo ama


## Runtime Error : Enesxfbxpro.lua:94: attempt to index ? (a nil value)

Çünkü x y yi tabloya ekliyeceksin. Direk geçirmiyeceksin kodu.
Enesxfbxpro
« Censeur »
1402393200000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4443
  0
Neonstrayzer a dit :


Çünkü x y yi tabloya ekliyeceksin. Direk geçirmiyeceksin kodu.

yaptm, neyi yanlış yaptım

maps={
["@555111"]={770,15}
}

function eventLoop()
for n,p in pairs(tfm.get.room.playerList) do
if p.x==maps[tfm.get.room.currentMap][1] and p.y==maps[tfm.get.room.currentMap][2] then
tfm.exec.giveCheese(n)
end
end
end
Seih
« Citoyen »
1402400460000
    • Seih#0000
    • Profil
    • Derniers messages
    • Tribu
#4444
  0
Adminlere özel !next komutu
-Noktats
edit: harita değiştiridme
Dinorai
« Citoyen »
1402400880000
    • Dinorai#0000
    • Profil
    • Derniers messages
#4445
  0
Selam bişe sorcam saçma ama lua ile müzik eklenebiliyormu?

eklenmediğinden eminimde bi sorayım dedim.
Hotspotower
« Citoyen »
1402400880000
    • Hotspotower#0000
    • Profil
    • Derniers messages
    • Tribu
#4446
  0
Dinorai a dit :
Selam bişe sorcam saçma ama lua ile müzik eklenebiliyormu?

eklenmediğinden eminimde bi sorayım dedim.

Eklenmiyor.
Fatihmilano
« Citoyen »
1402401000000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#4447
  0
Dinorai a dit :
Selam bişe sorcam saçma ama lua ile müzik eklenebiliyormu?

eklenmediğinden eminimde bi sorayım dedim.

Biz yapmistik Neonstrayzer ile.
Dinorai
« Citoyen »
1402401240000
    • Dinorai#0000
    • Profil
    • Derniers messages
#4448
  0
Fatihmilano a dit :
Biz yapmistik Neonstrayzer ile.

nasıl??

tv ile deme -_-
Emrevegolxd
« Citoyen »
1402402560000
    • Emrevegolxd#0000
    • Profil
    • Derniers messages
#4449
  0
divine mode engelleme kodu varmı ?
Enesxfbxpro
« Censeur »
1402402680000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4450
  0
Emrevegolxd a dit :
arkadaşlar bir oyuncuyu banlayınca -11 puanı olmasını istiyorum lütfen kodunu verirmisiniz.

---

a dit :
admins={Enesxfbxpro=true}
function eventChatCommand(n,c)
local args={}
for arg in c:gmatch("%S+") do
table.insert(args,arg)
end
if admins[n] and args[1]=="ban" and tfm.get.room.playerList[args[2]] then
tfm.exec.setPlayerScore(args[2], "-11")
end
end

Renli olan kısmı kullanıcı adını yaz

*----------
. byler burdaki hata nedir ?

if p.x==maps[tfm.get.room.currentMap][1] and p.y==maps[tfm.get.room.currentMap][2] then
Kmlcan
« Citoyen »
1402403940000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#4451
  0
a dit :
tA = ui.addTextArea
function ui.addTextArea(i, m, n, x, y, w, h, c1, c2, o, f, ce, tfm, s, tfm2)
local ad
if ce then
x = x - w / 2
y = y - h / 2
end
if tfm then
c1 = 0x324650
c2 = c1
o = 1
tA(i+34000, "", n, x-1, y-1, w, h, 0x648FA4, 0x648FA4, o, f)
tA(i+44000, "", n, x+1, y+1, w, h, 0x12171C, 0x12171C, o, f)
end
if tfm2 then
c1, c2, o, m = 0x324650, 0x27373F, 1, "\n"..m
tA(i, m, n, x, y, w, h, c1, c2, o, f)
tA(i+99000, "", n, x-5, y-5, w+10, 12, 0x27373F, 0x27373F, 1, f)
tA(i+99001, "<V><b><font size='15'>"..tfm2.."</font></b>", n, x-5, y-10, w+10, nil, 0, 1, 0, f)
tA(i+99002, "", n, x+w-5, y-3, 8, 8, 0x009D9D, 0x009D9D, 1, f)
tA(i+99003, "<p align='center'><font size='17' color='#324650'><b><a href='event:close'>×", n, x+w-10, y-12, nil, nil, 0, 0, 0, f)
ad = nil
end
if s then
local a = m:gsub("color='(.-)'", "")
tA(i+10001, "<font color='#1'>"..a, n, x+1, y, w, h, 0, 1, 0, f)
tA(i+10002, "<font color='#1'>"..a, n, x-1, y, w, h, 0, 1, 0, f)
tA(i+10003, "<font color='#1'>"..a, n, x, y+1, w, h, 0, 1, 0, f)
tA(i+10004, "<font color='#1'>"..a, n, x, y-1, w, h, 0, 1, 0, f)
tA(i+10005, "<font color='#1'>"..a, n, x+1, y-1, w, h, 0, 1, 0, f)
tA(i+10006, "<font color='#1'>"..a, n, x-1, y-1, w, h, 0, 1, 0, f)
tA(i+10007, "<font color='#1'>"..a, n, x+1, y+1, w, h, 0, 1, 0, f)
tA(i+10008, "<font color='#1'>"..a, n, x-1, y+1, w, h, 0, 1, 0, f)
end
tA(tfm2 and i+99004 or i, m, n, x, y, w, h, c1, c2, tfm2 and 0 or o, f)
end

ui.addTextArea(0, "<p align='center'><font color='#6A7495' size='60' face='Soopafresh'>Passengers II", nil, 400, 210, 500, 300, 1, 1, 1, true, true, nil, true, "Test")

Buyrunuz.
Neonstrayzer
« Citoyen »
1402404060000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#4452
  0
Kmlcan a dit :
Buyrunuz.

Topluluk platformu still çok iyi
Emreaybey
« Citoyen »
1402414200000
    • Emreaybey#0000
    • Profil
    • Derniers messages
    • Tribu
#4453
  0
a dit :
tfm.exec.disableAutoScore(false)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
grounds = {}
tm = os.time()
tfm.exec.newGame("@4694243")


function eventNewPlayer(name)
system.bindMouse(name, true)
tfm.exec.respawnPlayer(name)
end

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

function eventNewGame()
width = tonumber(tfm.get.room.xmlMapInfo.xml:match('<P[^/]+L="([^"]+)"[^/]+/>'))
if not width then
width = 800
end
height = tonumber(tfm.get.room.xmlMapInfo.xml:match('<P[^/]+H="([^"]+)"[^/]+/>'))
if not height then
height = 400
end
grounds = {}
for ground in tfm.get.room.xmlMapInfo.xml:gmatch("<S[^/]+/>") do
local pos = #grounds+1
grounds[pos] = {}
grounds[pos].X = tonumber(ground:match('X="([^"]+)"'))
grounds[pos].Y = tonumber(ground:match('Y="([^"]+)"'))
grounds[pos].L = tonumber(ground:match('L="([^"]+)"'))
grounds[pos].H = tonumber(ground:match('H="([^"]+)"'))
grounds[pos].T = tonumber(ground:match('T="([^"]+)"'))
end
end

function eventMouse(name, x2, y2)
if os.time() >= tm + 1000 then
local player = tfm.get.room.playerList[name]
local deltaX = x2 - player.x
local deltaY = y2 - player.y
local normalizer = math.sqrt(math.pow(deltaX, 2) + math.pow(deltaY, 2))
deltaX = deltaX / normalizer
deltaY = deltaY / normalizer
for t = 0, math.huge, math.min(math.abs(5 / deltaX), math.abs(5 / deltaY)) do
x = player.x + deltaX * t
y = player.y + deltaY * t
if x < 0 or x > width or y < 0 or y > height then
break
end
for i,ground in ipairs(grounds) do
if x > ground.X - ground.L/2 and x < ground.X + ground.L/2 and y > ground.Y - ground.H/2 and y < ground.Y + ground.H/2 and ground.T ~= (8 or 9) then
brk = true
break
end
end
if brk then
brk = false
if not prtl then
tfm.exec.addShamanObject(26, player.x + deltaX * (t - 15), player.y + deltaY * (t - 15))
prtl = true
else
tfm.exec.addShamanObject(27, player.x + deltaX * (t - 15), player.y + deltaY * (t - 15))
prtl = false
end
break
end
if not prtl then
tfm.exec.displayParticle(9, x , y, 0, 0, 0, 0)
else
tfm.exec.displayParticle(2, x , y, 0, 0, 0, 0)
end
end
tm = os.time()
end
end

function eventPlayerDied(name)
tfm.exec.respawnPlayer(name)
end

eventPlayerWon = eventPlayerDied

Bu kodda portalları duvarın yanına değilde istediğimiz yere ışınlayabilmemiz nasıl olucak alıntılayarak kodu yazın :P
Emrevegolxd
« Citoyen »
1402420320000
    • Emrevegolxd#0000
    • Profil
    • Derniers messages
#4454
  0
Enesxfbxpro a dit :
Birşey soracağım,

Bir komutu örneğin .!help yazıyorum sadece tek o kişide çıkmasını nasıl yapacağm ?

Anlamadım diyelim sen !help yazdın sadece sence cıkcak baskasında cıkmıcakmı ?
Enesxfbxpro
« Censeur »
1402420320000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4455
  0
Birşey soracağım,

Bir komutu örneğin .!help yazıyorum sadece tek o kişide çıkmasını nasıl yapacağm ?

a dit :
Help sadece örnektir
Horroy
« Citoyen »
1402420320000
    • Horroy#0000
    • Profil
    • Derniers messages
    • Tribu
#4456
  0
Enesxfbxpro a dit :
Birşey soracağım,

Bir komutu örneğin .!help yazıyorum sadece tek o kişide çıkmasını nasıl yapacağm ?

[qoute=]Help sadece örnektir

Admins tablosu gibi bişey yapabilirsin oraya kullanacak kişinin ismini yazarsın...


EDİT:fail var
Enesxfbxpro
« Censeur »
1402420320000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4457
  0
Horroy a dit :


^

Admins tablosu gibi bişey yapabilirsin oraya kullanacak kişinin ismini yazarsın...


EDİT:fail var[/quote]

Mesela help ypçam diyelim herkes göremiyecek, onu arıyorum.
Enesxfbxpro
« Censeur »
1402420440000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4458
  0
Emrevegolxd a dit :


Anlamadım diyelim sen !help yazdın sadece sence cıkcak baskasında cıkmıcakmı ?

oda !help yazarsa diğer kişide çıkçak

yani : 1. kişi !help yazdı 2. kişide o helpi göremiyecek
Horroy
« Citoyen »
1402420440000
    • Horroy#0000
    • Profil
    • Derniers messages
    • Tribu
#4459
  0
İşte admins tablosu olcak


admins={Enesxfbxpro}


gibii..
Enesxfbxpro
« Censeur »
1402420440000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#4460
  0
Horroy a dit :
İşte admins tablosu olcak


admins={Enesxfbxpro}


gibii..

Of
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 223 / 388 › »
© Atelier801 2018

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

Version 1.27