Date: 2015/04/11 21:16: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
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
Bossassignmentj:
type: assignment
actions:
on assignment:
- flag npc 'jarvenspawn:<npc.location>'
- trigger name:damage toggle:true
on death:
- define npcName '<npc.name.replace[<&co>].strip_color>'
- foreach <npc.flag[BossHitList].as_list> {
- flag <def[value].as_player> 'BossKills:->:%npcName%'
- title 'title:%npcName%' 'subtitle:Has been defeated!' stay:5s
}
- flag <npc> BossHitList:!
- flag player hit%npcName%:!
on damage:
- define npcName '<npc.name.replace[<&co>].strip_color>'
- if <npc.flag[BossHitList].as_list> !contains <player.uuid> {
- flag npc 'BossHitList:->:<player.uuid>'
}
- flag player hit%npcName% duration:60s
Jathir:
type: interact
steps:
1:
Proximity Trigger:
entry:
script:
- if <player.flag[killingjarven]||false> {
- random {
- narrate format:cchat "Hey you, get me outta here!"
- narrate format:cchat "I don't want to die! HELP ME!"
}
}
else {
- random {
- narrate format:cchat "Help me!"
- narrate format:cchat "Get me out of here please!"
}
}
Click Trigger:
script:
- if <player.flag[killingjarven]||false> {
- ENGAGE
- narrate format:cchat "Oh thank you for saving me!"
- ^execute as_server "npc sel 59"
- wait 2
- narrate format:cchat "I'm coming with you"
- flag player savedjathir:true
- ^execute as_npc "sentry guard <player.name>"
- zap s@Jathir 2
- flag npc ownerplayer:<player.name>
- DISENGAGE
}
else {
- narrate format:cchat "Shh you will bring them to me!"
}
2:
Click Trigger:
script:
- if <player.flag[killingjarven]||false> {
- narrate format:cchat "Lets get out of here!"
}
else {
- narrate format:cchat "Thank you for helping me, now im just keeping watch!"
}
Jathirassign:
type: assignment
actions:
on assignment:
- trigger name:proximity state:true
- trigger name:chat state:true
interact scripts:
- 1 Jathir
jathir1:
type: interact
steps:
1:
Proximity trigger:
entry:
script:
- random 3
- narrate "You overhear a man sobbing while saying the name Jathir"
- narrate "You hear a man scream hysterically"
- narrate format:cchat "Hey <player.name> can you help me? I need to speak with you! Please!?"
Click Trigger:
script:
- ENGAGE
- narrate format:cchat "Oh thank you <player.name>, I have a huge favor to ask of you!"
- wait 3
- narrate format:cchat "My son Jathir went out to play in the fields and he hasn't come back yet!"
- wait 7
- narrate format:cchat "He said that he was going to play near The Old Mine, I'm worried about him!"
- wait 4
- narrate format:cchat "Will you help me find him?"
- narrate format:hint "You can say Yes or No!"
- DISENGAGE
Chat Trigger:
1:
trigger: /Yes/, I will help you!
script:
- narrate format:cchat "Oh thank you so much, you have no idea how much this means to me!"
- wait 4
- narrate format:cchat "I can give you some directions to The Old Mine!"
- wait 3
- narrate format:cchat "If you go out the east entrance of town, continue up the road and you will come to a small path to the right that leads to The Old Mine"
- wait 4
- narrate format:cchat "Please tell me if you find him!"
- flag player killingjarven:true
- execute as_server 'npc spawn 59'
- wait 3
- title "title:<gold>- Quest Started -" "subtitle:<white>Find Jathir"
- zap s@jathir1 2
2:
trigger: /No/, I'm sorry, I'm very busy!
script:
- narrate format:cchat "Please, if you get time please let me know! I miss my son!"
2:
Click Trigger:
script:
- if <player.flag[savedjathir]> {
- ENGAGE
- narrate format:cchat "Did you find my Jathir?"
- wait 2
- narrate "You inform him that you found his son!"
- wait 3
- narrate format:cchat "Jathir!!! My baby boy is home!"
- narrate "The man starts crying uncontrollably"
- wait 4
- narrate format:cchat "What Happened to you my boy?"
- wait 3
- narrate "You inform him that Jathir had been kidnapped by some bandits and that you dispatched them!"
- wait 3
- narrate format:cchat "Thank you! I don't know how I would go on without him..."
- wait 3
- narrate format:cchat "I sure do appreciate your help, if you want to help out some more please speak to Azreal in the dinning hall!"
- wait 6
- narrate format:cchat "Before you go!"
- wait 1
- narrate format:cchat "Here I don't need this anymore"
- DISENGAGE
- if <player.inventory.stacks> < 36 {
- execute as_server 'loot give <player.name> Ohtiss'
- execute as_server 'npc sel 59'
- execute as_server 'sentry guard'
- execute as_server 'npc despawn'
- flag player savedjathir2:true
- zap s@jathir1 3
}
else {
- narrate format:cchat "Make some room in your pack and talk to me again!"
}
}
else {
- narrate format:cchat "Have you found Jathir?"
}
3:
Click Trigger:
script:
- narrate format:cchat "Thank you for saving Jathir!"
jathirsfather:
type: assignment
actions:
on assignment:
- trigger name:proximity state:true
- trigger name:chat state:true
interact scripts:
- 10 jathir1