Paste #32964: Script

Date: 2016/04/21 18:30:57 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


kit_gui_inv:  
    type: inventory  
    title: Kit Menus  
    Size: 27  
    slots:  
    - "[] [] [] [] [] [] [] [] []"  
    - "[] [] [] [i@kit_gui_standard_item] [] [i@kit_gui_donator_item] [] [] []"  
    - "[] [] [] [] [] [] [] [] []"  

kit_gui_standard_inv: 
    type: inventory 
    title: Standard Kits 
    size: 27 
    slots: 
    - "[i@kit_gui_standard_item] [] [] [] [] [] [] [] []" 
    - "[] [] [] [] [] [] [] [] []" 
    - "[] [] [] [] [] [] [] [] []" 

kit_gui_donator_inv: 
    type: inventory 
    title: Donator Kits 
    size: 27 
    slots:
    - "[i@kit_gui_donator_item] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"

kit_gui_npc:
    type: assignment
    actions:
         on click:
         - inventory open d:in@kit_gui_inv
         on assignment:
         - trigger name:click state:true

kit_gui_world:
    type: world
    events:
        on player clicks in kit_gui_inv:
        - determine passively cancelled
        - choose <context.item.script.name>:
          - case "kit_gui_standard_item":
            - define option kit_gui_standard_inv
          - case "kit_gui_donator_item":
            - define option kit_gui_donator_inv
        - inventory close 
        - wait 1t 
        - inventory open d:in@<def[option]>
        on player drags in kit_gui_inv:  
        - determine cancelled 

kit_gui_standard_item:  
    type: item  
    material: IRON_CHESTPLATE  
    display name: <&e><&l>Standard Kits  
    lore:  
    - "<&c>Displays All Standard Kits"  
    - "<&c>And Their Respective Cooldowns"  

kit_gui_donator_item:  
    type: item
    material: GOLD_CHESTPLATE  
    display name: <&e><&l>Donator Kits  
    lore:  
    - "<&c>Displays All Donator Kits"  
    - "<&c>And Their Respective Cooldowns"