help script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

erenres67

Member
Feb 26, 2019
2
0
0
26
format slot 5 of player with bucket named "&dDepo" to close then run [execute player command "ciftlik depo"] if arg-1 is "market": if {oyuncuinek::%player%} is not set: set {_inek} to 0 else: set {_inek} to {oyuncuinek::%player%} wait 3 ticks open chest with 1 rows named "&6Çiftlik - Market" to player format slot 4 of player with leather named "&6İnek satın al" with lore "&dDakikada 1 litre süt üretir.||&fSahip olunan inek sayısı: %{_inek}%" to close then run [execute player command "ciftlik inekal"] if arg-1 is "inekal": if player's balance is greater than or equal to 5000: send "&dBaşarıyla bir adet inek satın aldın!" add 1 to {oyuncuinek::%player%} else: send "&4Hata! &cBir inek almak için 5000ın olmalı!" if arg-1 is "depo": if {oyuncuinek::%player%} is not set: set {_inek} to 0 else: set {_inek} to {oyuncuinek::%player%} if {oyuncusut::%player%} is not set: set {_sut} to 0 else: set {_sut} to {oyuncusut::%player%} wait 3 ticks open chest with 1 rows named "&6Çiftlik - Depo" to player format slot 3 of player with leather named "&eSahip olduğun inekler" with lore "&d%{_inek}% tane" to close then run [execute player command "ciftlik market"] format slot 5 of player with milk named "&eBiriken süt" with lore "&d%{_sut}% Litre|| ||&fSatmak için tıkla!" to close then run [execute player command "ciftlik sutsat"] if arg-1 is "sutsat": if {oyuncusut::%player%} > 0: set {_kazanc} to 1000 * {oyuncusut::%player%} send "&d%{oyuncusut::%player%}% litre süt satarak toplam %{_kazanc}%$ kazandın!" execute console command "eco give %player% %{_kazanc}%" else: send "&4Hata! &cHiç sütün kalmamış!" every minute: loop all players: add {oyuncuinek::%loop-player%} to {oyuncusut::%loop-player%}"]
 

Attachments

  • ss2.png
    ss2.png
    370.3 KB · Views: 227
Last edited:
1) Please put your code in a code block, that is insanely hard to read.
2) The error tells you exactly what is going on. Your command has no arguments, yet you have conditions like
code_language.skript:
if arg-1 is "depo":
You can't check an argument if your command has no arguments
 
Code:
on load:
    send "Çiftlik Skript V1.0.0 Aktif." to console
    
command /çiftlik:
    aliases: ciftlik
    trigger:
        if arg-1 is not "market" or "depo" or "inekal" or "sutsat":
            open chest with 1 rows named "&6Çiftlik" to player
            format slot 3 of player with diamond named "&6Market" to close then run [execute player command "ciftlik market"]
            format slot 5 of player with bucket named "&dDepo" to close then run [execute player command "ciftlik depo"]
        if arg-1 is "market":
            if {oyuncuinek::%player%} is not set:
                set {_inek} to 0
            else:
                set {_inek} to {oyuncuinek::%player%}
            wait 3 ticks
            open chest with 1 rows named "&6Çiftlik - Market" to player
            format slot 4 of player with leather named "&6İnek satın al" with lore "&dDakikada 1 litre süt üretir.||&fSahip olunan inek sayısı: %{_inek}%" to close then run [execute player command "ciftlik inekal"]
        if arg-1 is "inekal":
            if player's balance is greater than or equal to 5000:
                send "&dBaşarıyla bir adet inek satın aldın!"
                add 1 to {oyuncuinek::%player%}
            else:
                send "&4Hata! &cBir inek almak için 5000$'ın olmalı!"
        if arg-1 is "depo":
            if {oyuncuinek::%player%} is not set:
                set {_inek} to 0
            else:
                set {_inek} to {oyuncuinek::%player%}
            if {oyuncusut::%player%} is not set:
                set {_sut} to 0
            else:
                set {_sut} to {oyuncusut::%player%}
            wait 3 ticks
            open chest with 1 rows named "&6Çiftlik - Depo" to player
            format slot 3 of player with leather named "&eSahip olduğun inekler" with lore "&d%{_inek}% tane" to close then run [execute player command "ciftlik market"]
            format slot 5 of player with milk named "&eBiriken süt" with lore "&d%{_sut}% Litre|| ||&fSatmak için tıkla!" to close then run [execute player command "ciftlik sutsat"]
        if arg-1 is "sutsat":
            if {oyuncusut::%player%} > 0:
                set {_kazanc} to 1000 * {oyuncusut::%player%}
                send "&d%{oyuncusut::%player%}% litre süt satarak toplam %{_kazanc}%$ kazandın!"
                execute console command "eco give %player% %{_kazanc}%"
            else:
                send "&4Hata! &cHiç sütün kalmamış!"
                
every minute:
    loop all players:
        add {oyuncuinek::%loop-player%} to {oyuncusut::%loop-player%}
 
You need to make an argument after the command.

Code:
command /çiftlik [<text>]:
    aliases: ciftlik
    trigger:

Komuttan sonra bir argüman yapmanız gerekir.
 
And please. Don't use SkQuery inventory formatting. Use Skript or TuSKe
 
  1. I can’t test this atm but try:
    Code:
    on load:
        send "Çiftlik Skript V1.0.0 Aktif." to console
      
    command /çiftlik [<text>]:
        aliases: ciftlik
        trigger:
            if arg-1 is not "market", "depo", "inekal" or "sutsat":
              (More code)
 
Status
Not open for further replies.