Faction İçin Skript İsteğim. Kredi

yusuf21184

Zombi Katili
En iyi cevaplar
0
Sayın
Forum.gamer Kullanıcıları Sizden Bir İsteğim var Faction sw için istigim skript kredi yani mağaza var diceksiniz ama ben ayarliyamadim

/mağaza olacak mağazanın içinde vip ve vip kitleri ve oyun parası olacak kredi nasıl kazanacak derseniz 500 k lapis kırınca 1 kredi verecek. Özel kazmalarda olabilir

Discordum : yusuf21184#2413
 

TReaperTR

Altın Madencisi
En iyi cevaplar
0
JavaScript:
on break of lapis lazuli ore:
    if player's tool pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player
          
command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
                    
command /kital [<text>]
    trigger:
        if arg 1 is "p5":
            if {kredi::%player%} is "1":
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
        if arg 1 is "p6":
            if {kredi::%player%} is "2":
                give 1 diamond helmet of protection 7 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP6 Bot" to player

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P5 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run[execute player command "kital p5"]
        format slot 4 of player with chest named "&6P6 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run[execute player command "kital p6"]
Not: Test etmedim sorun varsa yazabilirsin.
 

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
En iyi cevaplar
2
CSS:
on break of lapis lazuli ore:
    if player's tool pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player
          
command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
                    
command /kital [<text>]
    trigger:
        if arg 1 is "p5":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
        if arg 1 is "p6":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 7 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP6 Bot" to player

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P5 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run[execute player command "kital p5"]
        format slot 4 of player with chest named "&6P6 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run[execute player command "kital p6"]
daha mantıklı olacaktır
 

TReaperTR

Altın Madencisi
En iyi cevaplar
0
CSS:
on break of lapis lazuli ore:
    if player's tool pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player
 
command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}%" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
           
command /kital [<text>]
    trigger:
        if arg 1 is "p6":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
        if arg 1 is "p7":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 7 named "&eP7 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP7 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP7 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP7 Bot" to player

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P6 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run[execute player command "kital p6"]
        format slot 4 of player with chest named "&6P7 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run[execute player command "kital p7"]
daha mantıklı olacaktır
p6'da greater than 1 yapman gerekiyor. Ve şimdi farkettim. Kredi ile kit alırken krediyi silmeyi unutmuşuz 2 mizde :D Diğer gördüğüm hatalarıda düzelttim. Aşağıdaki kodda hata olmaması lazım.

JavaScript:
on break of lapis lazuli ore:
    if player's tool pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player
  
command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
            
command /kital [<text>]
    trigger:
        if arg 1 is "p6":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
                remove 1 from {kredi::%player%}
                send "1 Kredi karşılığında başarıyla P6 kitini aldın."
        if arg 1 is "p7":
            if {kredi::%player%} is greater than 1:
                give 1 diamond helmet of protection 7 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP6 Bot" to player
                remove 2 from {kredi::%player%}
                send "2 Kredi karşılığında başarıyla p7 Kitini aldın."

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P6 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run[execute player command "kital p6"]
        format slot 4 of player with chest named "&6P7 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run[execute player command "kital p7"]
 
Son düzenleme:

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
En iyi cevaplar
2
p6'da greater than 1 yapman gerekiyor. Ve şimdi farkettim. Kredi ile kit alırken krediyi silmeyi unutmuşuz 2 mizde :D

JavaScript:
on break of lapis lazuli ore:
    if player's tool pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player
      
command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
                
command /kital [<text>]
    trigger:
        if arg 1 is "p5":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
                remove 1 from {kredi::%player%}
                send "1 Kredi karşılığında başarıyla P6 kitini aldın."
        if arg 1 is "p6":
            if {kredi::%player%} is greater than 1:
                give 1 diamond helmet of protection 7 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP6 Bot" to player
                remove 2 from {kredi::%player%}
                send "2 Kredi karşılığında başarıyla p7 Kitini aldın."

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P6 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run[execute player command "kital p5"]
        format slot 4 of player with chest named "&6P7 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run[execute player command "kital p6"]
ama 1 den büyükse olur o kredisi 1 ise vermez
 

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
En iyi cevaplar
2
2 tane kit var ya biri p6 biri p7 birini bir kredi ile diğerini 2 kredi ile alacak 2 sinde de greater than 0 yapmışsın o yüzden dedim. Bu arada tekrar düzenlerken bir sürü isim hatası farkettim düzenledim ben. :D
:D :D onu görmemiştim akıl akıldan üstündür ya :)
 

TReaperTR

Altın Madencisi
En iyi cevaplar
0
kodda run dan sonra boşluk bırakılmamış
Evet farkettim koyuyorum boşluğu.

JavaScript:
on break of lapis lazuli ore:
    if player's tool is pickaxe:
        add 1 to {lapis::%player%}
        if {lapis::%player%} is 500000:
            remove 500000 from {lapis::%player%}
            add 1 to {kredi::%player%}
            send "500.000 Lapis lazuli kırdığınız için 1 kredi kazandınız." to player

command /kredi [<player>]:
    trigger:
        if arg 1 is set:
            if {kredi::%arg 1%} is not set:
            set {kredi::%arg 1%} to 0
            send "&c%arg 1% &fKredisi: &6%{kredi::%arg 1%}" to player
        else:
            if {kredi::%player%} is not set:
                set {kredi::%player%} to 0
                send "Krediniz: %{kredi::%player%}%"
           
command /kital [<text>]
    trigger:
        if arg 1 is "p6":
            if {kredi::%player%} is greater than 0:
                give 1 diamond helmet of protection 6 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 6 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 6 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 6 named "&eP6 Bot" to player
                remove 1 from {kredi::%player%}
                send "1 Kredi karşılığında başarıyla P6 kitini aldın."
        if arg 1 is "p7":
            if {kredi::%player%} is greater than 1:
                give 1 diamond helmet of protection 7 named "&eP6 Kask" to player
                give 1 diamond chestplate of protection 7 named "&eP6 Zırh" to player
                give 1 diamond leggings of protection 7 named "&eP6 Pantolon" to player
                give 1 diamond boots of protection 7 named "&eP6 Bot" to player
                remove 2 from {kredi::%player%}
                send "2 Kredi karşılığında başarıyla p7 Kitini aldın."

command /mağaza:
    trigger:
        open chest with 1 rows named "&cMağaza" to player
        wait 2 ticks
        format slot 0 of player with lapis lazuli named "&6Kredi" with lore "Lapis lazuli kırarak kazanılır||500.000 Lapis kırarsan 1 kredi kazanırsın." to close then run ""
        format slot 2 of player with chest named "&6P6 Kit" with lore "1 Kredi ile satın alabilirsin." to close then run [execute player command "kital p6"]
        format slot 4 of player with chest named "&6P7 Kit" with lore "2 Kredi ile satın alabilirsin." to close then run [execute player command "kital p7"]

40 Hata olarak görünülüyor. Ekranda gördüğüm hatayı üstteki kodu kullanarak düzeltebilirsin. Diğer hataların ne olduğunu göremiyorum. Konsoldan bakıp SS atabilir misiniz ? Muhtemelen Addon'lar yoktur veya boşluklarda yanlışlık vardır. Skript, SKQuery, WildSkript vs artık addonları unuttum eklemeniz gerekiyor. (Özellikle SKQuery).
 
Son düzenleme:
Üst