Metintası Sistemi - Skript Paylaşımları

Vicetia

Ekip Arkadaşları aranır
Mesajlar
67
En iyi cevaplar
1
Beğeniler
8
Puanları
90
Ruh hali
logo223.png


Merhabalar efendim,

Komutlar

/metintaşı ayarla - Metin taşını yerleştirir
/metintaşı ödülkaydet - Envanterinizdeki tüm eşyaları metin taşı ödülü olarak kaydeder.
/metintaşı ödülver - Metin taşı ödüllerini verir

Ayarlar

Metin taşı canı: 100(Bu rakamı değiştirebilirsiniz örn: 100 yerine 1000 yaparsanız metintaşı nın canı 1000 olur.)
Metin taşı para ödülü: 10000(Metintaşını kırdıkdan sonra kıran kişiye verilecek ödül miktarı örn: 10000 yerine 100000 yapabilirsiniz.)

Skripti istediğiniz gibi kendinize göre ayarlayın isterseniz skripti geliştirebilir Forum Üyeleri ile paylaşabilirsiniz.

 


Vicetia

Ekip Arkadaşları aranır
Mesajlar
67
En iyi cevaplar
1
Beğeniler
8
Puanları
90
Ruh hali
Skript
Kod:
Kod:
options:

    Metin taşı canı: 100

    Metin taşı para ödülü: 10000

    

command /metintaşı [<text>]:

    permission: op

    trigger:

        arg 1 is "ayarla":

            metinTasiKur(player)

            send "&eMetin taşı başarıyla yerleştirildi!"

        else if arg 1 is "ödülkaydet":

            delete {metintasi::oduller::*}

            set {metintasi::oduller::*} to all items in player's inventory

            send "&eEnvanterinizdeki tüm eşyalar ödül olarak kaydedildi!"

        else if arg 1 is "ödülver":

            give {metintasi::oduller::*} to player

            send "&eMetin taşı ödülleri verildi."

        else:

            send "&6&lMETIN TAŞI&e Yardım menüsü"

            send "&7"

            send "&7> &a/metintaşı ayarla&f -&7 Metin taşını yerleştirir."

            send "&7> &a/metintaşı ödülkaydet&f -&7 Envanterinizdeki tüm eşyaları metin taşı ödülü olarak kaydeder."

            send "&7> &a/metintaşı ödülver&f -&7 Metin taşı ödüllerini verir."

            send ""

            

            

function metinTasiKur(l:location, no regen:boolean=false):

    set block at {metintasi::tas} to air

    set {metintasi::tas} to location of block at {_l}

    set block at {metintasi::tas} to obsidian

    delete holo {metintasi::holo}

    {_no regen} is false:

        set {metintasi::can} to {@Metin taşı canı}

    set {_percent} to {@Metin taşı canı}/100

    create a hologram with lines "&3&lMETIN TAŞI","","%progress(100, {metintasi::can}/{_percent})%" and "&e%%%{metintasi::can}/{_percent}%" at location 2 meters above {metintasi::tas} and store it in {metintasi::holo}

    

on load:

    block at {metintasi::tas} is bedrock:

        metinTasiKur({metintasi::tas})

    else:

        metinTasiKur({metintasi::tas}, true)

    

on break of obsidian:

    {metintasi::tas} is location:

        remove 1 from {metintasi::can}

        {metintasi::can} < 0:

            broadcast ""

            broadcast "&a>&e>&c> &6%player%&e adlı oyuncu &3Metin Taşı&e'nı kırmayı başardı!"

            broadcast ""

            give {metintasi::oduller::*} to player

            set line 3 of holo {metintasi::holo} to "&7..."

            set line 4 of holo {metintasi::holo} to "&cKırıldı!"

            add {@Metin taşı para ödülü} to player's money

            wait 5 second

            broadcast "&3Metin taşı&e 10 dakika sonra tekrardan ortaya çıkacak!"

            set block to bedrock

            set {_later} to 10 minutes later

            last character of "%{_later} formatted with ""m""%" is "1","2","3","4","5","7" or "8":

                set {_turkish} to "de"

            else:

                set {_turkish} to "da"

            set line 3 of holo {metintasi::holo} to "&e%{_later} formatted with ""HH:mm""%'%{_turkish}% ortaya çıkacak."

            wait 10 minute

            metinTasiKur({metintasi::tas})

        else:

            cancel event

            set {_percent} to {@Metin taşı canı}/100

            set {_percent} to {metintasi::can}/{_percent}

            set line 3 of holo {metintasi::holo} to "%progress(100, {_percent})%"

            set line 4 of holo {metintasi::holo} to "&e%%%{_percent}%"

            

            

            

function progress(total:number, progressAmount:number) :: text:

    set {_total} to floor({_total}/2)

    set {_progressAmount} to floor({_progressAmount}/2)

    set {_progress} to ""

    set {_notprogress} to ""

    {_progressAmount} is not 0:

        loop {_progressAmount} times:

            set {_progress} to "&a|%{_progress}%"

    

    set {_times} to {_total}-{_progressAmount}

    {_times} is not 0:

        loop {_times} times:

            set {_notprogress} to "&c|%{_notprogress}%"

    return "%{_progress}%%{_notprogress}%"
 

Üst