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 out 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.

items

Discussion in 'Skript' started by Funck, Dec 17, 2018.

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

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    hi, guys. when i using:
    Code (Skript):
    1.         if clicked slot is 31:
    2.             if player have 32 snow:
    3.                 remove 32 snow from player's inventory
    4.                 execute command "eco add %player% 990" by console
    5.                 message "sell"
    6.             if player doesn't have 32 snow:
    7.                 message "no money"
    i get: Can't understand this condition: 'player have 32 snow' (script.sk, line 61: if player have 32 snow:')
    but, if i using:
    Code (Skript):
    1.         if clicked slot is 31:
    2.             if player have 32 80:
    3.                 remove 32 80 from player's inventory
    4.                 execute command "eco add %player% 990" by console
    5.                 message "sell"
    6.             if player doesn't have 32 80:
    7.                 message "no money"
    i get: Line 65: Numeric ids are not supported anymore. (script.sk, line 65: if player doesn't have 32 80:')

    server version: 1.12.2, skript: the last
     
    #1 Funck, Dec 17, 2018
    Last edited: Dec 17, 2018
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    try
    if player has 32 of snow
     
  3. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Check in your alias.sk if at line ~1000 snow is set.
    In my config it looks like this:
    Code (Skript):
    1.  
    2.     # -- snow & ice --
    3.     snow[(_| |-)]layer¦s = 78
    4.     ice¦s @- = 79
    5.     ice[(_| |-)]<block> @an = 79
    6.     snow = 80
    7.     snow[(_| |-)]<block> = 80
    8.     packed[(_| |-)]ice¦s = 174
    9.     packed[(_| |-)]ice[(_| |-)]<block> = 174
     
  4. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    not working
    --- Double Post Merged, Dec 18, 2018, Original Post Date: Dec 18, 2018 ---
    i trying this, and: Line 5: Numeric ids are not supported anymore. (script.sk, line 5: if player have 32 of 80:')
    --- Double Post Merged, Dec 18, 2018 ---
    but on 1.11 all normal =D
     
  5. Yodaylay22

    Yodaylay22 Member

    Joined:
    Jul 24, 2018
    Messages:
    15
    Likes Received:
    1
    Try this
    Code (Skript):
    1.  
    2. if player's inventory has 5 of snow:
    3.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...