Date: 2018/06/18 11:39:27 UTC-07: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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
"Arcane Forger":
type: assignment
interact scripts:
- 10 Arcane Forger Forging
actions:
on assignment:
- teleport npc <npc.anchor[badlucknpc]>
- trigger name:proximity toggle:true
- trigger name:chat toggle:true
"Arcane Forger Format":
type: format
format: "<dark_green>Arcane Forger<white><&co> <text>"
"Arcane Forger Forging":
type: interact
steps:
"Player Seen*":
proximity trigger:
entry:
script:
- narrate "format:Arcane Forger Format" "Welcome, adventurer! I am a master of extracting magical energies and manipulating them for heroes like yourself. If you collect enough of these items on your adventures, I can help you harness this power."
- narrate "format:Arcane Forger Format" "The various services I can provide require different amounts of magical energy. Right click me to browse my offerings."
exit:
script:
- narrate "format:Arcane Forger Format" "Good luck on your adventures! Visit me again when you need my help."
click trigger:
script:
- narrate "format:Arcane Forger Format" "Okay, here's what I have to offer."
- wait 1s
- inventory open d:in@ArcaneForgerInventoryMenu
"ArcaneForgerInventoryMenu":
type: inventory
title: Arcane Forging
size: 45
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [i@VeteranToolForge] [] [i@VeteranWeaponForge] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [i@EliteToolForge] [] [i@EliteWeaponForge] [] [] []"
- "[] [] [] [] [] [] [] [] []"
"Veteran Token Placeholder":
type: world
events:
on mm denizen mechanic:
- give VeteranToken quantity:1 to:<context.caster.inventory>
VeteranToken:
type: item
material: bone[flags=li@HIDE_ENCHANTS;nbt=li@BadLuckToken/Veteran]
display name: "<&9>Phantasmal Bones"
lore:
- "<&6>The bones of a powerful monster, slain by a hero. When held, you can still feel energy pouring out of them."
enchantments:
- MENDING:1
EliteToken:
type: item
material: bone[flags=li@HIDE_ENCHANTS;nbt=li@BadLuckToken/Elite]
display name: "<&d>Elite Bones"
lore:
- "<&6>The bones of a very powerful monster, slain by a hero. They are, even still, infused with a large amount of magical energy."
enchantments:
- MENDING:1
"VeteranToolForge":
type: item
material: diamond_pickaxe[flags=li@HIDE_ATTRIBUTES|HIDE_ENCHANTS]
display name: "<&9>Forge a Veteran Tool"
lore:
- "<&6>Requires <server.flag[VeteranToolForgeCost]> Phantasmal Bones and 1 Sliver of Crystallized Experience."
enchantments:
- MENDING:1
"VeteranWeaponForge":
type: item
material: diamond_sword[flags=li@HIDE_ATTRIBUTES|HIDE_ENCHANTS]
display name: "<&9>Forge a Veteran Armament"
lore:
- "<&6>Requires <server.flag[VeteranWeaponForgeCost]> Phantasmal Bones and 1 Sliver of Crystallized Experience."
enchantments:
- MENDING:1
"EliteToolForge":
type: item
material: diamond_pickaxe[flags=li@HIDE_ATTRIBUTES|HIDE_ENCHANTS]
display name: "<&d>Forge an Elite Tool"
lore:
- "<&6>Requires <server.flag[EliteToolForgeCost]> Phantasmal Bones and 1 Chunk of Crystallized Experience."
enchantments:
- MENDING:1
"EliteWeaponForge":
type: item
material: diamond_sword[flags=li@HIDE_ATTRIBUTES|HIDE_ENCHANTS]
display name: "<&d>Forge an Elite Armament"
lore:
- "<&6>Requires <server.flag[EliteWeaponForgeCost]> Phantasmal Bones and 1 Chunk of Crystallized Experience."
enchantments:
- MENDING:1
"Arcane Forger Inventory Handler":
type: world
events:
on server start:
- flag server VeteranToolForgeCost:150
- flag server VeteranWeaponForgeCost:200
- flag server EliteToolForgeCost:900
- flag server EliteWeaponForgeCost:1200
on player clicks in ArcaneForgerInventoryMenu:
- determine cancelled
on player drags in ArcaneForgerInventoryMenu:
- determine cancelled
on player clicks VeteranToolForge in ArcaneForgerInventoryMenu:
- inventory close d:in@ArcaneForgerInventoryMenu
# - narrate "format:Arcane Forger Format" "You clicked the Veteran Tool Forge option!"
- announce to_console <player.inventory.list_contents>
- if <player.inventory.contains.scriptname[VeteranToken].quantity[<server.flag[VeteranToolForgeCost]>]> && <player.inventory.contains.scriptname[CrystallizedExperienceSliver].quantity[1]>
{
# - narrate "format:Arcane Forger Format" "You have enough bones for a special magic doodad!"
- take scriptname:VeteranToken quantity:<server.flag[VeteranToolForgeCost]>
- take scriptname:CrystallizedExperienceSliver quantity:1
- random
{
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Axe!"
- give <mythicitem@ImbuedAxe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Pickaxe!"
- give <mythicitem@ImbuedPickaxe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Shovel!"
- give <mythicitem@ImbuedShovel.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Hoe!"
- give <mythicitem@ImbuedHoe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Fishing Rod!"
- give <mythicitem@ImbuedFishingRod.get_item> quantity:1
}
}
}
else
{
- narrate "format:Arcane Forger Format" "Sorry, you don't have enough for that!"
}
- narrate "format:Arcane Forger Format" "Right click me again if you'd like to choose another option!"
on player clicks VeteranWeaponForge in ArcaneForgerInventoryMenu:
- inventory close d:in@ArcaneForgerInventoryMenu
# - narrate "format:Arcane Forger Format" "You clicked the Veteran Weapon Forge option!"
- announce to_console <player.inventory.list_contents>
- if <player.inventory.contains.scriptname[VeteranToken].quantity[<server.flag[VeteranWeaponForgeCost]>]> && <player.inventory.contains.scriptname[CrystallizedExperienceSliver].quantity[1]>
{
# - narrate "format:Arcane Forger Format" "You have enough bones for a special magic doodad!"
- take scriptname:VeteranToken quantity:<server.flag[VeteranWeaponForgeCost]>
- take scriptname:CrystallizedExperienceSliver quantity:1
- random
{
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Sword!"
- give <mythicitem@ImbuedSword.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Shield!"
- give <mythicitem@ImbuedShield.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Helm!"
- give <mythicitem@ImbuedHelm.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive an Imbued Chestplate!"
- give <mythicitem@ImbuedChest.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a pair of Imbued Leggings!"
- give <mythicitem@ImbuedLegs.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a pair of Imbued Boots!"
- give <mythicitem@ImbuedBoots.get_item> quantity:1
}
}
}
else
{
- narrate "format:Arcane Forger Format" "Sorry, you don't have enough for that!"
}
- narrate "format:Arcane Forger Format" "Right click me again if you'd like to choose another option!"
on player clicks EliteToolForge in ArcaneForgerInventoryMenu:
- inventory close d:in@ArcaneForgerInventoryMenu
# - narrate "format:Arcane Forger Format" "You clicked the Elite Tool Forge option!"
- if <player.inventory.contains.scriptname[VeteranToken].quantity[<server.flag[EliteToolForgeCost]>]> && <player.inventory.contains.scriptname[CrystallizedExperienceChunk].quantity[1]>
{
# - narrate "format:Arcane Forger Format" "You have enough bones for a special magic doodad!"
- take scriptname:VeteranToken quantity:<server.flag[EliteToolForgeCost]>
- take scriptname:CrystallizedExperienceChunk quantity:1
- random
{
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Axe!"
- give <mythicitem@BurnishedAxe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Pickaxe!"
- give <mythicitem@BurnishedPickaxe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Shovel!"
- give <mythicitem@BurnishedShovel.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Hoe!"
- give <mythicitem@BurnishedHoe.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Fishing Rod!"
- give <mythicitem@BurnishedFishingRod.get_item> quantity:1
}
}
}
else
{
- narrate "format:Arcane Forger Format" "Sorry, you don't have enough for that!"
}
- narrate "format:Arcane Forger Format" "Right click me again if you'd like to choose another option!"
on player clicks EliteWeaponForge in ArcaneForgerInventoryMenu:
- inventory close d:in@ArcaneForgerInventoryMenu
# - narrate "format:Arcane Forger Format" "You clicked the Elite Weapon Forge option!"
- if <player.inventory.contains.scriptname[VeteranToken].quantity[<server.flag[EliteWeaponForgeCost]>]> && <player.inventory.contains.scriptname[CrystallizedExperienceChunk].quantity[1]>
{
# - narrate "format:Arcane Forger Format" "You have enough bones for a special magic doodad!"
- take scriptname:VeteranToken quantity:<server.flag[EliteWeaponForgeCost]>
- take scriptname:CrystallizedExperienceChunk quantity:1
- random
{
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Sword!"
- give <mythicitem@BurnishedSword.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Shield!"
- give <mythicitem@BurnishedShield.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Helm!"
- give <mythicitem@BurnishedHelm.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Burnished Chestplate!"
- give <mythicitem@BurnishedChest.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a pair of Burnished Leggings!"
- give <mythicitem@BurnishedLegs.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a pair of Burnished Boots!"
- give <mythicitem@BurnishedBoots.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Bountiful Blade!"
- give <mythicitem@BountifulBlade.get_item> quantity:1
}
- repeat 1
{
- narrate "format:Arcane Forger Format" "The magics coalesce... and you receive a Withering Blade!"
- give <mythicitem@WitheringBlade.get_item> quantity:1
}
}
}
else
{
- narrate "format:Arcane Forger Format" "Sorry, you don't have enough for that!"
}
- narrate "format:Arcane Forger Format" "Right click me again if you'd like to choose another option!"