Paste #39442: Edit of P#39441 - Edit of P#39440 - Menu item

Date: 2017/01/29 15:15:03 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


# +------------------
# | Titles Menu For Donators
# +------------------
#
# Written for TrappedChest
# 2017 / 01/ 26
#
# Setup:
# - Change the material type to what you want
# - Change the dispay names in the titles to what you want
#
# --------------
#

# Edit This!
tc_titles_menu:
    type: inventory
    title: Game Titles
    size: 27
    slots:
    - "[tc_titles_s1] [] [i@human_skull[skull_skin=MHF_ArrowRight;display_name=<&6>Volgende pagina]
] [] [] [] [] [] []"
    - "[tc_titles_s10] [tc_titles_s11] [tc_titles_s12] [tc_titles_s13] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"

tc_titles_s1:
    type: item
    material: name_tag
    display name: <&6>Adventurer
    lore:
    - "Get the free title of Adventurer"  
tc_titles_s2:
    type: item
    material: name_tag
    display name: <&6>Merchant
    lore:
    - "Get the free title of Merchant"
tc_titles_s3:
    type: item
    material: name_tag
    display name: <&6>Beggar
    lore:
    - "Get the free title of Beggar"
tc_titles_s4:
    type: item
    material: name_tag
    display name: <&6>Sheep
    lore:
    - "Get the free title of Sheep"  
tc_titles_s10:
    type: item
    material: name_tag
    display name: <&6>Titles A to D
    lore:
    - "Donator Titles "
tc_titles_s11:
    type: item
    material: name_tag
    display name: <&6>Titles E to I
    lore:
    - "Donator Titles"
tc_titles_s12:
    type: item
    material: name_tag
    display name: <&6>Titles J to R
    lore:
    - "Donator Titles"
tc_titles_s13:
    type: item
    material: name_tag
    display name: <&6>Titles S to Z
    lore:
    - "Donator Titles"
tc_titles_s27:
    type: item
    material: name_tag
    display name: <&6>Titles S to Z
    lore:
    - "Donator Titles"

tc_titles_s1_command:
    type: command
    name: titles
    description: Prefix Titles
    usage: /titles
    permission: denizen.titles.menu
    script:
    - inventory open d:in@tc_titles_menu

tc_titles_handler:
    type: world
    events:
        on player clicks in tc_titles_menu:
        - determine cancelled
        on player drags tc_titles_menu:
        - determine cancelled
        on player clicks tc_titles_s1 in tc_titles_menu:
        - execute as_server "pex user <player.name> prefix [&6King]"
        - narrate "Prefix changed to King"
        - determine cancelled
        on player clicks tc_titles_s10 in tc_titles_menu:
        - wait 1
        - inventory open d:in@tc_titles_menu_a2d
        on player clicks tc_titles_s11 in tc_titles_menu:
        - wait 1
        - inventory open d:in@tc_titles_menu_e2i
        on player clicks tc_titles_s12 in tc_titles_menu:
        - wait 1
        - inventory open d:in@tc_titles_menu_j2r
        on player clicks tc_titles_s13 in tc_titles_menu:
        - wait 1
        - inventory open d:in@tc_titles_menu_s2z