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!

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

Cloud Inventory

Discussion in 'Addon Suggestions' started by Grin, Feb 25, 2017.

  1. Grin

    Grin Member

    Joined:
    Jan 26, 2017
    Messages:
    25
    Likes Received:
    4
    Hello I have suggestion about the inventory with a player or many players can modify item in inventory at real time like you're open the chest, this idea will useful when doing a many UHC teams chest

    Code (Skript):
    1.  
    2. create cloud inventory id "team_blue_shared_chest"
    3.  
    4. set type of cloud inventory id "team_blue_shared_chest" to (chest with 4 rows | dispenser | hopper | furnace)
    5.  
    6. set slot 10 of cloud inventory id "team_blue_shared_chest" to 1 of diamond named "yay"
    7.  
    8. if cloud inventory id "team_blue_shared_chest" contains 1 of diamond named "yay":
    9.     #do thing
    10.  
    11. delete cloud inventory id "team_blue_shared_chest"
    12.  
    13. open cloud inventory id "team_blue_shared_chest" to player
    14.  
    15. set title of cloud inventory id "team_blue_shared_chest" to "YAY IM TITLE"
    16.  
    17. remove 1 of diamond named "yay" from cloud inventory id "team_blue_shared_chest"
    18.  
    Hope you make it come true
    Thank :emoji_grin:
     
    #1 Grin, Feb 25, 2017
    Last edited: Mar 6, 2017
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    you did suggest this 3 times and that three time someone did answer with a solution, it's not hard to do, less if you use functions.
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Yes that solution can dupe the item when use in real server, two players click to the item at same time and boom dupe :emoji_frowning:
    I delete that code and forgot it cause I'm so triggered lol :emoji_grin:
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    while loops are a thing tho, I wouldn't do this such as I'm lazy but others.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    It's definitely a cool and fun project to work and experiment on. Exactly why SkQuery made this, but it's so outdated and I don't know how to work it.
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    The other player can see what item that I put it/grab from the cloud inventory
    I didn't know SkQuery can do this?
     

Share This Page

Loading...