Date: 2016/04/29 13:11:21 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
MountAlpha:
type: assignment
debug: false
actions:
on assignment:
- trigger name:click toggle:true
- trigger name:chat toggle:true
- trigger name:proximity toggle:true radius:5
- lookclose state:true range:3 realistic
interact scripts:
- 10 MountAlphaInteract
MountAlphaInteract:
type: interact
debug: false
steps:
1:
click trigger:
script:
- if <player.has_flag[MountOQP].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Bonjour <pl.name>!"
- wait 1s
- narrate format:chatnpc "Bienvenue à l'écurie de Edelweiss."
- wait 1s
- narrate format:chatnpc "Tu as une monture à récupérer?"
- wait 1s
- narrate format:indication "Avez-vous une monture à récupérer? Oui ou Non?"
- inject lib_npc_disengage instantly
- zap 2 duration:120s
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Vous avez déja une monture sortis vous devez attendre encore pour en prendre une autre."
- inject lib_npc_disengage instantly
}
2:
chat trigger:
1:
trigger: "/Oui/ j'ai une monture à récupérer."
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "De quel type de monture sagit-il?"
- inject lib_npc_disengage instantly
- wait 1s
- narrate format:indication "Sagit-il d'un Cheval, Dragon, Cochon, Poulet, Blaze"
- narrate format:indication "Vache, Mouton ou Araignée?"
- narrate format:indication "Indiquez sa nature dans le chat."
- zap 3 duration:120s
2:
trigger: "/Non/ je n'ai pas de monture à récupérer."
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Bien bonne journée alors!"
- inject lib_npc_disengage instantly
- zap 1
3:
chat trigger:
1:
trigger: "/Poulet/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountPoulet].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- create chicken '<&5>Poulet Monture<&r> <pl.name> <&3>α' <pl.location> traits:controllable save:KFC
- flag <entry[KFC].created_npc> spawn
- flag <entry[KFC].created_npc> mount
- flag <entry[KFC].created_npc> mount_<pl.uuid>
- mount <player>|<entry[KFC].created_npc>
- zap 1
- flag player MountOQP
- inject lib_npc_disengage instantly
}
2:
trigger: "/Cheval/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountCheval].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}
3:
trigger: "/Mouton/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountMouton].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}
4:
trigger: "/Dragon/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountDragon].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}
5:
trigger: "/Vache/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountVache].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}
6:
trigger: "/Arraignée/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountSpider].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}
7:
trigger: "/Blaze/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountBlaze].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- create blaze '<&5>Blaze Monture<&r> <pl.name> <&3>Staff' <pl.location> traits:controllable save:Blaze
- flag <entry[Blaze].created_npc> spawn
- flag <entry[Blaze].created_npc> mount
- flag <entry[Blaze].created_npc> mount_<pl.uuid>
- mount <player>|<entry[Blaze].created_npc>
- zap 1
- flag player MountOQP
- inject lib_npc_disengage instantly
}
8:
trigger: "/Cochon/ pour moi s'il vous plait"
script:
- if <pl.has_flag[MountCochon].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Toute mes excuses mais il semblerait que vous n'ayez pas cette monture."
- inject lib_npc_disengage instantly
- zap 1
} else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Votre monture vous attends dans l'enclos."
- inject lib_npc_disengage instantly
}