Date: 2016/04/30 10:03:44 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
Pirate_Tavern_Attack:
type: world
debug: false
vents:
on player right clicks bed:
- if <util.random.int[1].to[2]> == 2 {
- if <context.location.is[EQUALS].to[cu@tavernattackpirate]> {
- if <w@world.time.period> == dawn || <w@world.time.period> == night {
- flag player Pirate_Tavern_Attack_Activee
- wait 8s
- execute as_server effect <player> blindness 10
- teleport <player> Cellule_Pirate
- wait 5s
- title "title:<&e><&l><&o>NOUVELLE MISSION<&f>" "subtitle:<&3>Quête Annexe: <&6>Attaque Pirate" duration:6s
- title "subtitle:<&6>Vous venez de vous faire kidnaper" fade_in:0s stay:3s fade_out:0s
- wait 3s
- title "subtitle:<&6>Fouillez la cellule pour trouver un moyen de sortir !" fade_in:0s stay:6s fade_out:0s
}
}
}
on player leaves bed in Pirate_Bed_Alpha:
- if <pl.has_flag[Pirate_Tavern_Attack_Activee].not>
- determine CANCELLED
on player right clicks door:
- if <context.location.is[EQUALS].to[l@cellule_pirate_door]> {
- if <pl.inventory.list_contents.simple.contains[i@PassePartoutOs].not> {
- determine passively CANCELLED
- narrate format:indication "Vous n'avez pas la clé pour ouvrir cette porte !"
- wait 1s
- narrate format:indication "Cherchez un peu, il devrait être possible de trouver de quoi en faire une"
}
else {
- narrate format:indication "Après un petit 'Crac', vous sentez que vous avez bloqué votre passe-partout, néanmoins la porte est ouverte"
- take i@PassePartoutOs qty:1
- flag player PassePartoutOs:!
}
}
on player right clicks skeleton_skull:
- if <context.location.is[EQUALS].to[l@cellule_pirate_crane]> {
- if <pl.has_flag[PassePartoutOs]> {
- narrate format:indication "Vous ne trouvez rien d'autre"
- queue clear
}
- if <pl.inventory.is_full> {
- narrate format:indication "Vous ne pouvez pas ramasser ce que se trouve par terre si votre inventaire est plein."
- queue clear
}
- flag player PassePartoutOs
- give i@PassePartoutOs
- narrate format:indication "Vous avez trouvé les ossement d'un ancien prisonnier et vous avez fabriqué un <&7><&o>Passe-partout en os<&b> avec !"
}
PassePartoutOs:
type: item
debug: false
display name: "<&7><&o>Passe-partout en os"
material: i@bone
bound: true
lore:
- "<&7>Objet de Quête"