Date: 2014/03/15 05:33:16 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
TutorialQuestsAssignment:
type: assignment
interact scripts:
- 10 TutorialQuests
TutorialQuests:
type: interact
steps:
1:
click trigger:
script:
- if <npc.name> = "Trainer Fabian" {
- narrate '<blue><npc.name><&co> <yellow>Welcome <aqua><player.name><white>,'
- wait 1
- narrate '<blue><npc.name><&co> <white>This Universe Is Known As <gold>Yuri Isles<white>,'
- wait 1
- narrate '<blue><npc.name><&co> <white>And Consists Of 3 Dimensions.'
- wait 1
- narrate '<blue><npc.name><&co> <white>We Are Currently Standing In The First'
- wait 1
- narrate '<blue><npc.name><&co> <white>Dimension <light_purple>Valhalla<white>.'
- wait 1
- narrate '<blue><npc.name><&co> <white>But You Must Be Tired From Your Journey,'
- wait 1
- narrate '<blue><npc.name><&co> <white>So Rest And Talk To Me Once You<&sq>re Ready To'
- wait 1
- narrate '<blue><npc.name><&co> <white>Move On.'
- wait 1
- narrate '<gold>Help<&co> <gray>You Can Say "Ready" Or "Not Ready"'
}
- else if <npc.name> = "Staff Leon" {
- narrate '<blue><npc.name><&co> <white>I<&sq>m Sorry, I<&sq>m Busy Please Talk To <light_purple>Trainer Fabian<white>.'
}
chat trigger:
1:
trigger: I Am /Ready/!
script:
- if <npc.name> = "Trainer Fabian" {
- wait 2
- narrate '<blue><npc.name><&co> <white>Okay,'
- wait 2
- narrate '<blue><npc.name><&co> <white>Well As You Are New To This <dark_purple>Universe<white>,'
- wait 1
- narrate '<blue><npc.name><&co> <white>You must First <green>Register <white>To Become A <aqua>Citizen<white>.'
- wait 1
- narrate '<blue><npc.name><&co> <white>Take This To <light_purple>Staff Leon<white> To Begin The'
- wait 1
- narrate '<blue><npc.name><&co> <white>Process.'
- give i@RegistrationPapers qty:1
- narrate '<yellow>You Recieved "Registration Papers."'
- narrate '<gold>Quest Accepted<&co> Become A Citizen!'
- flag player BecomeACitizen:2
- zap step:2
}
- else if <npc.name> = "Staff Leon" {
- narrate '<blue><npc.name><&co> <white>Ready For What, Go Talk To <light_purple>Trainer Fabian<white>.'
}
2:
click trigger:
script:
- if <npc.name> = "Staff Leon" {
- narrate '<blue><npc.name><&co> <white>Do You Have Somthing For Me?'
- wait 1
- if <player.inventory.contains[item:RegistrationPapers]> {
- ^take i@RegistrationPapers qty:10000
- narrate '<yellow> You hand Over "Registration Papers."'
- wait 1
- narrate '<blue><npc.name><&co> <white>Oh More PaperWork...'
- wait 1
- narrate '<blue><npc.name><&co> <white>Well Everything looks Fine,'
- wait 1
- narrate '<blue><npc.name><&co> <white>But Before We Move On You'
- narrate '<blue><npc.name><&co> <white>Must Agree To The Terms Of Service.'
- wait 1
- narrate '<blue><npc.name><&co> <white>Read This, Then come Back To Me.'
- give i@TheTermsOfService qty:1
- zap step:3
}
- else if !<player.inventory.contains[item:RegistrationPapers]> {
- narrate '<blue><npc.name><&co> <white>Oh, You Lost It,'
- narrate '<blue><npc.name><&co> <white>Well Maybe Trainer Fabian Has A Spare.'
}
- else if <npc.name> = "Trainer Fabian" {
- narrate '<blue><npc.name><&co> <white>You Don't need To Talk To Me Anymore.'
- wait 1
}
- if <player.inventory.contains[item:RegistrationPapers]> {
- narrate '<blue><npc.name><&co> <white>You Don't need To Talk To Me Anymore.'
}
- else if <player.inventory.contains[item:TheTermsOfService]> {
- narrate '<blue><npc.name><&co> <white>Oh, Staff Leon Asked You To Read That?'
- wait 1
- narrate '<blue><npc.name><&co> <white>Well Get On With It.'
}
- else if !<player.inventory.contains[item:TheTermsOfService]> {
- narrate '<blue><npc.name><&co> <white>Huh... How Could You Lose Your Papers?'
- give i@RegistrationPapers qty:1
- narrate '<blue><npc.name><&co> <white>Well Acidents Happen. Don't Lose Them Again.'
}
TestScript:
type: world
events:
on player right clicks:
- if <context.item> == "<i@TheTermsOfService>" {
- narrate 'you have read the terms of service.'
- flag player ReadTerms:1
}
RegistrationPapers:
type: item
material: i@339
display name: Registration Papers
lore:
- Show This To Staff Leon
- To Start The Registration Process.
enchantments:
recipe:
furnace_recipe:
no_id:
bound: true
color:
book:
TheTermsOfService:
type: book
title: Terms Of Service
author: Yuri Isles
text:
- This is my book. There are many like it, but this one is mine!
- Many <n>new <n> lines!
- <p>Paragraphs, <p>too!
QuestCommand:
type: world
events:
on questlog command:
- narrate '<gold>---------------------------------------------'
- narrate 'This Is The QuestLog,'
- narrate 'Quests Are Colour Coded Acording To Your Progress.'
- narrate '<dark_gray>Can<&sq>t Accept <gray>Can Accept <yellow>Active Quest <green>Completed Quest'
- narrate '<dark_purple>Repeatable Quest.'
- narrate '<gold>---------------------------------------------'
# Quest Become A Citizen
- if <player.flag[BecomeACitizen].asint> = 0 {
- narrate '<dark_gray>Become A Citizen.'
}
- if <player.flag[BecomeACitizen].asint> = 1 {
- narrate '<gray>Become A Citizen.'
}
- if <player.flag[BecomeACitizen].asint> = 2 {
- narrate '<yellow>Become A Citizen.'
}
- if <player.flag[BecomeACitizen].asint> = 3 {
- narrate '<green>Become A Citizen.'
}
- if <player.flag[BecomeACitizen].asint> = 4 {
- narrate '<dark_purple>Become A Citizen.'
}
# Quest Get Gear
- if <player.flag[GetGear].asint> = 0 {
- narrate '<dark_gray>Get Gear.'
}
- narrate '<gold>---------------------------------------------'
- determine fulfilled
on quest command:
- narrate '<gold>Commands<&co> /questlog'
- determine fulfilled
JoinEvent:
type: world
events:
on player joins:
- flag player Joined:1
- if <player.flag[Joined].asint> = 1 {
- teleport <player> -151,214,134,Valhalla
- execute as_op "ci"
- flag player BecomeACitizen:0
- flag player GetGear:0
}