Other items from plugins in Skript Inventory

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

Lee Since

New Member
Jul 2, 2020
5
0
0
22
Hello, on my server I have a AdvancedSets plugin which includes custom armors. And I'm wondering is it possible to make a inventory with those armor sets included?
 
Here is the code. I only have 2 armor sets currently customized, but when I get more, I can configure the inventory myself when I see how it's done. The placement of the armor is where I want the sets to be.

Code:
command /armor:
    trigger:
        armor(player)
        stop

function armor(p: player):
    open chest inventory with 6 rows named "&3Armor" to {_p}
    set {opened.%{_p}%} to true
    set {inv::%{_p}%} to "armor"
    loop numbers between 0 and 54:
        set slot loop-value of {_p}'s current inventory to black glass pane named "&c"
    set slot 11 of {_p}'s current inventory to iron helmet named "&aHelmet"
    set slot 20 of {_p}'s current inventory to iron chestplate named "&aChestplate"
    set slot 29 of {_p}'s current inventory to iron leggings named "&aLeggings"
    set slot 38 of {_p}'s current inventory to iron boots named "&aBoots"
    set slot 15 of {_p}'s current inventory to gold helmet named "&bHelmet"
    set slot 24 of {_p}'s current inventory to gold chestplate named "&bChestplate"
    set slot 33 of {_p}'s current inventory to gold leggings named "&bLeggings"
    set slot 42 of {_p}'s current inventory to gold boots named "&bBoots"
on inventory close:
    if {opened.%player%} is true:
        delete {opened.%player%}
on inventory click:
    if {inv::%player%} is "armor":
        cancel event
 
Status
Not open for further replies.