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.

Duplicate Player Inventory

Discussion in 'Skript' started by Endas, Jan 27, 2021.

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

    Endas Member

    Joined:
    Jun 22, 2020
    Messages:
    10
    Likes Received:
    0
    Hello.

    I watched TapL video, and I want to create same skript, but I dont know how to multiple players inventory. Can anyone help me with it?


    VIDEO HERE
     
  2. james turner

    james turner New Member

    Joined:
    Jan 27, 2021
    Messages:
    6
    Likes Received:
    0
    command /invdupe:
    trigger:
    set slot 0 of player's inventory to {1}
    set slot 1 of player's inventory to {2}
    set slot 2 of player's inventory to {3}
    ETC.

    command /inventory:
    trigger:
    open virtual chest with 1 row named "inv" to player
    format gui slot 0 of player with {1}
    format gui slot 1 of player with {2}
    format gui slot 3 of player with {3}
    ETC.
     
  3. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    Thats not a good way of duplicating the inventory. Just set a var to the player's inventory and open the var to the player
     
  4. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    28
    Likes Received:
    1
    OMG, i just did this Yesterday

    Code (Text):
    1. command /inv1:
    2.   trigger:
    3.     set {Number} to 0
    4.     loop 36 times:
    5.       set {Inv.%player%::%{Number}%} to slot {Number} of player's inventory
    6.       add 1 to {Number}
    7.     set {Inv.%player%::50} to player's helmet
    8.     set {Inv.%player%::51} to player's chestplate
    9.     set {Inv.%player%::52} to player's leggings
    10.     set {Inv.%player%::53} to player's boots
    11.     set {Inv.%player%::54} to player's offhand tool
    12.     clear player's inventory
    13.     heal the player
    14.     feed the player
    15.     send "Your Inv Has Been Swtched!"
    16.    
    17.  
    18.    
    19. command /inv2:
    20.   trigger:
    21.     set {Number} to 0
    22.     loop 36 times:
    23.       set slot {Number} of player's inventory to {Inv.%player%::%{Number}%}
    24.       add 1 to {Number}
    25.     set player's helmet to {Inv.%player%::50}
    26.     set player's chestplate to {Inv.%player%::51}
    27.     set player's leggings to {Inv.%player%::52}
    28.     set player's boots to {Inv.%player%::53}
    29.     set player's offhand tool to {Inv.%player%::54}
    30.     delete {Inv.%player%::*}
    31.     send "You Inv Has Been returned!"
    This should work, i used it alot, Let me know if it dosen't! <3
     
    • Funny Funny x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...