Date: 2015/05/08 14:55:39 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
"KnightDavid":
type: assignment
interact scripts:
- 10 necromancerhunt
"necromancerhunt":
type: interact
steps:
1:
click trigger:
script:
- chat "<blue> Shhh... there's nothing to see here servent."
- narrate "<red> waves you away."
2:
proximity trigger:
- chat "<aqua>Come closer..."
click trigger:
script:
- engage
- chat "<blue>The necromancer... is near.."
- wait 2
- chat "<BLUE>Don't go that way, the necromancer is too powerful... I feel my end... is near..."
- narrate "<red>You hear a rumble of thunder."
- weather thunder
- wait 1
- chat "<BLUE>It's in the clearing up there! RUN!"
- wait 1
- chat "<aqua>Do you wish to continue?"
- ^narrate "<red>Say<&co>"
- ^narrate "<white>[<blue>Yes<blue> <gray>or<red> No<white>]"
- disengage
chat trigger:
'Start Questline':
Trigger: /Yes/, I will continue.
script:
- spawn n@10 l@5,68,249,world
- ^flag <player> Killthenecromancer
- narrate "<red>Defeat the necromancer"
- ^zap step:3
'Deny Questline':
Trigger: /No/, I can't!
script:
- execute as_player "spawn"
- title stay:3s 'subtitle:<&4>Quest Failed'
'What did you say':
trigger: /REGEX:\w+/
script:
- chat "<white><player.name><yellow>, I don<&sq>t what <&sq><white><context.message><yellow><&sq> means."
- ^narrate "<red>Say<&co>"
- ^narrate " <white>[<blue>Yes<blue> <gray>or<red> No<white>]"
3:
click trigger:
script:
- chat "<aqua>What are you doing?! The necromancer is still living!!"
4:
click trigger:
script:
- engage
- give money qty:3000
- narrate "<aqua>You have picked up <yellow>$3000<aqua> from defeating the necromancer."
- wait 1
- narrate "<aqua>The necromancer has been defeated..."
- wait 1
- narrate "<aqua>The earth beneath you feels like a cloud, suddenly a surge of energy overwhelms you."
- wait 3
- narrate "<aqua>You hear the whisper of ghosts of the royal children the necromancer had eaten calling you to somewhere..."
- teleport <player> l@140.5,81,288.48841,world
- ^flag player Killthenecromancer:!
- ^zap step:2 script:spiritscript
- disengage
5:
click trigger:
script:
- narrate "<red><npc.name> Stairs off into the distance."
Quest_Killthenecromancer_World:
type: world
events:
on NPC killed:
- if !<player.has_flag[Killthenecromancer]> queue clear
- run locally delay:1t wCount
wCount:
- ^flag player Killthenecromancer:++
- ^if <player.flag[Killthenecromancer].as_int> == 1 {
- zap step:4 "script:necromancerhunt"
- queue clear
}
- ^if <player.flag[Killthenecromancer].as_int> > 1 {
- narrate "<red>You have killed the necromancer, go check on the valiant Knight."
}
#