Çözüldü İSTEK SCRİPTLER

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Benim dediğim bu değildi. Oyuncu NPC'ye sağ tıklayacak Günlük Ödül, Haftalık Ödül ve Aylık Ödül diye karşısına çıkacak. Günlük ödül 200 Coin, haftalık ödül 10K coin ve Aylık ödül 5 Günlük VIP+ ve 20K coin Onları seçecek. Onu demek istiyorum.
 
Kod:
command /ödül:
    trigger:
        open virtual chest with size 3 named "&5Ödül" to player
        make gui slot 0, 1, 7, 8, 9, 17, 18, 19, 25, and 26 of player with Gray_Stained_Glass_Pane named ""
        make gui slot 2, 3, 4, 5, 6, 20, 21, 22, 23, and 24 of player with Black_Stained_Glass_Pane named ""
        make gui slot 10, 12, 14, and 16 of player with Red_Stained_Glass_Pane named ""
        make gui slot 11 of player with Nether_Star named "&cGünlük Ödül" with lore "&9&l● &8(&616&8) &aZümrüt Blok||&9&l● &8(&616&8) &bElmas Blok||&9&l● &8(&616&8) &eAltın Blok||&9&l● &8(&616&8) &fDemir Blok" to run:
            set {_süre} to difference between {gunlukodul::%player%} and now
            if {_süre} is less than 24 hour:
                set {_süre} to difference between {_süre} and 24 hour converted to hours
                send "&bGünlük Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 16 emerald block, 16 diamond block, 16 gold block, 16 iron block to player
                send player title "&8(&aGünlük Ödül&8) &3Başarıyla Alındı !"
                set {gunlukodul::%player%} to now
        make gui slot 13 of player with Nether_Star named "&cHaftalık Ödül" with lore "&9&l● &8(&632&8) &aZümrüt Blok||&9&l● &8(&632&8) &bElmas Blok||&9&l● &8(&632&8) &eAltın Blok||&9&l● &8(&632&8) &fDemir Blok" to run:
            set {_süre} to difference between {haftalikodul::%player%} and now
            if {_süre} is less than 168 hours:
                set {_süre} to difference between {_süre} and 168 hour converted to hours
                send "&bHaftalık Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 32 emerald block, 32 diamond block, 32 gold block, 32 iron block to player
                send player title "&8(&aHaftalık Ödül&8) &3Başarıyla Alındı !"
                set {haftalikodul::%player%} to now     
        make gui slot 15 of player with Nether_Star named "&cAylık Ödül" with lore "&9&l● &8(&664&8) &aZümrüt Blok||&9&l● &8(&664&8) &bElmas Blok||&9&l● &8(&664&8) &eAltın Blok||&9&l● &8(&664&8) &fDemir Blok" to run:
            set {_süre} to difference between {aylikodul::%player%} and now
            if {_süre} is less than 720 hours:
                set {_süre} to difference between {_süre} and 720 hour converted to hours
                send "&bAylık Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 64 emerald block, 64 diamond block, 64 gold block, 64 iron block to player
                send player title "&8(&aAylık Ödül&8) &3Başarıyla Alındı !"
                set {aylikodul::%player%} to now
 
Kod:
command /ödül:
    trigger:
        open virtual chest with size 3 named "&5Ödül" to player
        make gui slot 0, 1, 7, 8, 9, 17, 18, 19, 25, and 26 of player with Gray_Stained_Glass_Pane named ""
        make gui slot 2, 3, 4, 5, 6, 20, 21, 22, 23, and 24 of player with Black_Stained_Glass_Pane named ""
        make gui slot 10, 12, 14, and 16 of player with Red_Stained_Glass_Pane named ""
        make gui slot 11 of player with Nether_Star named "&cGünlük Ödül" with lore "&9&l● &8(&616&8) &aZümrüt Blok||&9&l● &8(&616&8) &bElmas Blok||&9&l● &8(&616&8) &eAltın Blok||&9&l● &8(&616&8) &fDemir Blok" to run:
            set {_süre} to difference between {gunlukodul::%player%} and now
            if {_süre} is less than 24 hour:
                set {_süre} to difference between {_süre} and 24 hour converted to hours
                send "&bGünlük Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 16 emerald block, 16 diamond block, 16 gold block, 16 iron block to player
                send player title "&8(&aGünlük Ödül&8) &3Başarıyla Alındı !"
                set {gunlukodul::%player%} to now
        make gui slot 13 of player with Nether_Star named "&cHaftalık Ödül" with lore "&9&l● &8(&632&8) &aZümrüt Blok||&9&l● &8(&632&8) &bElmas Blok||&9&l● &8(&632&8) &eAltın Blok||&9&l● &8(&632&8) &fDemir Blok" to run:
            set {_süre} to difference between {haftalikodul::%player%} and now
            if {_süre} is less than 168 hours:
                set {_süre} to difference between {_süre} and 168 hour converted to hours
                send "&bHaftalık Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 32 emerald block, 32 diamond block, 32 gold block, 32 iron block to player
                send player title "&8(&aHaftalık Ödül&8) &3Başarıyla Alındı !"
                set {haftalikodul::%player%} to now    
        make gui slot 15 of player with Nether_Star named "&cAylık Ödül" with lore "&9&l● &8(&664&8) &aZümrüt Blok||&9&l● &8(&664&8) &bElmas Blok||&9&l● &8(&664&8) &eAltın Blok||&9&l● &8(&664&8) &fDemir Blok" to run:
            set {_süre} to difference between {aylikodul::%player%} and now
            if {_süre} is less than 720 hours:
                set {_süre} to difference between {_süre} and 720 hour converted to hours
                send "&bAylık Ödülünü Almaya &8(&3%{_süre}%&8) &bSaat Var." to player
            else:
                give 64 emerald block, 64 diamond block, 64 gold block, 64 iron block to player
                send player title "&8(&aAylık Ödül&8) &3Başarıyla Alındı !"
                set {aylikodul::%player%} to now

Teşekkür ederim. Güzel.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst