Date: 2014/06/27 14:16:33 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
Jaybug:
Type: Assignment
Actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
#- lookclose state:true
Interact Scripts:
- 1 WayOut
WayOut:
type: Interact
Requirements:
Mode: All
List:
- flagged player "SwordIntroDone:true"
- -flagged player "ArachNOPE:true"
Steps:
1:
Click Trigger:
Script:
- narrate "<red><&co> The Way Out - Quest Completed"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Who are you?"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Well, it doesn't matter now, you'll have to fight your way through these spiders to get out"
- wait 2
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You should clear a few out on your way, it will be good practice for you!"
- wait 1
- narrate "<red><&co> ArachNOPE - Quest Started"
- narrate "<red> Kill 5 spiders and exit the tunnel."
- ^listen kill type:entity target:spider qty:5 script:SpiderQuestCheck
2:
Click Trigger:
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Go on, Hurry!"
SpiderQuestCheck:
Type: task
script:
- ^flag player SpiderCount:++
- ^narrate "<yellow> You have killed <player.flag[SpiderCount].asint>/5 spiders!"
- ^if <player.flag[SpiderCount].asint> >= 5 {
- ^run SpiderQuestReward
} else {
- ^run SpiderQuestContinue
}
SpiderQuestContinue:
type: task
script:
- ^listen kill type:entity target:spider qty:5 script:SpiderQuestCheck
SpiderQuestReward:
type: task
script:
- narrate "<yellow><&co> Go talk to Cyrill at the end of the cave.!"
- flag player ArachNOPE:true