Date: 2015/05/01 17:46:27 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
banditNectar:
type: assignment
interactScripts:
- 10 azFight
actions:
on assignment:
- trigger name:proximity toggle:true radius:4
- trigger name:damage toggle:true
- vulnerable:true
on death by player:
- if !<player.flag[azLooted]> {
- drop item:cursedHeartNectar qty:1
- drop XP qty:10 location:<npc.location>
- flag player azLooted
- chat "You... do not understand..."
} else {
- drop XP qty:10 location:<npc.location>
- drop item:cursedHeartNectar qty:1
- chat "When... will it end?"
}
on damage:
- chat "Test"
on enter proximity:
- if !<player.flag[azTalked]> {
- chat "Are you... the keybearer?"
- flag player azTalked
- run "azFight" }
else {
- if <player.flag[azLooted]> {
- attack
- chat "No! No! No!"
}
}