Paste #49570: Player Options

Date: 2018/09/02 05:52:47 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


player_options:
    type: world
    debug: true
    events:
        on player clicks in po_menu:
        - playsound <player> sound:ENTITY_EGG_THROW
        - determine cancelled
        on player drags in po_menu:
        - determine cancelled
        on player clicks skill_s in po_menu:
        - execute as_player "class skill"
        on player clicks attr_s in po_menu:
        - execute as_player "class attr"
        on player clicks friends in po_menu:
        - execute as_player "friends"
        on player clicks help_s in po_menu:
        - execute as_player "help"
        on player clicks p_profile in po_menu:
        - inventory close
        on player clicks vanity in po_menu:
        - execute as_player "wings"
        on player clicks achiev in po_menu:
        - execute as_player "achievements"
        on player clicks daily_quests in po_menu:
        - execute as_player "daily"
        on player clicks info in po_menu:
        - execute as_player "info"

glass:
    type: item
    debug: false
    material: black_stained_glass_pane
    display name: <&c>

player_options:
    type: command
    name: menu
    debug: false
    description: The command for opening player options menu!
    usage: /menu
    allowed help:
    - determine false
    script:
    - inventory open d:in@po_menu

p_profile:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Profile
    lore:
    - <&7><&o>(Total Attributes)
    - <&7>
    - <&f><&l>Main Attributes
    - <&7><&m>----------------------
    - <&f>- <&7><&o>Endurance: <&a><placeholder[sapi_attrib_spent:Endurance]
    - <&f>- <&7><&o>Resistance: <&a><placeholder[sapi_attrib_spent:Resistance]
    - <&f>- <&7><&o>Agility: <&a><placeholder[sapi_attrib_spent:Agility]
    - <&f>- <&7><&o>Intelligence: <&a><placeholder[sapi_attrib_spent:Intelligence]
    - <&f>- <&7><&o>Strength: <&a><placeholder[sapi_attrib_spent:Strength]
    - <&7><&m>----------------------
    - <&7>
    - <&f><&l>Item Attributes
    - <&7><&m>----------------------
    - <&f>- <&7><&o>Damage: <&a><placeholder[dirpg_attribute_DAMAGE]>
    - <&f>- <&7><&o>AOE Damage: <&a><placeholder[dirpg_attribute_AOE_DAMAGE]>
    - <&f>- <&7><&o>Critical Chance: <&a><placeholder[dirpg_attribute_CRITICAL_RATE]>
    - <&f>- <&7><&o>Critical Damage: <&a><placeholder[dirpg_attribute_CRITICAL_DAMAGE]>
    - <&f>- <&7><&o>Defence Chance: <&a><placeholder[dirpg_attribute_BLOCK_RATE]>
    - <&f>- <&7><&o>Defence Damage: <&a><placeholder[dirpg_attribute_BLOCK_DAMAGE]>
    - <&f>- <&7><&o>Attack Speed: <&a><placeholder[dirpg_attribute_ATTACK_SPEED]>
    - <&f>- <&7><&o>PvP Damage: <&a><placeholder[dirpg_attribute_PVP_DAMAGE]>
    - <&f>- <&7><&o>PvP Defence: <&a><placeholder[dirpg_attribute_PVP_DEFENSE]>
    - <&f>- <&7><&o>Movement Speed: <&a><placeholder[dirpg_attribute_MOVEMENT_SPEED]>
    - <&7><&m>----------------------

skill_s:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Skills
    lore:
    - <&7><&o>Click to upgrade all the available
    - <&7><&o>skills for your current class!

attr_s:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Attributes
    lore:
    - <&7><&o>Click to upgrade your attributes
    - <&7><&o>with your current attribute points!

help_s:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Help
    lore:
    - <&7><&o>Click to see all the available
    - <&7><&o>commands on the server!

vanity:
    type: item
    debug: false
    material: elytra
    display name: <&c><bold>Vanities
    lore:
    - <&7><&o>Click to edit/equip your vanities!

friends:
    type: item
    debug: false
    material: paper
    display name: <&c><bold>Friends
    lore:
    - <&7><&o>Click to see your friends menu!

achiev:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Achievements
    lore:
    - <&7><&o>Click to see all the achievements!

daily_quests:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Daily Quests
    lore:
    - <&7><&o>Click to see all the available
    - <&7><&o>daily quests!

info:
    type: item
    debug: false
    material: book
    display name: <&c><bold>Information
    lore:
    - <&7><&o>Click to see news/information
    - <&7><&o>about LegendForge!

po_menu:
    type: inventory
    debug: false
    title: Player Options
    size: 9
    slots:
    - "[i@p_profile] [i@skill_s] [i@attr_s] [i@friends] [i@daily_quests] [i@vanity] [i@achiev] [i@info] [i@help_s]"