Date: 2014/09/01 17:09:36 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
AdventureQuest:
type: assignment
interact scripts:
- 10 AdventureNPC
AdventureNPC:
type: interact
steps:
1:
proximity trigger:
entry radius: 5
entry:
script:
- narrate "<npc.name><&co> <gold>Welcome to Adventure<&cm> <player.name.display><gold>!"
- narrate "<npc.name><&co> <gold>Click me to see what levels you have completed."
- narrate "<npc.name><&co> <gold>Or say the level you want to go to. (ie. 1<&cm> 2<&cm> secret)"
- narrate "<npc.name><&co> <gold>You can also go to the extra storage area<&cm> by saying storage"
click trigger:
script:
- if <player.flag[Secret_Found]>
{
- narrate "<npc.name><&co> <gold>You see you found the entrance to the secret level<&cm> nice!"
}
- if <player.flag[Level9_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 9<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level8_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 8<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level7_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 7<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level6_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 6<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level5_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 5<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level4_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 4<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level3_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 3<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level2_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 2<&cm> Congratulations!"
- determine fulfilled
}
else if <player.flag[Level1_Complete]>
{
- narrate "<npc.name><&co> <gold>You have Completed Level 1<&cm> Congratulations!"
- determine fulfilled
}
else
{
- narrate "<npc.name><&co> <gold>You havent completed any levels yet<&cm> thats pretty sad..."
- determine fulfilled
}
chat trigger:
'Level 1':
trigger: Take me to level /1/
script:
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
- wait 1
- teleport <player> -199,11,-33,0,-90,GameWorld
'Level 2':
trigger: Take me to level /2/
script:
- if <player.flag[Level1_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
- wait 1
- teleport <player> -120,11,-113,0,-90,GameWorld
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 2 yet!"
}
'Level 3':
trigger: Take me to level /3/
script:
- if <player.flag[Level2_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 3 yet!"
}
'Level 4':
trigger: Take me to level /4/
script:
- if <player.flag[Level3_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 4 yet!"
}
'Level 5':
trigger: Take me to level /5/
script:
- if <player.flag[Level4_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 5 yet!"
}
'Level 6':
trigger: Take me to level /6/
script:
- if <player.flag[Level5_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 6 yet!"
}
'Level 7':
trigger: Take me to level /7/
script:
- if <player.flag[Level6_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 7 yet!"
}
'Level 8':
trigger: Take me to level /8/
script:
- if <player.flag[Level7_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 8 yet!"
}
'Level 9':
trigger: Take me to level /9/
script:
- if <player.flag[Level8_Complete]>
{
- narrate "<npc.name><&co> <gold>Okay<&cm> good luck!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to level 9 yet!"
}
'Secret':
trigger: Take me to the /secret/ level
script:
- if <player.flag[Secret_Found]>
{
- narrate "<npc.name><&co> <gold>Sorry<&cm> that place is under contruction at the moment!"
}
else
{
- narrate "<npc.name><&co> <gold>You haven't found the entrance to the secret level!"
}
'Storage':
trigger: Take me to the /storage/ area
script:
- narrate "<npc.name><&co> <gold>Okay<&cm> one second!"
- wait 1
- teleport <player> -171,55,82,GameWorld
'top':
trigger: show me the /top/ players
script:
- if <server.has_flag[level2completed]>
{
- narrate "<gold>Level 2 completed<&co> <blue><server.flag[level2completed]>"
}
else if <server.has_flag[level1completed]>
{
- narrate "<gold>Level 1 completed<&co> <blue><server.flag[level1completed]>"
}
else
{
- narrate "<npc.name><&co> <gold>No one completed anything"
}
'Dunno':
trigger: /REGEX:\w+/
script:
- narrate "<npc.name><&co> <gold>Sorry<&cm> I dont understand."