Solved Skript GUI - Drops contents

  • 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.
Try this (not tested).
code_language.skript:
command /infobook2:
        trigger:
                send "&cKommer snart..."
 
#Indstillinger
options:
    prefix: &a&lInfo: &c
 
#GUI setup
command /infobook:
    executable by: players
    trigger:
        open chest with 5 row named "&2&l&nInformation" to player
        set {_s} to 0
        set {Info.%player%.lastused} to now
        loop 45 times:
            set slot {_s} of player's current inventory to GRAY GLASS named "&c&lIndlæser..." with lore "&c&l&oVent venligst..."
            wait 0.03 seconds
            ifinventory name of player's current inventory is not "&2&l&nInformation":
                stop
            add 1 to {_s}
        format slot 21 of player with book named "&c&lIndlæser" to close then run [send "{@prefix} &c&l&oVent venligst..."]
        format slot 23 of player with book named "&c&lIndlæser" to close then run [send "{@prefix} &c&l&oVent venligst..."]
        format slot 21 of player with paper named "&2&lMap-Byggere" to close then run [execute player command "/MapBuilders"]
        format slot 23 of player with paper named "&2&lGenerel &nInformation" to run [execute player command "/GI"]
        set {_s} to 0
        loop 45 times:
            set slot {_s} of player's current inventory to GREEN GLASS named "&f&lIndlæst"
            wait 0.03 seconds
            add 1 to {_s}
            ifinventory name of player's current inventory is not "&2&l&nInformation":
                stop
        format slot 21 of player with paper named "&2&lMap-Byggere" to run [execute player command "/MapBuilders"]
        format slot 23 of player with paper named "&2&lGenerel &nInformation" to run [execute player command "/GI"]
     
   
on inventory click:
    if inventory name of player's current inventory is "&2&l&nInformation":
        cancel event
 
Status
Not open for further replies.