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.

GUI Shop not working?

Discussion in 'Skript' started by Thele9end27, Mar 5, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. Thele9end27

    Thele9end27 Member

    Joined:
    Feb 20, 2021
    Messages:
    4
    Likes Received:
    0
    Command /casino:
    trigger:
    open chest with 3 rows named "&4Køb poletter!" to player
    wait 1 tick
    format slot 10 of player with music disc pigstep named "&6Heldig polet" with lore "&bPris: &a$7500"
    format slot 12 of player with music disc strad named "&7Sølv polet" with lore "&bPris: &a$1000"

    on inventory click:
    inventory name of player's current inventory is "&4Køb poletter!":
    if clicked slot is 10:
    if player's balance is between 7500 and 10000000000000:
    wait 1 tick
    execute console command "eco take %player% 7500"
    execute console command "goldencrates givekey %player% Heldig"
    else:
    send "&4&lDu har ikke nok penge!" to player
    if clicked slot is 12:
    if player's balance is between 1000 and 10000000000000:
    wait 1 tick
    execute console command "eco take %player% 1000"
    execute console command "goldencrates givekey %player% sølv"
    else:
    send "&4&lDu har ikke nok penge!" to player


    I just cant seem to figure out what is wrong here. Can someone please help me out?
     
  2. Thele9end27

    Thele9end27 Member

    Joined:
    Feb 20, 2021
    Messages:
    4
    Likes Received:
    0
    record pigstep named "º6Heldig polet" is not a types.recipe (casino2.sk, line 5: format slot 10 of player with music disc pigstep named "&6Heldig polet" with lore "&bPris: &a$7500"')
    [15:52:53] [Server thread/ERROR]: record strad named "º7S°lv polet" is not a types.recipe (casino2.sk, line 6: format slot 12 of player with music disc strad named "&7S°lv polet" with lore "&bPris: &a$1000"')

    This is the error that comes up?
     
  3. Sonafi

    Sonafi Member

    Joined:
    Feb 26, 2021
    Messages:
    10
    Likes Received:
    0
    Try using this instead
    if player's current inventory's name is "&4Køb poletter!":
     
  4. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Code (Text):
    1.  
    2. Command /casino:
    3.     trigger:
    4.         open chest with 3 rows named "&4Køb poletter!" to player
    5.         wait 1 tick
    6.         format slot 10 of player with music disc pigstep named "&6Heldig polet" with lore "&bPris: &a$7500" to be unstealable
    7.         format slot 12 of player with music disc strad named "&7Sølv polet" with lore "&bPris: &a$1000" to be unstealable
    8.  
    9. on inventory click:
    10.     if name of player's current inventory is "&4Køb poletter!":
    11.         if event-slot is 10:
    12.             if player's balance is <= 7500:
    13.                 wait 1 tick
    14.                 execute console command "/eco take %player% 7500"
    15.                 execute console command "/goldencrates givekey %player% Heldig"
    16.             else:
    17.                 send "&4&lDu har ikke nok penge!" to player
    18.         if event-slot is 12:
    19.             if player's balance is <= 1000:
    20.                 wait 1 tick
    21.                 execute console command "/eco take %player% 1000"
    22.                 execute console command "/goldencrates givekey %player% sølv"
    23.             else:
    24.                 send "&4&lDu har ikke nok penge!" to player
    25.  
    this should work
     
Thread Status:
Not open for further replies.

Share This Page

Loading...