Date: 2019/10/11 21:27:04 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
killquest2:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- killquest2_interact
cchat:
type: format
format: "<&e><npc.name> <ยง3>to you<&co> <&e><text>"
killquest2_interact:
type: interact
steps:
1:
click trigger:
script:
- if !<player.has_flag[killquest2]>:
- narrate format:cchat "Go talk to Sgt.Hark first"
- if <player.has_flag[killquest2_finished]>:
- narrate format:cchat "ill give you more work when I have some, Dismissed"
- wait 5t
- stop
- if <player.has_flag[npc_engaged]>:
- stop
- if <player.flag[kill_zombie_quest2_count]> == 0:
- narrate format:cchat "when the job is done then we can talk, Dismissed"
- if <player.has_flag[kill_zombie_quest2]>:
- stop
- flag player npc_engaged
# - engage
- if <player.flag[kill_zombie_quest2_count]> == 1:
- narrate format:cchat "ill have more for you later, heres your pay and some food, Good job"
- give emerald quantity:50
- give steak quantity:25
- flag player kill_zombie_quest2_count:!
- flag player npc_engaged:!
- flag player killquest_finished
# - disengage
- stop
- narrate format:cchat "Sergent Hark sent you over? you might make be a good solider"
- wait 8t
- narrate format:cchat "We have a issue with an undead over by the mining camp"
- wait 8t
- narrate format:cchat "if you can kill the undead miner thats there, that should prove your worth"
- wait 8t
- narrate "[<&o>Type <&b><&o>Yes<&f><&o> or <&b><&o>No<&f>]"
- flag player npc_engaged:!
# - disengage
chat trigger:
1:
trigger: "/Yes/ I accept the quest"
script:
- if <player.has_flag[kill_zombie_quest2]>:
- stop
- flag player npc_engaged
# - engage
- narrate format:cchat "Okay great!"
- wait 5t
- narrate "[<&e>Kill The Grumpy miner down by the mines]"
- flag player kill_zombie_quest2
- flag player kill_zombie_quest2_count:0
- flag player npc_engaged:!
# - disengage
2:
trigger: "/No/ I don't"
script:
- if <player.has_flag[kill_zombie_quest2]>:
- stop
- random:
- narrate format:cchat "We need men like you"
- narrate format:cchat "Okay then. Come back when you want to serve your empire"
- narrate format:cchat "Okay well your missing out on some good oppurtunities"
killquest2_zombie_world:
type: world
events:
on player kills zombie:
- if !<player.has_flag[kill_zombie_quest2]>:
- stop
- flag player kill_zombie_quest2_count:++
- if <player.flag[kill_zombie_quest2_count]> == 1:
- narrate "[Return to the Cpl.Drumer]"
- flag player kill_zombie_quest:!