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

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

oHeckGage

Active Member
Mar 24, 2020
110
6
18
22
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.
 
Code would be good.
[doublepost=1585171264,1585171232][/doublepost]Also use https://forums.skunity.com/threads/vanilla-guis.8939/
Code:
Command /seeds:
    trigger:
        open virtual chest inventory with size 3 named "&aSeeds Shop" to player
        format gui slot 10 of player with coal named "&8Coal &aSeeds" to run:
            if player's balance is more than or equal to 1000:
                remove 1000 from player's balance
                give player 1 wheat seed named "&8Coal &aSeed"
                send "&aYou bought x1 &8Coal &aSeed!"
            else:
                send "&7You dont have money!"
        format gui slot 12 of player with iron ingot named "&7Iron &aSeeds" to run:
            if player's balance is more than or equal to 10000:
                remove 10000 from player's balance
                give player 1 wheat seed named "&7Iron &aSeed"
                send "&aYou bought x1 &7Iron &aSeed"
            else:
                send "&7You dont have money!"
 
Code:
Command /seeds:
    trigger:
        open virtual chest inventory with size 3 named "&aSeeds Shop" to player
        format gui slot 10 of player with coal named "&8Coal &aSeeds" to run:
            if player's balance is more than or equal to 1000:
                remove 1000 from player's balance
                give player 1 wheat seed named "&8Coal &aSeed"
                send "&aYou bought x1 &8Coal &aSeed!"
            else:
                send "&7You dont have money!"
        format gui slot 12 of player with iron ingot named "&7Iron &aSeeds" to run:
            if player's balance is more than or equal to 10000:
                remove 10000 from player's balance
                give player 1 wheat seed named "&7Iron &aSeed"
                send "&aYou bought x1 &7Iron &aSeed"
            else:
                send "&7You dont have money!"
Ok
 
Bruh I already figured it out after the how many days of not replying :| and also, you just say ok?
You're just sending a piece of code. No extra information. Am I supposed to know what's not working
 
Status
Not open for further replies.