![]() |
![]() 1466355960000
| | ||
[Modéré par Sha, raison : Alıntıdaki iletiye müdahale edildi.] |
![]() 1466356200000
| | ||
[Modéré par Sha] |
![]() ![]() « Citoyen » 1466383560000
| 0 | ||
Kimsenin buna cevap vermeyeceğini verdiği zaman ise yanlış söyleyeceğini düşünüyorum ama... Bir textArea yı başka bir textArea nın altında iken üstüne çıkarmak için ne yapmak gerekir? |
0 | ||
survivorda kendimizi geliştirmek için bi kod varmı ? varsa verebilirmisiniz |
![]() ![]() « Citoyen » 1466518260000
| 0 | ||
gotr1 a dit : Yok Öyle Bir Kod Kendini Geliştirmek İçin Sürekli Oyna Yada Renkli Drag Filan Al Siyah Yap ![]() |
![]() ![]() « Citoyen » 1466524140000
| 0 | ||
Bir textArea'nın açıldıktan belli bir süre sonra kapanmasını nasıl sağlarım |
![]() ![]() « Citoyen » 1466535240000
| 0 | ||
Aligaffa a dit : timer=10 ui.addTextArea(1,"deneme",name,5,30,150,20,0x000000,0xF8FF00,500,true) function eventLoop() timer=timer-0.5 if timer==0 then ui.removeTextArea(1) end end ------------------ hatalı olabilir denemdim |
0 | ||
qzcn a dit : Sen çaylak |
![]() ![]() « Citoyen » 1467044460000
| 0 | ||
gotr1 a dit : Yeni gördüm üzgünüm owner = "Zekabat" interval = 10 cannonInfo = {} difficulty = 8 maps = {3107377,305748,1539148,4543602,390649,495880,1463332,1492805,292678,305753,1545834,3175437,2964900,1812056,852617,799141,1794907,2939549,459284,1519483,1794873,811211,306360,489829,479091,3419948,290546,276534,3220945,1754355,281649,390657,311496,295988,802958,2643833} function main() tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) tfm.exec.disableAutoTimeLeft(true) tfm.exec.newGame(maps[math.random(#maps)]) end function eventNewGame() interval = 10 end function eventNewPlayer(name) ui.addTextArea(1, "<a href='event:easy'><VP><font size='14'>E", name, 728, 21, nil, nil, 0x000001, nil, 0.7) ui.addTextArea(2, "<a href='event:medium'><J><font size='14'>M", name, 753, 21, nil, nil, 0x000001, nil, 0.7) ui.addTextArea(3, "<a href='event:hard'><R><font size='14'>H", name, 781, 21, nil, nil, 0x000001, nil, 0.7) end function eventTextAreaCallback(id, name, cb) if (owner==name or owner=="nobody") and interval > 6 then interval = 10 if cb == "easy" then difficulty = 7 elseif cb == "medium" then difficulty = 8 elseif cb == "hard" then difficulty = 9 end end end function eventLoop(time, remaining) if time>3000 then interval = interval - 1 if interval == difficulty then ui.removeTextArea(4) local users = {} for name,p in pairs(tfm.get.room.playerList) do if not p.isDead then users[#users+1] = name end end cannonInfo = spawnCannon(users[math.random(#users)]) interval = 11 elseif interval<=5 then tfm.exec.setUIMapName("<ROSE>The next map will start in "..interval) if interval == 0 then tfm.exec.newGame(maps[math.random(#maps)]) end elseif interval == 10 then tfm.exec.addShamanObject(17, cannonInfo[1], cannonInfo[2], cannonInfo[3]-90) cannonInfo={} end end if remaining<=0 then ui.addTextArea(4, "<VP><p align='center'><B>CONGRATULATIONS</B>\n\n<CH><i>you beat the CPU!", nil, 290, 22, 180, nil, 0x000001, 0xCA0805, 0.8) tfm.exec.newGame(maps[math.random(#maps)]) end end function eventPlayerDied(name) if playerCount() < 1 then interval = 6 end end function playerCount() local n=0 for name, player in pairs(tfm.get.room.playerList) do if not player.isDead then n=n+1 end end return n end function spawnCannon(name) local info = {} local px = tfm.get.room.playerList[name].x local py = tfm.get.room.playerList[name].y local cnnx = math.random()*800 local cnny = math.random()*400 if cnny > py then cnny = py-math.random(50)-20 end if math.abs(cnnx-px) > 300 then cnnx = px + math.random(-50, 50) end local ang = math.deg(math.atan2(cnny-py, cnnx-px)) tfm.exec.addShamanObject(0, cnnx, cnny, ang+90) info[1] = cnnx info[2] = cnny info[3] = ang return info end for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end main() Sari kısma adını yaz, EN forumda buldum kod benim değildir. |
![]() ![]() « Citoyen » 1467843420000
| 0 | ||
Bir kişinin adının rengini totemdeki gibi nasıl değiştirebilirim? |
![]() ![]() « Citoyen » 1467843780000
| 0 | ||
efsanewiadam a dit : tfm.exec.setNameColor(oyuncuİsmi, renk) |
![]() ![]() « Citoyen » 1467848100000
| 0 | ||
Barsems a dit : Onu demedim cümlemi tam okusaydın Totemi ayarlarken bir renk seçme sekmesi açılıyor adımın rengini ayarlarken o sekmeyi nasıl açabilirim demek istedim. |
![]() ![]() « Citoyen » 1467886740000
| 0 | ||
• ui.showColorPicker ( id, targetPlayer, defaultColor, title ) |
![]() ![]() « Citoyen » 1467911340000
| 0 | ||
Bu neden çalışmıyor? ui.addTextArea(2," ",name,8,17,125,50,0x000000,0xFFEE24,500,true) ui.addTextArea(1,"<p align='center'><a href='event:'><b><font size='14' color='#0076FF'>Adının Rengini Değiştir</font></b></a></p>",name,10,25,120,70,0x000000,0x000000,500,true) function eventTextAreaCallback(id, name, callback) if (name) then if (id == 1) then ui.showColorPicker(palet,targetPlayer,defaultColor,title) end end end |
![]() ![]() « Citoyen » 1467911820000
| 0 | ||
efsanewiadam a dit : parametreleri doldurursan çalışır ui.showColorPicker(birSayı,oyuncuİsmi,herhangiBirRenkKodu,"başlıktaNeYazacağı") Ayrıca eventColorPicked olmadan seçtiğin hiçbir renk çalışmaz. Dernière modification le 1467911880000 |
![]() ![]() « Citoyen » 1467915780000
| 0 | ||
Hayla Çalışmıyor :( ui.addTextArea(2," ",name,8,17,125,50,0x000000,0xFFEE24,500,true) ui.addTextArea(1,"<p align='center'><a href='event:'><b><font size='14' color='#0076FF'>Adının Rengini Değiştir</font></b></a></p>",name,10,25,120,70,0x000000,0x000000,500,true) function eventTextAreaCallback(id, name, callback) if (name) then if (id == 1) then ui.showColorPicker(1,PlayerName,000000,"Adının Rengini Değiştir" ) function eventColorPicked(colorPickerId,PlayerName,color) print(PlayerName.."'ın Renk Kodu: : "..color) end end end end |
![]() ![]() « Citoyen » 1467921780000
| 0 | ||
efsanewiadam a dit : hâlâ çalışmıyor çünkü bir fonksiyonun içine başka bir fonksiyon koyamazsın Böyle olmalı function eventTextAreaCallback(vs,vs) end function eventColorPcked(vs,vs) end Ayrıca print ile yazdırman renk değiştirmez print ile beraber tfm.exec.setNameColor() koyarsan ve ayarlarsan kod çalışır. Yani ui.addTextArea(2," ",name,8,17,125,50,0x000000,0xFFEE24,500,true) ui.addTextArea(1,"<p align='center'><a href='event:'><b><font size='14' color='#0076FF'>Adının Rengini Değiştir</font></b></a></p>",name,10,25,120,70,0x000000,0x000000,500,true) function eventTextAreaCallback(id, name, callback) if (name) then if (id == 1) then ui.showColorPicker(1,name,000000,"Adının Rengini Değiştir" ) end end end function eventColorPicked(colorPickerId,PlayerName,color) tfm.exec.setNameColor(PlayerName,color) print(PlayerName.."'ın Renk Kodu: : "..color) end |
![]() ![]() « Citoyen » 1467925320000
| 0 | ||
Barsems a dit : Teşekkürler. Oyga dan Eğitim mi aldın :D |
![]() ![]() « Citoyen » 1467925680000
| 0 | ||
efsanewiadam a dit : Bir noobun bir usta oluşu :) Önemli değil. |
![]() ![]() « Citoyen » 1467989760000
| 0 | ||
Space tuşuna basınca uçma kodunu verebilir misiniz Dernière modification le 1467990120000 |