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.

I can not get my items in a virtual inventory to do what I want

Discussion in 'Skript' started by oHeckGage, Mar 25, 2020 at 8:23 PM.

  1. oHeckGage

    oHeckGage Member

    Joined:
    Tuesday
    Messages:
    18
    Likes Received:
    1
    Ok so I can't make my items in my shop to be unstealable. I have tried "to be unstealable" and at the end for when they tap on it "close player's current inventory" and everything. I just want it so you can't steal it.
     
  2. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    429
    Likes Received:
    25
  3. oHeckGage

    oHeckGage Member

    Joined:
    Tuesday
    Messages:
    18
    Likes Received:
    1
    Code (Text):
    1. Command /seeds:
    2.     trigger:
    3.         open virtual chest inventory with size 3 named "&aSeeds Shop" to player
    4.         format gui slot 10 of player with coal named "&8Coal &aSeeds" to run:
    5.             if player's balance is more than or equal to 1000:
    6.                 remove 1000 from player's balance
    7.                 give player 1 wheat seed named "&8Coal &aSeed"
    8.                 send "&aYou bought x1 &8Coal &aSeed!"
    9.             else:
    10.                 send "&7You dont have money!"
    11.         format gui slot 12 of player with iron ingot named "&7Iron &aSeeds" to run:
    12.             if player's balance is more than or equal to 10000:
    13.                 remove 10000 from player's balance
    14.                 give player 1 wheat seed named "&7Iron &aSeed"
    15.                 send "&aYou bought x1 &7Iron &aSeed"
    16.             else:
    17.                 send "&7You dont have money!"
     
Loading...