Paste #39981: Untitled Paste

Date: 2017/02/17 19:37:42 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


##############################
##                          ##
##     Luxray Token Shop    ##
##            by            ##
##      ~Peashooter101      ##
##                          ##
##############################
## Denizen Script Info:
## Scripted by Peashooter101
## Scripted for the DragonPeas SMP Server
## Version: 1.0 (Initial Release)
## Dependencies:
## - Luxray Tokens (v1.0+)
##############################

##############################
## Luxray Token Shop Assignment (Citizens NPC Assignment)
##############################

LTSAssignment:
  type: assignment
  interact scripts:
  - 10 LTSInteract

##############################
## Luxray Token Shop Interact (Citizens NPC Interact)
##############################

LTSInteract:
  type: interact
  steps:
    1:
      click trigger:
        script:
        - narrate "<white><&lt><blue>luxray978<white><&gt> Haaaay, whatcha need?"
        - wait 1s
        - inventory open d:in@LTSMainGUI

##############################
## LT Shop Menus
##############################

LTSMainGUI:
  type: inventory
  title: <blue>Luxray Tokens <yellow><bold>Main Menu
  size: 18
  slots:
  - "[] [] [] [] [i@TotalLuxrayTokens] [] [] [] []"
  - "[i@LTSItemsMenuBtn] [i@LTSMoneyMenuBtn] [i@LTSCommandsMenuBtn] [] [] [] [] [] []"

LTSItemsMenuGUI:
  type: inventory
  title: <blue>Luxray Tokens <yellow><bold>Items and Kits
  size: 18
  slots:
  - "[] [] [] [] [i@TotalLuxrayTokens] [] [] [] [i@LTSMainMenuBtn]"
  - "[] [] [] [] [] [] [] [] []"

LTSMoneyMenuGUI:
  type: inventory
  title: <blue>Luxray Tokens <yellow><bold>Money
  size: 18
  slots:
  - "[] [] [] [] [i@TotalLuxrayTokens] [] [] [] [i@LTSMainMenuBtn]"
  - "[] [] [] [] [] [] [] [] []"

LTSCommandsMenuGUI:
  type: inventory
  title: <blue>Luxray Tokens <yellow><bold>Commands
  size: 18
  slots:
  - "[] [] [] [] [i@TotalLuxrayTokens] [] [] [] [i@LTSMainMenuBtn]"
  - "[] [] [] [] [] [] [] [] []"

##############################
## Menu GUI Handlers
##############################

LTSCancelClickInGUIHandler:
  type: world
  events:
    on player clicks in LTSMainGUI:
    - determine cancelled
    on player drags in LTSMainGUI:
    - determine cancelled
    on player clicks in LTSItemsMenuGUI:
    - determine cancelled
    on player drags in LTSItemsMenuGUI:
    - determine 
    on player clicks in LTSMoneyMenuGUI:
    - determine cancelled
    on player drags in LTSMoneyMenuGUI:
    - determine cancelled
    on player clicks in LTSCommandsMenuGUI:
    - determine cancelled
    on player drags in LTSCommandsMenuGUI:
    - determine cancelled
    on player clicks LTSMainMenuBtn in inventory:
    - determine passively cancelled
    - inventory open d:in@LTSMainGUI
    - determine passively cancelled
    - playsound <player> sound:BLOCK_NOTE_PLING
    - determine cancelled
    on player clicks LTSItemsMenuBtn in inventory:
    - determine passively cancelled
    - inventory open d:in@LTSItemsMenuGUI
    - determine passively cancelled
    - playsound <player> sound:BLOCK_NOTE_PLING
    - determine cancelled
    on player clicks LTSMoneyMenuBtn in inventory:
    - determine passively cancelled
    - inventory open d:in@LTSMoneyMenuGUI
    - determine passively cancelled
    - playsound <player> sound:BLOCK_NOTE_PLING
    - determine cancelled
    on player clicks LTSCommandsMenuBtn in inventory:
    - determine passively cancelled
    - inventory open d:in@LTSCommandsMenuGUI
    - determine passively cancelled
    - playsound <player> sound:BLOCK_NOTE_PLING
    - determine cancelled

##############################
## Menu Buttons
##############################

TotalLuxrayTokens:
  type: item
  material: book_and_quill
  display name: <blue>Luxray <yellow>Tokens
  lore:
  - <aqua>Total: <yellow><player.flag[LuxrayTokens]||0> Luxray Tokens

LTSMainMenuBtn:
  type: item
  material: wood_door
  display name: <red><bold> <-- <blue>Main Menu
  lore:
  - <aqua>Alright buddy bois, we are goin' back.

LTSItemsMenuBtn:
  type: item
  material: name_tag
  display name: <blue>Items and Kits
  lore:
  - <aqua>I think this is kinda unfair...

LTSMoneyMenuBtn:
  type: item
  material: gold_ingot
  display name: <blue>Money
  lore:
  - <aqua>Why are you so poor?..

LTSCommandsMenuBtn:
  type: item
  material: command
  display name: <blue>Server Wide Commands
  lore:
  - <aqua>Owner Power Abuse? I don't think so! :D

##############################
## Purchase Items
##############################

##############################
## Purchase Items Buttons
##############################

##############################
## Purchase Money
##############################

##############################
## Purchase Money Buttons
##############################

##############################
## Purchase Commands
##############################

##############################
## Purchase Commands Buttons
##############################