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.

Tuske 1.8 GUI's

Discussion in 'Requests' started by melanzy, Nov 19, 2021.

  1. melanzy

    melanzy Member

    Joined:
    Aug 4, 2021
    Messages:
    11
    Likes Received:
    0
    Code (Text):
    1. on right click:
    2.     if id of held item is 397:
    3.         if name of held item is "&5Profile &7(Right Click)":
    4.             cancel event
    5.             open chest with 3 rows named "&5Profile" to player
    6.             wait 1 tick
    7.             set slot 4 of current inventory of player to skull of "%player%" named "&5%player's name%" with lore "&7This is your profile!"
    8.             set slot 12 of current inventory of player to paper named "&aStats" with lore "&aClick this to show your stats!"
    9.             set slot 13 of current inventory of player to emerald named "&aStore" with lore "&etest"
    10.             set slot 14 of current inventory of player to book named "&eFreinds" with lore "&bShows your friendlist!"
    11.  
    12. on inventory click:
    13.     inventory name of current inventory of player is "&5Profile"
    14.     name of clicked item is "&aStats"
    15.     close inventory of player
    16.     make player execute command "stats"

    Errors:
    [17:38:56 INFO]: [Skript] Reloading kitpvp.sk...
    [17:38:56 ERROR]: a slot can't be set to 'skull of "%player%" named "&5%player's name%" with lore "&7This is your profile!"' because the latter is neither an item type nor an item stack (kitpvp.sk, line 237: set slot 4 of current inventory of player to skull of "%player%" named "&5%player's name%" with lore "&7This is your profile!"')
    [17:38:56 ERROR]: a slot can't be set to 'paper named "&aStats" with lore "&aClick this to show your stats!"' because the latter is neither an item type nor an item stack (kitpvp.sk, line 238: set slot 12 of current inventory of player to paper named "&aStats" with lore "&aClick this to show your stats!"')
    [17:38:56 ERROR]: a slot can't be set to 'emerald named "&aStore" with lore "&etest"' because the latter is neither an item type nor an item stack (kitpvp.sk, line 239: set slot 13 of current inventory of player to emerald named "&aStore" with lore "&etest"')
    [17:38:56 ERROR]: a slot can't be set to 'book named "&eFreinds" with lore "&bShows your friendlist!"' because the latter is neither an item type nor an item stack (kitpvp.sk, line 240: set slot 14 of current inventory of player to book named "&eFreinds" with lore "&bShows your friendlist!"')
    [17:38:56 ERROR]: Can't compare 'name of clicked item' with a text (kitpvp.sk, line 244: name of clicked item is "&aStats"')
    [17:38:56 INFO]: [Skript] Encountered 5 errors while reloading kitpvp.sk!



    What I want to do, is when a player clicks on the head in their inventory, they get a virtual chest opened, with head, paper, emerald, custom named and with lores, then after that on inventory click of every single one it does something, the errors are above..

    MC version: 1.8
    Skript version: 2.2-dev36
     

Share This Page

Loading...