×

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]Bilgi
[Script]Bilgi
Enomicefare
« Citoyen »
1405337040000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
.
.
.

-_-_-_-_-_-_-_-_Bilgi_-_-_-_-_-_-_-_-


.
.
.

Bu script ne ye yarar
Evet arkadaşlar bu script haritalarda kişilerin bilgilerine,zemin bilgilerine,süs eşyaları bilgilerine bakmaya yaramaktadır.

Bilgilendirme
Öncelikle arkadaşlar bildirmek isterimki scripti açtıktan sonra @ li bir kod açınki zemin ve süs lerin bilgilerine ulaşabilesiniz.
Arkadaşlar @ siz kod açsanızda hata vermez korkmayın bazı scriptlerde veriyor.
Bu scriptin tek bir hatası var kişilerin birine tıkladığınızda tam o sırada kişi çıkarsa hata veriyor çünkü dögüdeyken kişiyi bulamıyor.

Nasıl çalışır?
Arkadaşlar tek yapmanız gereken tık ve olcakları görün kişiyemi tıkladınız kişinin ismi x yeri ve yeri gelecektir
Bir eşyayamı tıkladınız eşyanın idi ,x ve y yeri gözükücektir
Bir zeminemi tıkladınız Zeminin idini ;x , y yerlerini;zemin uzunluğunu ve enini gösterecek açı falanda eklerdimde uğraşmadım affedin sonraki versiyonlarda verebilirim.

Bazı pngler
http://i.imgur.com/BwrSRlt.png

Code:



grounds = {}
groundsa = {}
players = {}
plist = tfm.get.room.playerList
function eventNewPlayer(name)
players[name] = {ba=false,btime=0,ca=false,ctime=0,da=false,dtime=0}
system.bindMouse(name,true)
end

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

function eventNewGame()
grounds = {}
if tfm.get.room.xmlMapInfo.xml:gmatch("<S[^/]+/>") then
for ground in tfm.get.room.xmlMapInfo.xml:gmatch("<S[^/]+/>") do
local pos = #grounds+1
if tonumber(ground:match('T="([^"]+)"')) == 13 then
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('L="([^"]+)"'))
grounds[pos].T = tonumber(ground:match('T="([^"]+)"'))
else
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
end
groundsa = {}
if tfm.get.room.xmlMapInfo.xml:gmatch("<P[^/]+/>") then
for groundss in tfm.get.room.xmlMapInfo.xml:gmatch("<P[^/]+/>") do
local posu = #groundsa+1
groundsa[posu] = {}
groundsa[posu].X = tonumber(groundss:match('X="([^"]+)"'))
groundsa[posu].Y = tonumber(groundss:match('Y="([^"]+)"'))
groundsa[posu].T = tonumber(groundss:match('T="([^"]+)"'))
end
end
end

function eventMouse(n,x,y)
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 then
ui.addTextArea(2,"<r>Zemin id:<N>"..ground.T.."<br><r>Zemin yeri(x,y):<N>"..ground.X..","..ground.Y.."<br><r>Zemin büyüklüğü(L,H):<N>"..ground.L..","..ground.H.."",n,25,350,200,nil,0x31474F,0x27373F,1,true)
players[n].ba=true
players[n].btime = 3
end
end
for name,i in pairs(tfm.get.room.playerList) do
if x > i.x - 15 and x < i.x + 15 and y > i.y - 15 and y < i.y + 15 then
ui.addTextArea(3,"<r>Kişi adı:<N>"..name.."<br><r>Yeri(x,y):<N>"..plist[name].x..","..plist[name].y.."<br><r>Kabilesi:<N>"..plist[name].tribeName.."<N>",n,240,350,200,nil,0x31474F,0x27373F,1,true)
players[n].ca=true
players[n].ctime = 3
end
end
for i,groundd in ipairs(groundsa) do
if groundd.X and groundd.Y then
if x > groundd.X - 30 and x < groundd.X + 30 and y > groundd.Y - 40 and y < groundd.Y + 40 then
ui.addTextArea(4,"<r>Süs id:<N>"..groundd.T.."<br><r>Süs yeri(x,y):<N>"..groundd.X..","..groundd.Y.."<br><r>Z:<N>"..i.."",n,455,350,200,nil,0x31474F,0x27373F,1,true)
players[n].da=true
players[n].dtime = 3
end
end
end
end

function eventLoop(k,g)
for name,i in pairs(tfm.get.room.playerList) do
if players[name].ba then
players[name].btime = players[name].btime - 0.5
if players[name].btime < 0 then
ui.removeTextArea(2,name)
players[name].ba=false
end
end
if players[name].ca then
players[name].ctime = players[name].ctime - 0.5
if players[name].ctime < 0 then
ui.removeTextArea(3,name)
players[name].ca=false
end
end
if players[name].da then
players[name].dtime = players[name].dtime - 0.5
if players[name].dtime < 0 then
ui.removeTextArea(4,name)
players[name].da=false
end
end
end
end





Tüm hakları gizlidir.
Telif hakkı sahipleri:Enomicefare,Hotspotower


Dernière modification le 1405367820000
Enesxfbxpro
« Censeur »
1405341060000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Teşekkürler.
Fatihmilano
« Citoyen »
1405341780000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Döngüdeyken kişiyi bulamıyor demişsin de, if ile kontrol etsene?
Kmlcan
« Citoyen »
1405352460000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Çalışmıyor?
Noktats
« Citoyen »
1405358700000
    • Noktats#0000
    • Profil
    • Derniers messages
#5
  0
nasıl çalışıyor
Enesxfbxpro
« Censeur »
1405360320000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Arkadaşlar sanırsam çalışması için şunları yapın:

/np @kod

^ bunu yapın ve herhangi bir farenin üstüne tıkladığınızda çalışacaktır. Konuyu yazıyor zaten
Enomicefare
« Citoyen »
1405365120000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Enesxfbxpro a dit :
Teşekkürler.

Fatihmilano a dit :
Döngüdeyken kişiyi bulamıyor demişsin de, if ile kontrol etsene?

olmazki 1000 de bir dediğim bu ihtimal ifi geçtikten sonrada çıkabilir.
Kmlcan a dit :
Çalışmıyor?

çalışıyor tekrar dene.
Noktats a dit :
nasıl çalışıyor

Enesxfbxpro a dit :
Arkadaşlar sanırsam çalışması için şunları yapın:

/np @kod

^ bunu yapın ve herhangi bir farenin üstüne tıkladığınızda çalışacaktır. Konuyu yazıyor zaten

teşekkürler


Arkadaşlar biraz kötü bir script 50 satıra sığdırılabilir uğraşmadım benim için uğraşırsanız sevinirim :)


Önemli enesfxpro lütfen prof resmini değiş tipe bak yua onu nerden buldun

Dernière modification le 1405365300000
Enomicefare
« Citoyen »
1405367760000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Arkadaşlar yeni güncelleme ile süslerin Z idisini ve Farelerin kabilesini görebileceksiniz.
Fatihmilano
« Citoyen »
1405542300000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Enomicefare a dit :
Enesxfbxpro a dit :
Teşekkürler.

Fatihmilano a dit :
Döngüdeyken kişiyi bulamıyor demişsin de, if ile kontrol etsene?

olmazki 1000 de bir dediğim bu ihtimal ifi geçtikten sonrada çıkabilir.
Kmlcan a dit :
Çalışmıyor?

çalışıyor tekrar dene.
Noktats a dit :
nasıl çalışıyor

Enesxfbxpro a dit :
Arkadaşlar sanırsam çalışması için şunları yapın:

/np @kod

^ bunu yapın ve herhangi bir farenin üstüne tıkladığınızda çalışacaktır. Konuyu yazıyor zaten

teşekkürler


Arkadaşlar biraz kötü bir script 50 satıra sığdırılabilir uğraşmadım benim için uğraşırsanız sevinirim :)


Önemli enesfxpro lütfen prof resmini değiş tipe bak yua onu nerden buldun

Trilyonda bir diyelim istersen.
Enomicefare
« Citoyen »
1405620240000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Fatihmilano a dit :

Trilyonda bir diyelim istersen.

100000 de 1 ediyor galiba
Enomicefare
« Citoyen »
1533379680000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Scriptin çalışması için /np @kod yazmayı unutmayın
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script]Bilgi
© Atelier801 2018

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

Version 1.27