[BattlePass] McPass+ Sistemi - Puanla Level Ödülleri - 250+ Satır %0 Bug - %100 GUI

Kod yazımını ve skriptin özgünlüğünü beğendim.


  • Kullanılan toplam oy
    6

Risepixel

Taş Madencisi
Mesajlar
74
En iyi cevaplar
6
Beğeniler
64
Puanları
310
Kendi sunucum için yazmış olduğum BattlePass sistemidir. Puan üzerinden çalışır ve Pass+ üyeliği bulunmaktadır.

Tamamiyle Gui Desteklidir. Oyuncuların kullanabileceği komut yalnızca /McPassPanel olarak ayarlanmıştır. Gui'ye erişim izni verir.

Detaylı tanıtımı video içeriğinde göstermekteyim.

Tam olarak 270 satır tutmuştur. Çok temiz bir şekilde yazılmış bir koddur. Reload süresi 1.2 saniye olarak saptanmıştır(Local Server).

GEREKLİDİR: Skript, SkQuery

Oyuncu Komutları ve Permission;

Oyuncuların kullanabileceği /McPassPanel dışında komut yoktur. Permission bulunmamaktadır.
Admin komutları op kontrolu yapılacak şekilde ayarlanmıştır.


Admin Komutları;

/McPassSifirla - Bu komut ile tüm puanları, zamanı ve verileri sıfırlarsınız. Pass üyelikleri gitmez.
/McPassOduller <LevelNumarasi> - Bu komut ile levellara koyduğunuz ödülleri görüntülersiniz. (1-9 arası normal pass, 10-18 arası pass+)
/McPassAktive <oyuncu> - Bu komut ile dilediğiniz kişiye Pass+ erişimi verirsiniz.
/McPassPuan <Ekle/Sil> <Miktar> - Bu komut ile yalnızca kendinize puan verebilirsiniz. Test amaçlı koyulmuştur.
/McPassCard <oyuncu> - Bu komut ile Pass+ erişim biletini istediğiniz oyuncuya verirsiniz.


Levellara ödüller nasıl eklenir? /McPass Ekle Komutu;

Levellara Maksimum 9 Ödül ekleyebilmektesiniz. Ölçeklenebilir ancak bu şekilde uygun gördüm. Eklemek istediğiniz eşyayı elinize alırsınız. Elinizde bulunan eşya bulunduğu miktar kadar eklenir. Eşya elinizdeyken /McPass <Ekle/Sil> <Level> komutu ile dilediğiniz level ödülüne ekleyebilirsiniz. Silmek için aynı şekilde eşya elinizde olmalıdır.


Video Tanıtım;


Java:
#Gerekli: SkQuery, Skript

#Skript writed by Reloven (Risepixel)
#Please do not share skript for respect.

options:
    Level1Puan: 85
    Level2Puan: 154
    Level3Puan: 275
    Level4Puan: 495
    Level5Puan: 892
    Level6Puan: 1606
    Level7Puan: 2891
    Level8Puan: 5203
    Level9Puan: 9360

every 10 minutes:
    remove 10 from {McPassSure.Kalan}
    if {McPassSure.Kalan} is less than 0:
        broadcast "&6McPass Görevleri Sıfırlanmıştır!"
    set {McPassSure.KalanSon} to rounded {McPassSure.Kalan}/60
    broadcast "%{McPassSure.KalanSon}% Saat"
    loop offline players:
        if {McPassErisim.%loop-value%} is not less than 0:
            remove 10 from {McPassErisim.%loop-value%}
        else:
            set {PassCard::%loop-value%} to 0

on right click:
    if name of player's tool contains "&bMcPass&e+ &6Active Card [30 Gün]":
        broadcast "&c%player%, &bMcPass&e+ &6bileti ile erişimini yükseltti!"
        remove 1 from item amount of event-item
        set {McPassErisim.%player%} to 43200
        set {PassCard::%player%} to 1

Command /McPassCard <offline player>:
    trigger:
        set {_Player} to arg 1
        give {_Player} paper named "&bMcPass&e+ &6Active Card [30 Gün]" with lore " " and "&9Bu bilet ile 30 günlüğüne &bMcPass&e+" and "&9erişimi elde edersin. Otomatik" and "&9olarak sona erer."

Command /McPassPuan <text> <number>:
    trigger:
        if arg 1 is equal to "Ekle":
            broadcast "&6 %arg 2% puan hesabiniza eklendi."
            add arg 2 to {McPass::Puan.%player%}
        else if arg 1 is equal to "Sil":
            send "&6 %arg 2% &6puan hesabinizdan silindi."
            remove arg 2 from {McPass::Puan.%player%}

Command /McPass <text> <number>:
    usage: &e[ /McPass <Ekle/Sil> <Hangi Seviyenin Ödülü> ] Elinizde bulunan itemi adetiyle beraber ekler.
    trigger:
        if player is op:
            if arg-1 is equal to "ekle":
                set {_Counter} to 0
                loop {McPass::Gift::%arg-2%::*}:
                    add 1 to {_Counter}
                if {_Counter} is not greater than or equal to 9:
                    add player's tool to {McPass::Gift::%arg-2%::*}
                    broadcast "&6Başarıyla Level %arg-2% Ödüllerine Eklendi!"
                else:
                    broadcast "&4Maksimum 9 Adet Ödül Ekleyebilirsin!"
            if arg-1 is equal to "sil":
                remove player's tool from {McPass::Gift::%arg-2%::*}

Command /McPassAktive <offline player>:
    trigger:
        if player is op:
            if {PassCard::%arg 1%} is not equal to 1:
                send "&6PassCard %arg 1% için aktif edildi."
                set {PassCard::%arg 1%} to 1
            else:
                set {PassCard::%arg 1%} to 0

command /McPassOduller <number>:
    trigger:
        if player is op:
            open chest with 1 row named "&cLevel %arg 1% Odulleri" to player
            set {_Oduller} to 0
            wait 1 tick
            loop {McPass::Gift::%arg 1%::*}:
                format slot {_Oduller} of player with loop-value named "%loop-value%" to be unstealable
                add 1 to {_Oduller}

Command /McPassPanel:
    trigger:
        if {McPass::Puan.%player%} is not set:
            set {McPass::Puan.%player%} to 0
        open chest with 3 row named "&9%player% &c⇝ &8Pass Puanı: &9%{McPass::Puan.%player%}%" to player
        wait 1 tick
        format gui slot 23 of player with {ArrowRight} named "&8Karakter Paneline Dön" with lore " " to run player command "/character"
        format slot 21 of player with barrier named "&4Paneli Kapat" to close
        format slot 22 of player with redstone torch named "&cMcPass Bilgileri / SSS" with lore " " and " &bNasıl Puan Kazanırım?" and " " and "&e - Her Blok Kırma 1 Puan" and "&e - Her Blok Koyma 1 Puan" and "&e - Her Oyuncu Öldürme 3 Puan" and "&e - Her Mob Öldürme 2 Puan" and " " and " &bKısıtlamalar Neler?" and " " and "&e - Blok kırma yalnızca maden" and "&e    blokları için geçerlidir." and " " and "&e - Aynı oyuncuyu bir hafta içinde" and "&e    21 kez öldürüp puan alabilirsiniz." and " " and "&e - Blok koyma ile maksimum" and "&e    2000 Pass puanı kazanabilirsin." and " " and "&bNe Kadar Süre Kaldı?" and " " and "&e - McPass her hafta sıfırlanır." and "&e    Kalan Süre: &c%{McPassSure.KalanSon}% Saat" to close

        if {McPass::Puan.%player%} is greater than or equal to {@Level1Puan}:
            format slot 0 of player with yellow stained glass pane of unbreaking named "&6McPass Level 1" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level1 1"]
        else:
            format slot 0 of player with yellow stained glass pane named "&6McPass Level 1" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level1Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level2Puan}:   
            format slot 1 of player with yellow stained glass pane of unbreaking named "&6McPass Level 2" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level2 2"]
        else:
            format slot 1 of player with yellow stained glass pane named "&6McPass Level 2" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level2Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level3Puan}:       
            format slot 2 of player with yellow stained glass pane of unbreaking named "&6McPass Level 3" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level3 3"]
        else:
            format slot 2 of player with yellow stained glass pane named "&6McPass Level 3" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level3Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level4Puan}:       
            format slot 3 of player with yellow stained glass pane of unbreaking named "&6McPass Level 4" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level4 4"]
        else:
            format slot 3 of player with yellow stained glass pane named "&6McPass Level 4" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level4Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level5Puan}:
            format slot 4 of player with yellow stained glass pane of unbreaking named "&6McPass Level 5" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level5 5"]
        else:
            format slot 4 of player with yellow stained glass pane named "&6McPass Level 5" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level5Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level6Puan}:
            format slot 5 of player with yellow stained glass pane of unbreaking named "&6McPass Level 6" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level6 6"]
        else:
            format slot 5 of player with yellow stained glass pane named "&6McPass Level 6" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level6Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level7Puan}:
            format slot 6 of player with yellow stained glass pane of unbreaking named "&6McPass Level 7" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level7 7"]
        else:
            format slot 6 of player with yellow stained glass pane named "&6McPass Level 7" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level7Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level8Puan}:
            format slot 7 of player with yellow stained glass pane of unbreaking named "&6McPass Level 8" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level8 8"]
        else:
            format slot 7 of player with yellow stained glass pane named "&6McPass Level 8" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level8Puan} Puan" to be unstealable

        if {McPass::Puan.%player%} is greater than or equal to {@Level9Puan}:
            format slot 8 of player with yellow stained glass pane of unbreaking named "&6McPass Level 9" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level9 9"]
        else:
            format slot 8 of player with yellow stained glass pane named "&6McPass Level 9" with lore " " and "&c9 Adet hediye içerebilir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level9Puan} Puan" to be unstealable


        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level1Puan}:
                format slot 9 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 1" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level10 10"]
            else:
                format slot 9 of player with green stained glass pane named "&bMcPass&e+ &6Level 1" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level1Puan} Puan" to be unstealable
        else:
            format slot 9 of player with red stained glass pane named "&bMcPass&e+ &6Level 1" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close

        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level2Puan}:
                format slot 10 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 2" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level11 11"]
            else:
                format slot 10 of player with green stained glass pane named "&bMcPass&e+ &6Level 2" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level2Puan} Puan" to be unstealable
        else:
            format slot 10 of player with red stained glass pane named "&bMcPass&e+ &6Level 2" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close

        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level3Puan}:
                format slot 11 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 3" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level12 12"]
            else:
                format slot 11 of player with green stained glass pane named "&bMcPass&e+ &6Level 3" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level3Puan} Puan" to be unstealable
        else:
            format slot 11 of player with red stained glass pane named "&bMcPass&e+ &6Level 3" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close

        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level4Puan}:
                format slot 12 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 4" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level13 13"]
            else:
                format slot 12 of player with green stained glass pane named "&bMcPass&e+ &6Level 4" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level4Puan} Puan" to be unstealable
        else:
            format slot 12 of player with red stained glass pane named "&bMcPass&e+ &6Level 4" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close
        
        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level5Puan}:
                format slot 13 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 5" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level14 14"]
            else:
                format slot 13 of player with green stained glass pane named "&bMcPass&e+ &6Level 5" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level5Puan} Puan" to be unstealable
        else:
            format slot 13 of player with red stained glass pane named "&bMcPass&e+ &6Level 5" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close
        
        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level6Puan}:
                format slot 14 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 6" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level15 15"]
            else:
                format slot 14 of player with green stained glass pane named "&bMcPass&e+ &6Level 6" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level6Puan} Puan" to be unstealable
        else:
            format slot 14 of player with red stained glass pane named "&bMcPass&e+ &6Level 6" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close
        
        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level7Puan}:
                format slot 15 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 7" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level16 16"]
            else:
                format slot 15 of player with green stained glass pane named "&bMcPass&e+ &6Level 7" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level7Puan} Puan" to be unstealable
        else:
            format slot 15 of player with red stained glass pane named "&bMcPass&e+ &6Level 7" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close
        
        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level8Puan}:
                format slot 16 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 8" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level17 17"]
            else:
                format slot 16 of player with green stained glass pane named "&bMcPass&e+ &6Level 8" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level8Puan} Puan" to be unstealable
        else:
            format slot 16 of player with red stained glass pane named "&bMcPass&e+ &6Level 8" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close
        
        if {PassCard::%player%} is equal to 1:
            if {McPass::Puan.%player%} is greater than or equal to {@Level9Puan}:
                format slot 17 of player with green stained glass pane of unbreaking named "&bMcPass&e+ &6Level 9" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &aAlınabilir" and " " and "&9Almak için Sol-Tık" and " " and "&cEnvanterin boş olduğundan" and "&cemin olunuz!" to close then run [make player execute command "/OdulAl Level18 18"]
            else:
                format slot 17 of player with green stained glass pane named "&bMcPass&e+ &6Level 9" with lore " " and "&cMinimum 9 Adet hediye içerir!" and " " and "&9Durum: &cYetersiz Puan" and " " and "&9Gereken: &a{@Level9Puan} Puan" to be unstealable
        else:
            format slot 17 of player with red stained glass pane named "&bMcPass&e+ &6Level 9" with lore " " and "&dMinimum 9 Muhteşem hediye daha!" and " " and "&bMcPass&e+ &6Üyeliğiniz bulunmamaktadır." and " " and "&cSatın almak için Sol-Tık" to close

on break of gold ore or iron ore or coal ore or lapis lazuli ore or diamond ore or redstone ore or emerald ore or nether quartz ore:
    add 1 to {McPass::Puan.%player%}

on place:
    add 1 to {PlacedBlock.%player%}
    if {PlacedBlock.%player%} is less than 2001:
        add 1 to {McPass::Puan.%player%}

on death:
    if victim is a player:
        if {KillCounter.%attacker%::%victim%} is less than 22:
            add 3 to {McPass::Puan.%attacker%}
    else if victim is not player:
        add 2 to {McPass::Puan.%attacker%}
        broadcast "yess mob"

Command /McPassSifirla:
    trigger:
        if player is op:
            loop offline players:
                loop 18 times:
                    set {McPass::Receive.%loop-number%.%loop-value-1%} to 0
                    set {McPass::Puan.%loop-value-1%} to 0
                    broadcast "{McPass::Receive.%loop-number%.%loop-value-1%} set 0"
                set {PlacedBlock.%loop-value%} to 0
            set {McPassSure.Kalan} to 10080
            set {McPassSure.KalanSon} to rounded {McPassSure.Kalan}/60

Command /OdulAl <text> <number>:
    trigger:
        if {McPass::Receive.%arg 2%.%player%} is equal to 0:
            if arg 2 is greater than 9:
                set {_Temp} to arg 2
                broadcast "%{_Temp}%"
                set {_Temp} to {_Temp}-9
                broadcast "&6%player% Level%{_Temp}% &bPass&e+ &6Görevini Tamamladı, Tebrikler!"
            else:
                broadcast "&6%player% %arg 1% Pass Görevini Tamamladı, Tebrikler!"
            set {McPass::Receive.%arg 2%.%player%} to 1
            loop {McPass::Gift::%arg 2%::*}:
                give player loop-value
        else if {McPass::Receive.%arg 2%.%player%} is not set:
            if arg 2 is greater than 9:
                set {_Temp} to arg 2
                broadcast "%{_Temp}%"
                set {_Temp} to {_Temp}-9
                broadcast "&6%player% Level%{_Temp}% &bPass&e+ &6Görevini Tamamladı, Tebrikler!"
            else:
                broadcast "&6%player% %arg 1% Pass Görevini Tamamladı, Tebrikler!"
            set {McPass::Receive.%arg 2%.%player%} to 1
        else:
            send "&4Level Ödüllerini Yalnızca Haftada 1 Kez Alabilirsin!"

On Command:
    if command contains "OdulAl" or "McPassOduller" or "McPassSifirla" or "McPassAktive" or "McPass" or "McPassPuan" or "McPassCard":
        if player is not op:
            cancel event
            send "&4Kullanabileceğin Komut: /McPassPanel" to player


 


Piliu

Sudan Çıkmış
Mesajlar
7
En iyi cevaplar
0
Beğeniler
5
Puanları
20
Ruh hali
Güzel bir script. :tada: :kalp:
 

Risepixel

Taş Madencisi
Mesajlar
74
En iyi cevaplar
6
Beğeniler
64
Puanları
310
İlk satırlarda remove 10 yaptıktan sonra 0 dan az olmasını checklersen fazladan 10 dakika daha bekletir.
kalan süre 10 dan fazlaysa yani 20 veya üstüyse 10 remove koyarsın değilse de zaten 10 u ve altını checklediği için son 10 dakika kaldığında istediğin gibi sıfırlar fazladan da bekletmez. Bu sorunu da düzeltirsen işte o zaman temiz kod dersin.
Ki zaten pvp ye koyduğun puan sınırını madenlere koymadığın için ipeksi kazması olan bir oyuncu kömür madenlerini ipeksiyle kır-koy yapa yapa direk pass ı fuller. Yani hem zamanlama hatası var hem de açık var.
Madem küçük şeylere dikkat ediyoruz 1 if demek ekstradan 10dk beklemekten kat kat zararlı çıkar. İpeksi konusuna gelirsek benim sunucumda ipeksi olmadığı için gözden kaçmış ufak bir eklemeyle düzeltilebilir.
kod yazımını beğenmedim fikir güzel
Selam, daha iyi kodları sizden görmeyi istiyorum. Engin bilginizle bizleride bilgilendirin.
 

Mr_Obliviate

Play.BlokDunyasi.Net
Mesajlar
1,002
En iyi cevaplar
18
Beğeniler
749
Puanları
1,480
Ruh hali
Güzel fakat mantık hataları var ayrıca SkQuery menülerini kullanma. TuSKe kullan.

Mantık hatalarına örnek verecek olursak,
every 10 minute'nin altında direkt remove 10 kullanmak
size of {_list::*} varken
Kod:
loop {McPass::Gift::%arg-2%::*}:
    add 1 to {_Counter}
kullanmak veya tüm seviyeleri tek tek yazmak gibi...

Loop ile mantıksal kod kullanmayı öğrenmelisin.
 

KanedgyBO

Sudan Çıkmış
Mesajlar
6
En iyi cevaplar
0
Beğeniler
3
Puanları
20
Madem küçük şeylere dikkat ediyoruz 1 if demek ekstradan 10dk beklemekten kat kat zararlı çıkar. İpeksi konusuna gelirsek benim sunucumda ipeksi olmadığı için gözden kaçmış ufak bir eklemeyle düzeltilebilir.

Selam, daha iyi kodları sizden görmeyi istiyorum. Engin bilginizle bizleride bilgilendirin.
kod çok daha kısaltılabilirdi, mantığa bakamıcam yalnızca göz gezdirdim ama sen eleştiri yapan herkese böyle mi cevap verirsin
 

SeyhaNk222

Kömür Madencisi
Oyun Geliştirici
Mesajlar
104
En iyi cevaplar
0
Beğeniler
106
Puanları
400
Ruh hali
minecraftta pass sistemi getirmek harika bir düşünce yenilikçi ve yaratıcı düşünce yapısını anlayanları görmek güzel
 

Üst