Ramazan skript'i tanıtımı

ThunderEfe

Moderatör
Moderatör
Katılım
11 Nisan 2020
Mesajlar
127
Tepkime puanı
52
Puanları
50
Madalyalar
2
  • Konu Kaşifi
  • Emektar
Merhaba,


Kod:
aliases:
    aktif = 351:10
    deaktif = 351:8
options:
    ODUL: 3 bowl named "&6Hurma Paketi"
    Prefix: &6&lDavulcu Şerif
    Acıklama_Ad: &6MCTÜRKİYE - Ramazan
    Acıklama_Lore: &7MCTÜRKİYE yönetim ekibi olarak ||&7ramazan-ı şerifinizi gönülden kutlar||&7tüm ramazan boyunca olacak ||&7etkinliğimize katılmanızı bekleriz.||&e&l» &8www.handmc.xyz
function canayaz_updateLastData(new: player):
    set {canayaz::gö::last::5::name} to {canayaz::gö::last::4::name}
    set {canayaz::gö::last::4::name} to {canayaz::gö::last::3::name}
    set {canayaz::gö::last::3::name} to {canayaz::gö::last::2::name}
    set {canayaz::gö::last::2::name} to {canayaz::gö::last::1::name}
    set {canayaz::gö::last::1::name} to {_new}
    set {canayaz::gö::last::5::date} to {canayaz::gö::last::4::date}
    set {canayaz::gö::last::4::date} to {canayaz::gö::last::3::date}
    set {canayaz::gö::last::3::date} to {canayaz::gö::last::2::date}
    set {canayaz::gö::last::2::date} to {canayaz::gö::last::1::date}
    set {canayaz::gö::last::1::date} to now
function canayaz_getReward(p: player):
    give {@ODUL} to {_p}
    set {canayaz::gö::data::%{_p}%} to now
    canayaz_updateLastData({_p})
    send "{@Prefix} &7Hurma Paketini Aldın Yarın Yeniden Bekleriz." to {_p}
command /ramazanhediye:
    permission: ts.kullanim
    trigger:
        open virtual chest with size 6 named "{@Prefix}" to player
        if {canayaz::gö::data::%player%} is set:
            set {_time} to difference between {canayaz::gö::data::%player%} and now
            if {_time} > 24 hours:
                set {_open} to true
        else:
            set {_open} to true
        set {_slot} to 0
        if {_open} is true:
            loop 54 times:
                format gui slot {_slot} of player with green stained glass pane named " " to nothing
                add 1 to {_slot}
                wait 1 tick
            format gui slot 31 of player with aktif named "&eHurma Paketiniz hazır" to close then run function canayaz_getReward(player)
            format gui slot 22 of player with aktif named "&eHurma Paketiniz hazır" to close then run function canayaz_getReward(player)
        else:
            loop 54 times:
                format gui slot {_slot} of player with red stained glass pane named " " to nothing
                add 1 to {_slot}
                wait 1 tick
            set {_timeFull} to 24 hours
            remove {_time} from {_timeFull}
            set {_time} to "%{_timeFull}%"
            replace all "day" with "Gün," in {_time}
            replace all "hours" with "Saat," in {_time}
            replace all "hour" with "Saat," in {_time}
            replace all "minutes" with "Dakika," in {_time}
            replace all "minute" with "Dakika," in {_time}
            replace all "seconds" with "Saniye" in {_time}
            replace all "second" with "Saniye" in {_time}
            replace all "and " with "" in {_time}
            format gui slot 31 of player with deaktif named "&eHurma paketinizi aldınız." with lore "&7&e%{_time}% &7sonra bir paket daha alabilirsin:" to nothing
            format gui slot 22 of player with deaktif named "&eHurma paketinizi aldınız." with lore "&7&e%{_time}% &7sonra bir paket daha alabilirsin:" to nothing
        set {_status} to ""
        loop 5 times:
            set {_status} to "%{_status}%&e&l» &b%{canayaz::gö::last::%loop-number%::name}% &8&l| &7&o%{canayaz::gö::last::%loop-number%::date}%||"
        format gui slot 49 of player with paper named "&eSon hurma paketi alanlar:" with lore "%{_status}%" to nothing
        format gui slot 4 of player with book named "{@Acıklama_Ad}" with lore "{@Acıklama_Lore}" to nothing
on rightclick on sign:
    if {canayaz::gö::sign::%location of event-block%} is set:
        wait 0.3 seconds
        execute player command "ramazanhediye"

command /ramazanhediyetabela:
    permission: sk.admin
    trigger:
        if targeted block is sign or wall sign:
            if {canayaz::gö::sign::%location of targeted block%} is set:
                delete {canayaz::gö::sign::%location of targeted block%}
                send "{@Prefix} &7Tabeladan ramazanhediye Özelliği Kaldırıldı."
            else:
                set {canayaz::gö::sign::%location of targeted block%} to true
                send "{@Prefix} &7Tabelaya ramazanhediyeÖzelliği Eklendi."
        else:
            send "{@Prefix} &7Bir Tabelaya Bakmıyorsun."

command /ramazanhediyesifirla [<player>]:
    permission: sk.admin
    trigger:
        delete {canayaz::gö::data::%arg-1%}
        send "{@Prefix} &7Üyenin bekleme süresi sıfırlandı."
on script load:
    if {canayaz::gö::last::1::name} is not set:
        set {canayaz::gö::last::1::name} to "-"
        set {canayaz::gö::last::2::name} to "-"
        set {canayaz::gö::last::3::name} to "-"
        set {canayaz::gö::last::4::name} to "-"
        set {canayaz::gö::last::5::name} to "-"
        set {canayaz::gö::last::1::date} to "-"
        set {canayaz::gö::last::2::date} to "-"
        set {canayaz::gö::last::3::date} to "-"
        set {canayaz::gö::last::4::date} to "-"
        set {canayaz::gö::last::5::date} to "-"
        
        
on rightclick holding a bowl:
    if display name of tool is "&6Hurma Paketi":
        if chance of 30%:
            give 1 diamond named "&fMCTÜRKİYE" to player
            execute console command "/cc give p para 1 %player%"
            send "&8&6Paket-1 &ehediyesini aldın." to player
            send "&6&l(&c&l!&6&l) &e%player% Hurma Paketinden &6Paket-1 &ehediyesini aldı." to player
            remove a bowl named "&6Hurma Paketi" from player
            stop trigger
 
        if chance of 25%:
            give 2 diamond named "&fMCTÜRKİYE" to player
            execute console command "/cc give p claim 1 %player%"
            send "&8&6Paket-2 &ehediyesini aldın." to player
            send "&6&l(&c&l!&6&l) &e%player% Hurma Paketinden &6Paket-2 &ehediyesini aldı." to player
            remove a bowl named "&6Hurma Paketi" from player
            stop trigger
            
        if chance of 20%:
            give 3 diamond named "&fMCTÜRKİYE" to player
            execute console command "/cc give p parea 1 %player%"
            send "&8&6Paket-3 &ehediyesini aldın." to player
            send "&6&l(&c&l!&6&l) &e%player% Hurma Paketinden &6Paket-3 &ehediyesini aldı." to player
            remove a bowl named "&6Hurma Paketi" from player
            stop trigger
        else:
            stop trigger
 

BaRoNeaS

Bir demir göründü efendim!
Katılım
22 Temmuz 2020
Mesajlar
5
Tepkime puanı
6
Puanları
25
Madalyalar
0
Size Ait Bi skript mi yoksa alıntımı
 
Üst