1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help script

Discussion in 'Skript' started by erenres67, Feb 26, 2019.

Thread Status:
Not open for further replies.
  1. erenres67

    erenres67 Member

    Joined:
    Feb 26, 2019
    Messages:
    2
    Likes Received:
    0
    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%}"]
     

    Attached Files:

    • ss2.png
      ss2.png
      File size:
      370.3 KB
      Views:
      43
    #1 erenres67, Feb 26, 2019
    Last edited: Feb 26, 2019
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,122
    Likes Received:
    157
    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 (Skript):
    1. if arg-1 is "depo":
    You can't check an argument if your command has no arguments
     
  3. erenres67

    erenres67 Member

    Joined:
    Feb 26, 2019
    Messages:
    2
    Likes Received:
    0
    Code (Text):
    1. on load:
    2.     send "Çiftlik Skript V1.0.0 Aktif." to console
    3.    
    4. command /çiftlik:
    5.     aliases: ciftlik
    6.     trigger:
    7.         if arg-1 is not "market" or "depo" or "inekal" or "sutsat":
    8.             open chest with 1 rows named "&6Çiftlik" to player
    9.             format slot 3 of player with diamond named "&6Market" to close then run [execute player command "ciftlik market"]
    10.             format slot 5 of player with bucket named "&dDepo" to close then run [execute player command "ciftlik depo"]
    11.         if arg-1 is "market":
    12.             if {oyuncuinek::%player%} is not set:
    13.                 set {_inek} to 0
    14.             else:
    15.                 set {_inek} to {oyuncuinek::%player%}
    16.             wait 3 ticks
    17.             open chest with 1 rows named "&6Çiftlik - Market" to player
    18.             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"]
    19.         if arg-1 is "inekal":
    20.             if player's balance is greater than or equal to 5000:
    21.                 send "&dBaşarıyla bir adet inek satın aldın!"
    22.                 add 1 to {oyuncuinek::%player%}
    23.             else:
    24.                 send "&4Hata! &cBir inek almak için 5000$'ın olmalı!"
    25.         if arg-1 is "depo":
    26.             if {oyuncuinek::%player%} is not set:
    27.                 set {_inek} to 0
    28.             else:
    29.                 set {_inek} to {oyuncuinek::%player%}
    30.             if {oyuncusut::%player%} is not set:
    31.                 set {_sut} to 0
    32.             else:
    33.                 set {_sut} to {oyuncusut::%player%}
    34.             wait 3 ticks
    35.             open chest with 1 rows named "&6Çiftlik - Depo" to player
    36.             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"]
    37.             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"]
    38.         if arg-1 is "sutsat":
    39.             if {oyuncusut::%player%} > 0:
    40.                 set {_kazanc} to 1000 * {oyuncusut::%player%}
    41.                 send "&d%{oyuncusut::%player%}% litre süt satarak toplam %{_kazanc}%$ kazandın!"
    42.                 execute console command "eco give %player% %{_kazanc}%"
    43.             else:
    44.                 send "&4Hata! &cHiç sütün kalmamış!"
    45.                
    46. every minute:
    47.     loop all players:
    48.         add {oyuncuinek::%loop-player%} to {oyuncusut::%loop-player%}
     
  4. Nutts

    Nutts Member

    Joined:
    Feb 9, 2019
    Messages:
    10
    Likes Received:
    0
    You need to make an argument after the command.

    Code (Text):
    1. command /çiftlik [<text>]:
    2.     aliases: ciftlik
    3.     trigger:
    Komuttan sonra bir argüman yapmanız gerekir.
     
  5. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    408
    Likes Received:
    23
    And please. Don't use SkQuery inventory formatting. Use Skript or TuSKe
     
  6. Ierdyr

    Ierdyr Member

    Joined:
    Mar 18, 2019
    Messages:
    12
    Likes Received:
    0
    1. I can’t test this atm but try:
      Code (Text):
      1. on load:
      2.     send "Çiftlik Skript V1.0.0 Aktif." to console
      3.  
      4. command /çiftlik [<text>]:
      5.     aliases: ciftlik
      6.     trigger:
      7.         if arg-1 is not "market", "depo", "inekal" or "sutsat":
      8.           (More code)
     
Thread Status:
Not open for further replies.
Loading...