Çözüldü Elimde bir skript var ufak bir hatası var yadımcı olur musunuz

  • Konuyu Başlatan Konuyu Başlatan yasin3453
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 476
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

yasin3453

Koydum Çalışma Masasını
Katılım
16 Eylül 2021
Mesajlar
57
Elmaslar
3
Puan
2.210
Yaş
23
Merhabalar elimde ekte bulunan skript bulunuyor ana mantığı oyuncu kasalardan çıkardığı vipi kontrol edip
eğer oyuncu vip+ ise ve kasadan vip çıkardıysa bunu engelliyip bir miktar para verdiriyor
aynı şekilde vip+ ise kasadan vip+ çıkardıysa bu sefer süre ekliyor
skripti yaptıralı 10 aya yakın oldu bu süre içinde bende mc ile ilgilenmiyordum
şimdi tekrar başlama kararı aldım ve şu sekilde sorunla karşılaştım skript mantığının çalışması için
oyuncu ilk önce vip çıkarması gerekiyor kasadan veriyi tahminimce öyle kaydediyor ondan sonra dediğim mantıkla
uygulama yapıyor yani oyuncu zaten mvip ise kasadan vip+ çıkarsa vipi veriyor ondan sonra vip çıkarırsa yukarda anlattığım
mantık ile engelliyor ve para veriyor benim istediğim güncel rütbesini kontrol etmesi oyuncu mvip ise vip+ alamasın
skript ektedir

Kod:
options:
#              - YAZILAR -

    prefix-logo: &6&lVIP&8 »
    mevcut-rütbe-daha-büyük-telafi-yazısı: &cÜzgünüz, mevcut rütbeniz daha büyük. Bu yüzden%nl%&chesabınıza &ctelafi amaçlı hesabınıza para eklendi!
    
    vip-1-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
    vip-2-oldun-yazısı:    &eTebrikler! Artık ?`&esiniz!
    vip-3-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
    vip-4-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
    
    vip-1-oldun-uzatıldı: &eTebrikler! ?&e`nize 3 gün daha eklendi!
    vip-2-oldun-uzatıldı: &eTebrikler! ?&e`nize 4 gün daha eklendi!
    vip-3-oldun-uzatıldı: &eTebrikler! ?&e`nize 5 gün daha eklendi!
    vip-4-oldun-uzatıldı: &eTebrikler! ?&e`nize 7 gün daha eklendi!
    
    vip-1-verme-komutu: lp user %arg 2% parent addtemp vip 3d accumulate
    vip-2-verme-komutu: lp user %arg 2% parent addtemp vip+ 4d accumulate
    vip-3-verme-komutu: lp user %arg 2% parent addtemp mvip 5d accumulate
    vip-4-verme-komutu: lp user %arg 2% parent addtemp mvip+ 7d accumulate
    
    vip-2-telafi-para-ekleme: 50
    vip-3-telafi-para-ekleme: 100
    vip-4-telafi-para-ekleme: 300
    




#                   DEV \\       // Anemys \\       // CODE|Skript



    
on join:
    if {vip.durumu.%player%} is not set:
        set {vip.durumu.%player%} to "oyuncu"
        stop
        
on quit:
    if {vip.durumu.%player%} is not set:
        set {vip.durumu.%player%} to "oyuncu"
        stop
        

command /vipkontrol [<text>] [<player>]:
    trigger:
        if sender is console:
            if arg 1 is "1":
                if {vip.durumu.%arg 2%} is not "vip3" or "vip4" or "vip2":
                    if {vip.durumu.%arg 2%} is "vip1":
                        send "{@prefix-logo} {@vip-1-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-1-verme-komutu}"
                        stop
                    else:   
                        set {vip.durumu.%arg 2%} to "vip1"
                        send "{@prefix-logo} {@vip-1-oldun-yazısı}" to arg 2
                        execute console command "{@vip-1-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip2":
                        execute console command "eco give %arg 2% {@vip-2-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip3":
                        execute console command "eco give %arg 2% {@vip-3-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
            if arg 1 is "2":
                if {vip.durumu.%arg 2%} is not "vip3" or "vip4":
                    if {vip.durumu.%arg 2%} is "vip2":
                        send "{@prefix-logo} {@vip-2-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-2-verme-komutu}"
                        stop
                    else:   
                        set {vip.durumu.%arg 2%} to "vip2"
                        send "{@prefix-logo} {@vip-2-oldun-yazısı}" to arg 2
                        execute console command "{@vip-2-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip3":
                        execute console command "eco give %arg 2% {@vip-3-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
            if arg 1 is "3":
                if {vip.durumu.%arg 2%} is not "vip4" or "vip1":
                    if {vip.durumu.%arg 2%} is "vip3":
                        send "{@prefix-logo} {@vip-3-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-3-verme-komutu}"
                        stop
                    else:   
                        set {vip.durumu.%arg 2%} to "vip3"
                        send "{@prefix-logo} {@vip-3-oldun-yazısı}" to arg 2
                        execute console command "{@vip-3-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
                
            if arg 1 is "4":
                if {vip.durumu.%arg 2%} is not "vip2" or "vip1":
                    if {vip.durumu.%arg 2%} is "vip4":
                        send "{@prefix-logo} {@vip-4-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-4-verme-komutu}"
                        stop
                    else:   
                        set {vip.durumu.%arg 2%} to "vip4"
                        send "{@prefix-logo} {@vip-4-oldun-yazısı}" to arg 2
                        execute console command "{@vip-4-verme-komutu}"
                        stop                   
            if arg 1 is "sıfırla":
                if arg 2 is set:
                    set {vip.durumu.%arg 2%} to "oyuncu"
                    send "{@prefix-logo} &a&l%arg 2%&e adlı oyuncunun rütbesi sıfırlandı!"
                    stop
        else:
            send "&cBu komutu kullanamazsınız"
            stop
 
Merhabalar elimde ekte bulunan skript bulunuyor ana mantığı oyuncu kasalardan çıkardığı vipi kontrol edip
eğer oyuncu vip+ ise ve kasadan vip çıkardıysa bunu engelliyip bir miktar para verdiriyor
aynı şekilde vip+ ise kasadan vip+ çıkardıysa bu sefer süre ekliyor
skripti yaptıralı 10 aya yakın oldu bu süre içinde bende mc ile ilgilenmiyordum
şimdi tekrar başlama kararı aldım ve şu sekilde sorunla karşılaştım skript mantığının çalışması için
oyuncu ilk önce vip çıkarması gerekiyor kasadan veriyi tahminimce öyle kaydediyor ondan sonra dediğim mantıkla
uygulama yapıyor yani oyuncu zaten mvip ise kasadan vip+ çıkarsa vipi veriyor ondan sonra vip çıkarırsa yukarda anlattığım
mantık ile engelliyor ve para veriyor benim istediğim güncel rütbesini kontrol etmesi oyuncu mvip ise vip+ alamasın
skript ektedir

Kod:
options:
#              - YAZILAR -

    prefix-logo: &6&lVIP&8 »
    mevcut-rütbe-daha-büyük-telafi-yazısı: &cÜzgünüz, mevcut rütbeniz daha büyük. Bu yüzden%nl%&chesabınıza &ctelafi amaçlı hesabınıza para eklendi!
   
    vip-1-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
    vip-2-oldun-yazısı:    &eTebrikler! Artık ?`&esiniz!
    vip-3-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
    vip-4-oldun-yazısı: &eTebrikler! Artık ?&e`siniz!
   
    vip-1-oldun-uzatıldı: &eTebrikler! ?&e`nize 3 gün daha eklendi!
    vip-2-oldun-uzatıldı: &eTebrikler! ?&e`nize 4 gün daha eklendi!
    vip-3-oldun-uzatıldı: &eTebrikler! ?&e`nize 5 gün daha eklendi!
    vip-4-oldun-uzatıldı: &eTebrikler! ?&e`nize 7 gün daha eklendi!
   
    vip-1-verme-komutu: lp user %arg 2% parent addtemp vip 3d accumulate
    vip-2-verme-komutu: lp user %arg 2% parent addtemp vip+ 4d accumulate
    vip-3-verme-komutu: lp user %arg 2% parent addtemp mvip 5d accumulate
    vip-4-verme-komutu: lp user %arg 2% parent addtemp mvip+ 7d accumulate
   
    vip-2-telafi-para-ekleme: 50
    vip-3-telafi-para-ekleme: 100
    vip-4-telafi-para-ekleme: 300
   




#                   DEV \\       // Anemys \\       // CODE|Skript



   
on join:
    if {vip.durumu.%player%} is not set:
        set {vip.durumu.%player%} to "oyuncu"
        stop
       
on quit:
    if {vip.durumu.%player%} is not set:
        set {vip.durumu.%player%} to "oyuncu"
        stop
       

command /vipkontrol [<text>] [<player>]:
    trigger:
        if sender is console:
            if arg 1 is "1":
                if {vip.durumu.%arg 2%} is not "vip3" or "vip4" or "vip2":
                    if {vip.durumu.%arg 2%} is "vip1":
                        send "{@prefix-logo} {@vip-1-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-1-verme-komutu}"
                        stop
                    else:  
                        set {vip.durumu.%arg 2%} to "vip1"
                        send "{@prefix-logo} {@vip-1-oldun-yazısı}" to arg 2
                        execute console command "{@vip-1-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip2":
                        execute console command "eco give %arg 2% {@vip-2-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip3":
                        execute console command "eco give %arg 2% {@vip-3-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
            if arg 1 is "2":
                if {vip.durumu.%arg 2%} is not "vip3" or "vip4":
                    if {vip.durumu.%arg 2%} is "vip2":
                        send "{@prefix-logo} {@vip-2-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-2-verme-komutu}"
                        stop
                    else:  
                        set {vip.durumu.%arg 2%} to "vip2"
                        send "{@prefix-logo} {@vip-2-oldun-yazısı}" to arg 2
                        execute console command "{@vip-2-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip3":
                        execute console command "eco give %arg 2% {@vip-3-telafi-para-ekleme}"
                        stop
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
            if arg 1 is "3":
                if {vip.durumu.%arg 2%} is not "vip4" or "vip1":
                    if {vip.durumu.%arg 2%} is "vip3":
                        send "{@prefix-logo} {@vip-3-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-3-verme-komutu}"
                        stop
                    else:  
                        set {vip.durumu.%arg 2%} to "vip3"
                        send "{@prefix-logo} {@vip-3-oldun-yazısı}" to arg 2
                        execute console command "{@vip-3-verme-komutu}"
                        stop
                else:
                    send "{@prefix-logo} {@mevcut-rütbe-daha-büyük-telafi-yazısı}" to arg 2
                    if {vip.durumu.%arg 2%} is "vip4":
                        execute console command "eco give %arg 2% {@vip-4-telafi-para-ekleme}"
                        stop
               
            if arg 1 is "4":
                if {vip.durumu.%arg 2%} is not "vip2" or "vip1":
                    if {vip.durumu.%arg 2%} is "vip4":
                        send "{@prefix-logo} {@vip-4-oldun-uzatıldı}" to arg 2
                        execute console command "{@vip-4-verme-komutu}"
                        stop
                    else:  
                        set {vip.durumu.%arg 2%} to "vip4"
                        send "{@prefix-logo} {@vip-4-oldun-yazısı}" to arg 2
                        execute console command "{@vip-4-verme-komutu}"
                        stop                  
            if arg 1 is "sıfırla":
                if arg 2 is set:
                    set {vip.durumu.%arg 2%} to "oyuncu"
                    send "{@prefix-logo} &a&l%arg 2%&e adlı oyuncunun rütbesi sıfırlandı!"
                    stop
        else:
            send "&cBu komutu kullanamazsınız"
            stop
Merhaba, bu skript bana ait. İsterseniz discord üzerinden bana sorunun tam olarak ne olduğunu anlatın ekstra olarak istediğiniz birşey varsa da söyleyin bende size yardımcı olayım. 1.8 üzerinden yapıldığı için çok vasat.
 
Merhaba, bu skript bana ait. İsterseniz discord üzerinden bana sorunun tam olarak ne olduğunu anlatın ekstra olarak istediğiniz birşey varsa da söyleyin bende size yardımcı olayım. 1.8 üzerinden yapıldığı için çok vasat.
Merhabalar evet siz yazmıştınız skripti istek gönderdim discord üzerinden
 
Sorun çözüldü mü?
 
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