KanedgyBO
SkriptTale
- Katılım
- 29 Mart 2018
- Mesajlar
- 923
- Elmaslar
- 382
- Puan
- 14.575
- Yaş
- 19
- Konum
- Bursa / Erikli
- Minecraft
- TheLudoBile
Discord:
TheLudoBile#3485
Forumda paylaşacağım çok basit bir skript vardı, fakat yenileme özelliğini yapamadım. Skript'den anlayan ve istediğim yere yenileme özelliğini nasıl yapacağımı söyleyen veya yapıp atan biri olursa çok sevinirim... kodun tek eksiği bu ...
Kod:
on load:
load yaml "plugins/Hayalet/Ayarlar.yml" as "ayarlar"
yaml "ayarlar" is empty:
set yaml value "yaratici modunda etkinlestirilsinmi?" from "ayarlar" to "Evet"
set yaml value "title.ust mesaj" from "ayarlar" to "&6Yapımcı: KanedgyBO ( Bilal##9409 )"
set yaml value "title.alt mesaj" from "ayarlar" to "&7Bu mesajlar plugins/Hayalet/Ayarlar.yml dosyasından değiştirilebilir."
set yaml value "title.durma suresi" from "ayarlar" to 5
set yaml value "komut.yetkin yok" from "ayarlar" to "&cBu komudu kullanmak için gerekli yetkiniz bulunmuyor."
set yaml value "komut.kullanma permi" from "ayarlar" to "hayalet.commandusing"
save yaml "ayarlar"
else:
hayaletYenile()
function hayaletYenile():
#... - istek bölgesi -
send "" to console
send "" to console
send "HAYALET EKLENTISI YENILENDI - YAPIMCI: KanedgyBO ( Bilal##9409 )" to console
send "" to console
send "" to console
save yaml "ayarlar"
stop
on death:
cancel event
hayaletOl(player)
function HOKontrol(p: player) :: boolean:
{_p}'s gamemode is spectator:
return false
{_p}'s gamemode is creative:
yaml value "yaratici modunda etkinlestirilsinmi?" from "ayarlar" isn't "evet":
return false
else:
return true
return true
function hayaletOl(oyuncu: player):
if HOKontrol({_oyuncu}) is true:
set {_oyuncu}'s gamemode to spectator
push {_oyuncu} above with force 1.5
set {ghost::%{_oyuncu}%} to true
set {_ttime} to yaml value "title.durma suresi" from "ayarlar"
set {_tttime} to "%{_ttime}% seconds" parsed as timespan
send {_oyuncu} title "%yaml value ""title.ust mesaj"" from ""ayarlar""%" with subtitle "%yaml value ""title.alt mesaj"" from ""ayarlar""%" for {_tttime}
wait {_tttime}
set {_oyuncu}'s gamemode to survival
set {ghost::%{_oyuncu}%} to false
teleport {_oyuncu} to yaml value "spawn lokasyonu" from "ayarlar"
function hayaletYardım(p: player):
send "" to {_p}
send "&eKomut seneçenekler listesi:" to {_p}
send "&7/Hayalet yenile&d, &7/Hayalet spawnayarla&d, &7/Hayalet bilgi" to {_p}
send "" to {_p}
teleport:
{ghost::%player%} is true
cancel event
pickup:
{ghost::%player%} is true
cancel event
command /hayalet [<text>]:
trigger:
player has permission "%yaml value ""komut.kullanma permi"" from ""ayarlar""%":
arg 1 is set:
arg 1 is "yenile":
hayaletYenile()
send "&aAyarlar dosyası başarıyla yenilendi."
stop
arg 1 is "setspawn" or "spawnayarla" or "merkezayarla" or "setmerkez":
set yaml value "spawn lokasyonu" from "ayarlar" to player's location
save yaml "ayarlar"
send "&aÖlen insanların doğacağı yer başarıyla ayarlandı, yer tekrardan komutlarla değiştirilebilir ancak ayarlar dosyasından yalnızca buranın yerine bakın."
stop
arg 1 is "bilgi" or "help" or "yardım" or "info":
hayaletYardım(player)
stop
else:
send ""
send "&6%arg 1% &cşeklinde bir komut seçeneği bulunmuyor."
hayaletYardım(player)
else:
send ""
send "&cBir komut seçeneği girmeniz gerekiyor."
hayaletYardım(player)
else: