Date: 2014/05/22 11:15:28 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
spawnhubapply:
type: assignment
default constants:
cN1: 1|2
cN11: 1|2|3|4|5|6|7
cN117: 1|2|3|4|5|6|7|8|9
interact scripts:
- 1 spawnhubapplystart1
actions:
- trigger name:chat toggle:true
- trigger name:click toggle:true
- trigger name:proximity statue:true radius:4
spawnhubapplystart1:
type: interact
steps:
1:
proximity trigger:
entry:
script:
- chat "Oh hey, you must be <white><player.name><green> welcome to Fixiebrick, i have been awaiting you!<gray> (Right click me)<green>"
- flag player "chatSelect:1"
click trigger:
script:
- flag player "repeatLast:true"
- runtask spawnhubapplychatnav
chat trigger:
1:
trigger: //
script:
- runtask spawnhubapplychatnav
spawnhubapplychatnav:
type: task
script:
- if <cons:cN<player.flag[chatSelect]>> contains <player.chat_history> && <player.flag[repeatLast]> == false {
- flag player "chatSelect:<player.flag[chatSelect]><player.chat_history>"
} else if <player.flag[repeatLast]> == true {
- flag player "repeatLast:false"
} else if <player.chat_history> == 0 {
- flag player "chatSelect:2"
} else {
- chat "<green>What? Options; <cons:cN<player.flag[chatSelect]>>"
}
- if <player.flag[chatSelect]> == 1 {
- chat "Oh, cool so you are interested in becoming a builder on <white>Fixiebrick<green>?"
- ^narrate "type the number of the option you want in the chat."
- ^narrate "1. Yes"
- ^narrate "2. No"
}
else if <player.flag[chatSelect]> == 11 {
- if <player.flag[application]> != 1 && <player.flag[application]> != 2 && <player.flag[application]> != 3 {
- chat "Oke, then let me explain what being a builder on <white>fixiebrick<green> means for you!"
- wait 3
- chat "Being a builder on <white>Fixiebrick<green> is not easy, you have to qualify through this application process."
- wait 4
- chat "Most of the applications are denied because of lack on quality."
- wait 3
- chat "We do not care for your speed, we care for the quality that you build!"
- wait 4
- chat "The server is medieval and steampunk style, so that's the style you need to build."
- wait 4
- chat "If you want to do a application, you get a plot, and can do your application on that plot."
- wait 4
- chat "On your own plot you will be able to worldedit."
- wait 4
- chat "Do you want to Apply?"
- ^narrate "type the number of the option you want in the chat."
- ^narrate "1. Yes"
- ^narrate "2. No"
}
- else if <player.flag[application]> == 1 || <player.flag[application]> == 2 || <player.flag[application]> == 3 {
- chat "Hmm, it seems that you don't need to start a application anymore <white><player.name>!"
- wait 4
- chat "Shall i teleport you to your plot?"
- ^narrate "type the number of the option you want in the chat."
- ^narrate "1. Yes"
- ^narrate "2. No"
}
}
else if <player.flag[chatSelect]> == 111 {
- if <player.flag[application]> != 1 && <player.flag[application]> != 2 && <player.flag[application]> != 3 {
- chat "Great!"
- wait 1
- chat "Oke, i will now bring you to your plot,"
- wait 2
- flag player "application:1"
- execute as_op "warp plotworld"
- execute as_server "pex user <player.name> group set Applicant"
- execute as_player "plotme auto"
- wait 0,1
- create player Trainer <player.location.add[0,0,5]>
- execute as_op "npc sel"
- execute as_op "npc assignment --set plothelperassignment"
- execute as_op "npc look"
- flag player "personalplottrainer:<npc.id>"
}
- else if <player.flag[application> == 1 || <player.flag[application]> == 2 {
- execute as_player "plotme home"
- chat "There you go, back on your plot!"
}
- else if <player.flag[application]> == 3 {
- chat "I'm sorry, you completed your application before, and you have no plot anymore."
}
else if <player.flag[chatSelect]> == 112 {
- chat "Oke, hope to see you some other time!"
}
else if <player.flag[chatSelect]> == 113 {
}
else if <player.flag[chatSelect]> == 114 {
}
else if <player.flag[chatSelect]> == 115 {
}
else if <player.flag[chatSelect]> == 116 {
}
else if <player.flag[chatSelect]> == 117 {
- chat "<green>Test7"
}
else if <player.flag[chatSelect]> == 1151 {
}
else if <player.flag[chatSelect]> == 1152 {
}
else if <player.flag[chatSelect]> == 1153 {
}
else if <player.flag[chatSelect]> == 1154 {
}
else if <player.flag[chatSelect]> == 1155 {
}
else if <player.flag[chatSelect]> == 1156 {
}
else if <player.flag[chatSelect]> == 1157 {
}
else if <player.flag[chatSelect]> == 1158 {
}
else if <player.flag[chatSelect]> == 1159 {
}
else if <player.flag[chatSelect]> == 12 {
- flag player "chatSelect:2"
- flag player "repeatLast:true"
- runtask spawnhubapplychatnav
} else if <player.flag[chatSelect]> == 2 {
- random {
- chat "<green>Goodbye <white><player.name><green>."
- chat "<green>Goodbye <white><player.name><green>, hope I helped!"
- chat "<green>Hope to see you around <white><player.name><green>."
- chat "<green>Hope I helped <white><player.name><green>."}
- flag player "chatSelect:1"
} else {
- chat "<green>Error! Unknown chat path... contact admin / technician"
- announce to_ops "Error! Unknown chat path; guardInteract, <player.flag[repeatLast]> + <player.flag[chatSelect]> + <player.chat_history>"
}
- ^narrate "0. Exit"