Date: 2019/10/07 23:57:31 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
Hark:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 1 npc_killquest_interact
cchat:
type: format
format: "<&6><&l><npc.name> <&7>to you<&c> <&e><text>"
npc_killquest_interact:
type: interact
steps:
1:
click trigger:
script:
- if <player.has_flag[npc_engaged]>:
- stop
- flag player npc_engaged
- engage
- if <player.flag[kill_sandghoul_quest_count]> == 0:
- narrate "Come Back when those ghouls are cleared out, Dismissed"
- if <player.has_flag[kill_sandghoul_quest_count]> == 1:
- narrate format:cchat "Great work, I have more for you later, for now take this."
- give emerald quantity:25
- flag player kill_sandghoul_quest_one:!
- flag player npc_engaged
- disengage
- stop
- narrate format:cchat "Hey your that new recruit right. No? Well I could use you anyways, Do you think you could go clear out some ghouls in that ruin just behind the Barracks."
- wait 5s
- narrate "[<&o>type <&b><&o>Yes<&f><&o> or <&b><&o>No<&7>]"
- disengage
- flag player npc_engaged:!
chat trigger:
1:
trigger: /Yes/ I will do it
script:
- wait 2s
- narrate "Okay thanks, ill see you when its done" format:cchat
- wait 2s
- narrate "[<&e>Kill 10 Sand Ghouls]"
- if <player.has_flag[kill_sandghoul_quest_one]>:
- stop
- flag player kill_sandghoul_quest_one
- flag player kill_sandghoul_quest_one_count 0
2:
trigger: /No/ I will not do it
script:
- if !<player.has_flag[kill_sandghoul_quest_one]>:
- stop
- random:
- narrate format:cchat "Okay Screw off"
- narrate format:cchat "I could Really Use your Help"
kill_sandghoul_quest_one_world:
type: world
events:
on player kills husk:
- flag player kill_sandghoul_quest_one_count:++
- if <player.has_flag[kill_sandghoul_quest_one]>:
- wait 2s
- narrate "[<&e>Great work return to Cpt.Hark]"