Skript yaptım ama hata veriyor. Bilen birisi yardımcı olabilirmi ?

33ismet99

Zombi Katili
En iyi cevaplar
3
Arkadaşlar ilk skriptimi yazdım. Ancak büyük bir ihtimal tablarda hata yaptım. bilen birisi bi bakabilirmi acaba ?
Kod:
options:
   prefix: &8[&6NP&8]

command /np [<text>] [<player>] [<text>]
   trigger:
      if arg 1 is not set:
         send "{@prefix &c/np yardim"
         stop
      if arg 1 is "ver":
         if player has permission: Skript.np.ver
            if arg 2 is set:
               if arg 3 is set:
                  if player is op:
                     send "@prefix &aHesabina &c%arg% %aNP verildi" to arg 2
                     send "@prefix &c%arg 2% &aAdli Oyuncuya &c%arg% &aNP Verildi" to player
                     add arg-3 to {miktar.%arg 2%}
                  else:
                     send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
               else:
                  send "@prefix &cMiktar Yazmadin" to player
            else:
               send "@prefix &cKullanici Adi Yazmadin" to player"
      if arg 1 is "sil":
         if player has permission: Skript.np.sil
            if arg 2 is set:
               if arg 3 is set:
                  if player is op:
                     send "@prefix &aHesabindan &c%arg 3% &aNP Silindi" to arg 2
                     send "@prefix &c%arg 2% &aAdli Oyuncunun Hesabindan &c%arg 3% &aNP Silindi" to player
                     remove arg-3 from {miktar.%arg 2%}
                  else:
                     send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
               else:
                  send "@prefix &cMiktar Yazmadin" to player
            else:
               send: "@prefix &cKullanici Adi Yazmadin" to player"
      if arg 1 is "ogren":
         if player has permission: Skript.np.ogren
            if arg 2 is set:
               if player is op:
                  send "@prefix &c%arg 2% &aAdli Kullanicinin Hesabinda Bulunan NP &c%{miktar.%player%}%" to player
               else:
                  send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
            else:
               send "@prefix &cKullanici Adi Yazmadin" to player

      if arg 1 is "yardim":
         send "@prefix &c/NP &AHesabindaki NP Miktarini Gosterir" to player
         send "@prefix &aMagaza'ya giderek harciyabilirsin" to player
         if player is op:
            send "@prefix &c/NP Ver <oyuncu> <miktar> &aKullaniciya NP verir" to player
            send "@prefix &c/NP Sil <oyuncu> <miktar> &aKullanicidan NP Siler" to player
            send "@prefix &c/NP Ogren <oyuncu> &aKullanicidaki NP Miktarini Gosterir" to player

command /np
   permission: Skript.Np
   permission message: &cBu Komutu Kullanmak icin yetkin yok
   trigger:
      send "@prefix &bHesabinda Bulunan NP &c%{miktar.%player%}%" to player
      
command /p5set
   permission: Skript.NP.Market
   permission message: &cBu Komutu Kullanmak icin yetkin yok
   trigger:
      execute consol command "np sil %player% 90"
      give a diamond helmet of protection 5 name:&5%lP5_Kask
      give a diamond chestplate of protection 5 name:&5&lP5_Zirh
      give a diamond leggings of protection 5 name:&5&lP5_Pantolon
      give a diamond boots of protection 5 name:&5&lP5_Bot
      send "@prefix &c90NP &aKarsiliginda P5 Set Aldin" to player
      stop
 

McWeb

Kızıltaş Madencisi
En iyi cevaplar
0
Tahminimce "if player has permission: " kısmı hatalı
Kod:
İf player has permission "yetki":
O kısmı şöyle yapmayı deneyin
 

McWeb

Kızıltaş Madencisi
En iyi cevaplar
0
Kod:
options:
   prefix: &8[&6NP&8]

command /np [<text>] [<player>] [<text>]:
   trigger:
      if arg 1 is not set:
         send "{@prefix &c/np yardim"
         stop
      if arg 1 is "ver":
         if player has permission "Skript.np.ver":
            if arg 2 is set:
               if arg 3 is set:
                  if player is op:
                     send "@prefix &aHesabina &c%arg% %aNP verildi" to arg 2
                     send "@prefix &c%arg 2% &aAdli Oyuncuya &c%arg% &aNP Verildi" to player
                     add arg-3 to {miktar.%arg 2%}
                  else:
                     send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
               else:
                  send "@prefix &cMiktar Yazmadin" to player
            else:
               send "@prefix &cKullanici Adi Yazmadin" to player"
      if arg 1 is "sil":
         if player has permission "Skript.np.sil":
            if arg 2 is set:
               if arg 3 is set:
                  if player is op:
                     send "@prefix &aHesabindan &c%arg 3% &aNP Silindi" to arg 2
                     send "@prefix &c%arg 2% &aAdli Oyuncunun Hesabindan &c%arg 3% &aNP Silindi" to player
                     remove arg-3 from {miktar.%arg 2%}
                  else:
                     send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
               else:
                  send "@prefix &cMiktar Yazmadin" to player
            else:
               send: "@prefix &cKullanici Adi Yazmadin" to player"
      if arg 1 is "ogren":
         if player has permission "Skript.np.ogren":
            if arg 2 is set:
               if player is op:
                  send "@prefix &c%arg 2% &aAdli Kullanicinin Hesabinda Bulunan NP &c%{miktar.%player%}%" to player
               else:
                  send "@prefix &cBu Komutu Kullanmak icin yetkin yok" to player
            else:
               send "@prefix &cKullanici Adi Yazmadin" to player

      if arg 1 is "yardim":
         send "@prefix &c/NP &AHesabindaki NP Miktarini Gosterir" to player
         send "@prefix &aMagaza'ya giderek harciyabilirsin" to player
         if player is op:
            send "@prefix &c/NP Ver <oyuncu> <miktar> &aKullaniciya NP verir" to player
            send "@prefix &c/NP Sil <oyuncu> <miktar> &aKullanicidan NP Siler" to player
            send "@prefix &c/NP Ogren <oyuncu> &aKullanicidaki NP Miktarini Gosterir" to player

command /np:
   permission: Skript.Np
   permission message: &cBu Komutu Kullanmak icin yetkin yok
   trigger:
      send "@prefix &bHesabinda Bulunan NP &c%{miktar.%player%}%" to player
      
command /p5set:
   permission: Skript.NP.Market
   permission message: &cBu Komutu Kullanmak icin yetkin yok
   trigger:
      execute console command "np sil %player% 90"
      give a diamond helmet of protection 5 name:&5%lP5_Kask
      give a diamond chestplate of protection 5 name:&5&lP5_Zirh
      give a diamond leggings of protection 5 name:&5&lP5_Pantolon
      give a diamond boots of protection 5 name:&5&lP5_Bot
      send "@prefix &c90NP &aKarsiliginda P5 Set Aldin" to player
      stop
Bunu dener misiniz
 

ZsCraft

Kızıltaş Madencisi
En iyi cevaplar
0
Skriptte np yi 2 kere kullanmışsın o yüzden adam /np yazdığında puanını görmek için /np bak yaptım
Kod:
options:
    prefix: &8[&6NP&8]

command /np [<text>] [<player>] [<text>]
    trigger:
        if arg 1 is not set:
            send "{@prefix} &c/np yardim"
            stop
        if arg 1 is "ver":
            if player has permission: Skript.np.ver
                if arg 2 is set:
                    if arg 3 is set:
                        if player is op:
                            send "{@prefix} &aHesabina &c%arg 3% &aNP verildi" to arg 2
                            send "{@prefix} &c%arg 2% &aAdli Oyuncuya &c%arg 3% &aNP Verildi" to player
                            add arg-3 to {miktar.%arg 2%}
                        else:
                            send "{@prefix} &cBu Komutu Kullanmak icin yetkin yok" to player
                    else:
                        send "{@prefix} &cMiktar Yazmadin" to player
                else:
                    send "{@prefix} &cKullanici Adi Yazmadin" to player
        if arg 1 is "sil":
            if player has permission: Skript.np.sil
                if arg 2 is set:
                    if arg 3 is set:
                        if player is op:
                            send "{@prefix} &aHesabindan &c%arg 3% &aNP Silindi" to arg 2
                            send "{@prefix} &c%arg 2% &aAdli Oyuncunun Hesabindan &c%arg 3% &aNP Silindi" to player
                            remove arg-3 from {miktar.%arg 2%}
                        else:
                            send "{@prefix} &cBu Komutu Kullanmak icin yetkin yok" to player
                    else:
                        send "{@prefix} &cMiktar Yazmadin" to player
                else:
                    send: "{@prefix} &cKullanici Adi Yazmadin" to player
        if arg 1 is "ogren":
            if player has permission: Skript.np.ogren
                if arg 2 is set:
                    if player is op:
                        send "{@prefix} &c%arg 2% &aAdli Kullanicinin Hesabinda Bulunan NP &c%{miktar.%player%}%" to player
                    else:
                        send "{@prefix} &cBu Komutu Kullanmak icin yetkin yok" to player
                else:
                    send "{@prefix} &cKullanici Adi Yazmadin" to player

        if arg 1 is "yardim":
            send "{@prefix} &c/NP &AHesabindaki NP Miktarini Gosterir" to player
            send "{@prefix} &aMagaza'ya giderek harciyabilirsin" to player
            if player is op:
                send "{@prefix} &c/NP Ver <oyuncu> <miktar> &aKullaniciya NP verir" to player
                send "{@prefix} &c/NP Sil <oyuncu> <miktar> &aKullanicidan NP Siler" to player
                send "{@prefix} &c/NP Ogren <oyuncu> &aKullanicidaki NP Miktarini Gosterir" to player

command /np:
    permission: Skript.Np
    permission message: &cBu Komutu Kullanmak icin yetkin yok
    trigger:
        send "{@prefix} &bHesabinda Bulunan NP &c%{miktar.%player%}%" to player
    
command /p5set
    permission: Skript.NP.Market
    permission message: &cBu Komutu Kullanmak icin yetkin yok
    trigger:
        if {miktar.%player%} is greater than 89:
            execute consol command "np sil %player% 90"
            give a diamond helmet of protection 5 named "&5&lP5_Kask" to the player
            give a diamond chestplate of protection 5 named "&5&lP5_Zirh" to the player
            give a diamond leggings of protection 5 named "&5&lP5_Pantolon" to the player
            give a diamond boots of protection 5 named "&5&lP5_Bot" to the player
            send "{@prefix} &c90NP &aKarsiliginda P5 Set Aldin" to player
            stop
        else:
            send "{@prefix} Yeterli NP Yok !" to player
NOT: /p5set komutunda np yi sorgulatmıyordu yani direk adam parası olmaksızın alabilirdi p5 seti onu ayarladım
 
Son düzenleme:
Üst