Harun553
Zombi Geldi, Beni Yedi
- Katılım
- 3 Eylül 2014
- Mesajlar
- 260
- Elmaslar
- 97
- Puan
- 13.950
- Konum
- Ankara
- Minecraft
- HarunBulbull
Discord:
HarunBulbull#8233
Skript ölünce son söz kısmı çıkıyor hologram gibi ve 15 saniye sonra siliniyor sunucu kapatılırsa sonsöz armor standleri otomatik siliniyor yani bugda kalmıyor eğer kalırsada /sil komutu ilede silebilirsiniz
Ekli dosyayı görüntüle 152777Kod:function sonsoz(text:text,olen:location,olduren:text,olens:text): set {_line::1} to "&o&l&6Ölduren Kişi &f%{_olduren}%" set {_line::2} to "&o&l&6Ölen Kişi &f%{_olens}%" set {_line::3} to "&8Sonsöz: &o&m&e%{_text}%" set {_yukseklik} to {_olen}'s y coords + 1 set {_olen}'s y coords to {_olen}'s y coords + 1 loop 3 times: spawn a armor stand at {_olen} set {_armor::%loop-number%} to spawned armor stand set metadata "silinebilir" of spawned armor stand to true set display name of spawned armor stand to "%{_line::%loop-number%}%" set {_teleport} to {_armor::%loop-number%} loop-number is 2: remove 0.25 from {_teleport}'s y coords loop-number is 3: remove 1 from {_teleport}'s y coords add "{Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,Small:1b,Marker:1b}" to nbt of spawned armor stand teleport {_armor::%loop-number%} to {_teleport} delete {_teleport} wait 15 seconds loop 3 times: kill {_armor::%loop-number%} command /sil: permission: op trigger: loop all armor stands: "%uncoloured display name of loop-entity%" contains "Sonsöz" or "Ölen Kişi" or "Ölduren Kişi" kill loop-entity on skript start: loop all armor stands: "%uncoloured display name of loop-entity%" contains "Sonsöz" or "Ölen Kişi" or "Ölduren Kişi" kill loop-entity on load: set {sonsözler::*} to "Bir dahaki el kazanacam;5000" and "Şaşkınlık içerisindeyim" command /sonsözal: trigger: wait a tick open virtual chest with size 5 named "&6Son söz market" to player wait a tick make gui slot integers between 0 and 9 of player with black stained glass pane with name " " to close make gui slot integers between 36 and 44 of player with black stained glass pane with name " " to close make gui slot 17 and 26 and 35 and 18 and 27 of player with black stained glass pane with name " " to close set {_n} to 10 loop {sonsözler::*}: delete {_fiyat::*} {_n} is 17 or 26: add 2 to {_n} {_n} is 35: stop set {_a} to "%loop-value%" set {_fiyat::*} to split {_a} at ";" replace all ";%{_fiyat::2}%" with "" in {_a} "%{_fiyat::2}%" contains "<none>": set {_fiyat::2} to 1000 make gui slot {_n} of player with paper with name "&b%{_a}%" with lore "&8Fiyat: &f%{_fiyat::2}%" to run: set {_a} to "%uncoloured lore of clicked item%" replace all "Fiyat: " with "" in {_a} set {_a} to {_a} parsed as number player's balance >= {_a}: send "&2Bir sonsöz aldın" add "%uncoloured name of clicked item%" to {sonsöz::%player%::*} remove {_a} from player's balance execute player command "sonsözal" else: send "&cparan yok" "%{sonsöz::%player%::*}%" contains "%{_a}%": make gui slot {_n} of player with paper with name "&b%{_a}%" with lore "&cAlınmış" to nothing add 1 to {_n} on death of player: attacker is a player {sonsöz::%victim%} is set sonsoz("%{sonsöz::%victim%}%",victim,"%attacker%","%victim%") command /sonsözlerim: trigger: open virtual chest with size 5 named "&6Son sözlerin" to player wait a tick make gui slot integers between 0 and 9 of player with black stained glass pane with name " " to close make gui slot integers between 36 and 44 of player with black stained glass pane with name " " to close make gui slot 17 and 26 and 35 and 18 and 27 of player with black stained glass pane with name " " to close set {_n} to 10 loop {sonsöz::%player%::*}: {_n} is 17 or 26: add 2 to {_n} {_n} is 35: stop "%{sonsözler::*}%" contains "%loop-value%" make gui slot {_n} of player with paper with name "&b%loop-value%" with lore "&2Son söz seç" to run: set {sonsöz::%player%} to "%uncoloured name of clicked item%" send "&2Seçildi; &8%{sonsöz::%player%}%" add 1 to {_n}
burada 2 adet örnek var yeni şey ekliyeceğimizde and "sonsözümüz" şeklinde ekleyebiliyoruz tutarını ayarlamak için and "sonsözümüz;miktar" şeklinde yapmamız gerekiyor
Ekli dosyayı görüntüle 152778
Ekli dosyayı görüntüle 152779
Ekli dosyayı görüntüle 152780
Skripti pek denemedim test için yaptığım yerler kalmış olabilir bildirirseniz düzeltirim
İstediğiniz skriptleri mesajda belirtirseniz isteğinize göre yapıp paylaşabilirim
Ellerine sağlık, sadece bir önerim olacak. Sonsözleri belli başlı şeyler yerine oyuncu isteğine bırakabilirsin. Yani;
Kod:
on load:
set {sonsözler::*} to "Bir dahaki el kazanacam;5000" and "Şaşkınlık içerisindeyim"
yazmak yerine;
Kod:
command /sözal [<text>]:
trigger:
if player's balance >= 1000:
if {sonsözler::%player%} contains arg-1:
stop
send "Bu sözü zaten almışsın."
else:
remove 1000 from player's balance
add arg-1 to {sonsözler::%player%}
gibi.