Date: 2018/08/11 11:50:07 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
questlogworld:
type: world
events:
on player right clicks queststatsi in inventory:
- inventory close
- narrate "Completed Quests: <player.quests.completed.add[<player.flag[completedquests]>].round>"
- wait 3
- queue clear
on player right clicks completedquestsi in inventory:
- inventory close
- inventory open d:in@<player.uuid>completedquests
on player right clicks activequestsi in inventory:
- inventory close
- inventory open d:in@<player.uuid>questjournal
on player logs in:
- if <player.has_flag[questjournal].not> {
- note in@QuestJournalMenu as:<player.uuid>questjournal
- note in@questcompletemenu as:<player.uuid>completedquests
- flag player questjournal
}
questlog:
type: command
name: questlog
usage: /questlog
script:
- if <player.has_flag[questjournal].not> {
- note in@QuestJournalMenu as:<player.uuid>questjournal
- note in@questcompletemenu as:<player.uuid>completedquests
- flag player questjournal
}
- inventory open d:in@<player.uuid>questjournal
questcompletemenu:
type: inventory
inventory: chest
title: Completed Quests
size: 45
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [i@queststatsi] [i@activequestsi]"
QuestJournalMenu:
type: inventory
title: Quest Journal
size: 45
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] [i@completedquestsi]"
completedquestsi:
type: item
material: book
display name: Quest Stats
lore:
- "Click here to view your completed quests."
queststatsi:
type: item
material: book
display name: Quest Stats
lore:
- "Click here to view your quest stats."
activequestsi:
type: item
material: book
display name: Active Quests.
lore:
- "Click here to access information."
- "about your active quests."