on book "done" or close event?

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

FinalPlayer024

Active Member
Oct 19, 2017
94
4
0
29
How can I check if a player clicks "Done" on a specific book?

code_language.skript:
command /book:
  trigger:
    set {_book} to a new book
    set {_titolo} to a new text component with "&7 Ok %executor%, sei entrato in &7modalità NICK! Per prima &7cosa seleziona un rank per il &7disguise."
  
    set {_testo2} to a new text component with "%last character of nl%%last character of nl%&b&lVIP"
    add hover event with action SHOW_TEXT with text "&7Avrai un nick &b&lVIP&7!" to text component {_testo2}
    add click event with action RUN_COMMAND with execute "/setnick VIP" to text component {_testo2}

    set {_testo3} to a new text component with "%last character of nl%&a&lVIP+"
    add hover event with action SHOW_TEXT with text "&7Avrai un nick &a&lVIP+&7!" to text component {_testo3}
    add click event with action RUN_COMMAND with execute "/setnick VIP+!" to text component {_testo3}

    set {_testo4} to a new text component with "%last character of nl%&6&lMVP"
    add hover event with action SHOW_TEXT with text "&7Avrai un nick &6&lMVP&7!" to text component {_testo4}
    add click event with action RUN_COMMAND with execute "/setnick MVP" to text component {_testo4}

    set {_testo5} to a new text component with "%last character of nl%&d&lMVP+"
    add hover event with action SHOW_TEXT with text "&7Avrai un nick &d&lMVP+&7!" to text component {_testo5}
    add click event with action RUN_COMMAND with execute "/setnick MVP" to text component {_testo5}
  
    add text component {_titolo} and {_testo2} and {_testo3} and {_testo4} and {_testo5} to book {_book}

    open book {_book}  to player
[doublepost=1522765641,1522685770][/doublepost]
images
 
Last edited:
Status
Not open for further replies.