Date: 2016/04/27 07:23:04 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
BasiqueQuest3:
type: assignment
debug: true
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 BasiqueQuest3Interact
BasiqueQuest3Interact:
type: interact
debug: true
steps:
1:
click trigger:
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Etranger, j'ai un travail pour toi!"
- wait 1s
- narrate format:chatnpc "Rapproche toi."
- wait 1s
- narrate format:chatnpc "Es-tu intéressé?"
- zap 2 duration:120s
2:
chat trigger:
1:
trigger: "/Oui/, pas de soucis!"
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Ok parfait!"
- wait 1s
- give i@BoiteSpécial
- title "title:<&e><&l><&o>NOUVELLE MISSION<&f>" "subtitle:<&3>Quête Annexe: <&6>La quête de la Boite" duration:4s
- wait 2s
- narrate format:indication "Vous avez accepté une nouvelle mission: <&6>La quête de la Boite."
- wait 1s
- narrate format:indication "Allez voir Alberto, il devrait être près du port."
- inject lib_npc_disengage instantly
- zap 3
2:
trigger: "/Non/, je suis occupé."
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Ok très bien, reviens me voir si tu es intéressé."
- inject lib_npc_disengage instantly
- zap 1
3:
click trigger:
script:
- if <pl.inventory.list_content.simple.contains[i@ReçuQuest3].not> {
- inject lib_npc_engage instantly
- narrate format: "Eh bien, qu'est-ce que tu attends?"
- wait 1s
- narrate format: "Le travail ne va pas se faire tout seul!"
- inject lib_npc_disengage instantly
} Else {
- take i@ReçuQuest3
- inject lib_npc_engage instantly
- narrate format:chatnpc "Tu es vraiment très éfficace dans ton travail!"
- wait 1s
- narrate format:chatnpc "Voici ta récompense très mérité."
- give i@Une récompense
- flag player LaBoiteFinish:!
- title "title:<&2><&l><&o>MISSION ACCOMPLIE<&f>" "subtitle:<&e>Quête réussie: <&6>La quête de la Boite" duration:4s
- playsound <player> victoire_quete pitch:2 custom
- zap 4
}
4:
click trigger:
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Bon travail."
- inject lib_npc_disengage instantly
BasiqueQuest3Part2:
type: assignment
debug: true
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 BasiqueQuest3Part2Interact
BasiqueQuest3Part2Interact:
type: interact
debug: true
steps:
1:
click trigger:
script:
1:
- if <pl.inventory.list_contents.simple.contains[i@BoiteSpécial].not> {
- inject lib_npc_engage instantly
- narrate format:chatnpc "J'attend ma Boite..."
- inject lib_npc_disengage instantly
} Else {
- inject lib_npc_engage instantly
- narrate format:chatnpc "Ma boite! Je l'attendais depuis si longtemps!"
- take i@BoiteSpécial
- waits 1s
- narrate format:indication "Vous avez perdu la <&7>Boite spécial"
- wait 1s
- narrate format:chatnpc "Donne ça à ....."
- wait 1s
- give i@ReçuDeLaBoite
- narrate format:indication "Donnez ce reçu à ...., il se situe près de ....."
- inject lib_npc_disengage instantly
- zap 2
2:
click trigger:
script:
- inject lib_npc_engage instantly
- narrate format:chatnpc "Ma boite sur-mesure, c'est le luxe!"
- inject lib_npc_disengage instantly
BoiteSpécial:
type: item
debug: true
material: i@chest
display name: "<&7>Boite Spécial"
lore:
- "<&7>Objet de quête"
- "<&7>Une Boite"
ReçuQuest3:
type: item
debug: true
material: i@paper
display name: "<&7>Reçu de la Boite"
lore:
- "<&7>Objet de quête"
- "<&7>Reçu de quête à donné à ....."