Date: 2016/09/28 10:42:14 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
- case 7:
- if <context.click> == left {
- if <player.flag[champinvisibilite]> == false {
- flag player champinvisibilite:false
- inventory close
- narrate "<&2>Invocation du champ d'invisibilité en cours ..."
- repeat 8 {
- playeffect <player> effect:fireworks_spark offset:0.7 qty:10 visibility:100
- wait 10t
}
- playeffect <player> effect:explode offset:0.7 qty:10 visibility:100
- playsound <player> sound:ENTITY_PLAYER_BREATH
- execute as_player "dynmap hide" silent
- narrate "<&2>Champ d'invisibilité invoqué !"
- flag player champinvisibilite:true
- queue clear
}
- if <player.flag[champinvisibilite]> == true {
- narrate "<&2>Vous avez déjà invoqué un champ d'invisibilité !"
- inventory close
- queue clear
}
- if !<player.has_flag[champinvisibilite]> {
- flag player champinvisibilite:false
- inventory close
- narrate "<&2>Invocation du champ d'invisibilité en cours ..."
- repeat 8 {
- playeffect <player> effect:fireworks_spark offset:0.7 qty:10 visibility:100
- wait 10t
}
- playeffect <player> effect:explode offset:0.7 qty:10 visibility:100
- playsound <player> sound:ENTITY_PLAYER_BREATH
- execute as_player "dynmap hide" silent
- narrate "<&2>Champ d'invisibilité invoqué !"
- queue clear
}
}
- if <context.click> == right {
- if <player.flag[champinvisibilite]> == false {
- narrate "<&2>Vous n'avez pas encore invoqué un champ d'invisibilité !"
- inventory close
- queue clear
}
- if <player.flag[champinvisibilite]> == true {
- inventory close
- narrate "<&2>Retrait du champ d'invisibilité en cours ..."
- repeat 8 {
- playeffect <player> effect:fireworks_spark offset:0.7 qty:10 visibility:100
- wait 10t
}
- playeffect <player> effect:explode offset:0.7 qty:10 visibility:100
- playsound <player> sound:ENTITY_PLAYER_BREATH
- execute as_player "dynmap show" silent
- narrate "<&2>Champ d'invisibilité ôté !"
}
- if !<player.has_flag[champinvisibilite]> {
- narrate "<&2>Vous n'avez pas encore invoqué un champ d'invisibilité !"
- inventory close
- queue clear
}
}