Voting book + force open

  • 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 community!

    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.

TacoDude74

Member
Aug 6, 2017
1
0
0
Hello, I am wondering how to create as skript like how the server hypixel does when you click to receive the voting link. It gives you a book, opens it, and then removes it from your inventory. I have tried looking it up on the forums but the solutions it said did not work for me.

Thanks to the people able to assist me on this. :emoji_slight_smile:
 
Hello, I am wondering how to create as skript like how the server hypixel does when you click to receive the voting link. It gives you a book, opens it, and then removes it from your inventory. I have tried looking it up on the forums but the solutions it said did not work for me.

Thanks to the people able to assist me on this. :emoji_slight_smile:
Sooooo I'm thinking you click an npc, opening a gui, clicking a certain item runs a certain command to give you the book and whatnot, this is how I would do it, NOTE CODE IS ROUGHDRAFT!
code_language.skript:
# Command part, you change it to your liking
command /vote:
    trigger:
        give player 1 of glowing book named "&6&lVote Book&7&l[Right-Click]"
        stop
# Right Click Event Part
on rightclick:
    name of player's held item is "&6&lVote Book&7&l[Right-Click]":
        remove 1 glowing book named "&6&lVote Book&7&l[Right-Click]":
            message "&6====================="
            message "&e&lLINK HERE"
            message "&6====================="
 
Status
Not open for further replies.