Date: 2017/02/17 19:37:42 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
##############################
## ##
## 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><<><blue>luxray978<white><>> 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
##############################