Date: 2016/11/05 09:01:09 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
rolandquestsinv:
type: inventory
title: Roland's Quests
size: 9
slots:
- "[] [] [] [] [] [] [] [] []"
rolandquests:
type: world
events:
on player clicks in <player>rolandquests:
- determine cancelled
on player drags in <player>rolandquests:
- determine cancelled
on player clicks in rolandshop:
- determine cancelled
on player drags in rolandshop:
- determine cancelled
on player clicks rolandquestsi in rolandshop:
- if <player.has_flag[rolandquests]> == false {
- flag player rolandquests
- inventory add destination:<player>rolandquests origin:i@RolandsReagents
- inventory add destination:<player>rolandquests origin:i@rolandshopi slot:9
- inventory open d:in@<player>rolandquests
} else {
- inventory open d:in@<player>rolandquests
}
on player clicks rolandshopi in <player>rolandquests:
- inventory close
- inventory open d:in@rolandshop
rolandasn:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true radius:5
on click:
- if <player.has_flag[rolandintro]> == false {
- narrate "Welcome to my humble shop! Care to browse my wares or are you seeking employment?"
- flag player rolandintro
- inventory open d:in@rolandshop
} else {
- narrate "Ah! Hello again. What can I do for you?"
- inventory open d:in@rolandshop
}
rolandshop:
type: inventory
title: Roland's Shop
size: 36
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] [i@rolandquestsi]"
rolandshopi:
type: item
material: gold_ingot
display name: Shop
lore:
- "Care to browse my wares?"
- "<&O>Click here to return to"
- "shop menu.<&r>"
rolandquestsi:
type: item
material: 386
display name: Quests
lore:
- "Looking for work? I might"
- "have a job or two for ya."
- "<&O>Click here to view available"
- "Quests<&r>"
RolandsReagents:
type: item
material: 386
display name: Roland's Reagents
lore:
- "Need a little scratch?"
- "I'll pay ya for some"
- "'basic' deliveries..."
- "Quest Points Needed: 0"
- "Prereq. Quests: None"
AnExoticCustomer:
type: item
material: 386
display name: An Exotic Customer
lore:
- "More delivery work. East"
- "gish and back doesn't quite"
- "describe it."
- "Quest Points Needed: 20"
- "Prereq. Quests: Roland's Reagents"
PeskyCompetition:
type: item
material: 386
display name: Pesky Competition
lore:
- "I need a hand swatting some"
- "bothersome flies."
- "Quest Points Needed: 500"
- "Prereq. Quests: An Exotic Customer"