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

Solved Ranks awarded by books

Discussion in 'Skript' started by ChrissyCoolHD, Apr 21, 2019.

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

    ChrissyCoolHD Member

    Joined:
    Apr 20, 2019
    Messages:
    9
    Likes Received:
    0
    English:
    Hello
    I have a problem. I want to give ranks by clicking on a book in the inventory! Then I want if you clicked on the book that it disappears. I have multiple ranks and when you click on a book, all the books in the inventory disappear.
    Here is my script:
    https://pastebin.com/N1VFSVNZ

    I would be glad if someone helps me!

    Sorry for my bad English!

    Best regards ChrissyCool

    Deutsch:
    Hallo
    ich habe eine Problem. Ich möchte Ränge vergeben in dem man auf ein Buch klick im Inventar! Dann möchte ich wenn man auf das Buch geklickt hat das es verschwindet. Ich habe mehrere Ränge und wenn man auf ein Buch klickt verschwinden alle Bücher im Inventar.
    Hier mein Skript:
    https://pastebin.com/N1VFSVNZ

    Ich würde mich freuen wenn mir jemand hilft!

    Liebe grüße ChrissyCool
     
  2. Best Answer:
    Post #2 by TPGamesNL, Apr 21, 2019
  3. TPGamesNL

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    1,311
    Likes Received:
    73
    Medals:
    You added a tab too much in the click events. Use this:
    Code (Text):
    1. on click:
    2.     if player's held item is book named "&d&lBronze Rang":
    3.         make console execute command "/pex user %player% group set Bronze"
    4.         remove book named "&d&lBronze Rang" from player
     
  4. ChrissyCoolHD

    ChrissyCoolHD Member

    Joined:
    Apr 20, 2019
    Messages:
    9
    Likes Received:
    0
    Ahh Thanks for your help!
    :emoji_grinning:
     
Thread Status:
Not open for further replies.
Loading...