Date: 2014/04/15 17:49:48 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
BanditasKing:
type: assignment
default constants:
RewardAmount: 1000
Quest Repeat Timeout: 8
Quest Reset Timeout: 8
interact scripts:
- 10 BanditasKingKiller
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
- trigger name:proximity toggle:true
- trigger name:damage toggle:true
- execute as_npc "npc sel <npc.id>"
- execute as_npc "npc vulnerable"
BanditasKingKiller:
type: interact
steps:
1:
click trigger:
script:
- run BanditasKingKillerCheckReq
damage trigger:
script:
- ^random {
- chat "<red>Oucch! <yellow>You really don't want to do that kid...!"
- chat "<red>Aaarrggg! <yellow>Hit me again, and the guards will come.!"
- chat "<red>Huh, I can't feel my arm...? <yellow>AH< MY ARM! WHERE IS IT?!"
- chat "<red>Please don't hurt me! <yellow>I have never done anything bad to you!"
- chat "<red>Heh, go jump off a bridge brat! <yellow>" }
2:
chat trigger:
StartQuest:
Trigger: /Yes/, I'll do it.
script:
- engage
- flag <player> BKingKiller:Started "duration:<npc.constant[Quest Reset Timeout]>"
- listen kill type:npc qty:1 target:BanditasKing script:BKQuestCompleted
- Chat "<yellow>Yes, maybe now we can get the bloody Banditas to stop raiding our trade carts! Come back when he is dead, I'll reward you well."
- narrate "<red>End The Banditas King - Quest Started"
- disengage
DenyQuest:
trigger: /No/, I'm not interested sorry.
script:
- random {
- chat "Alright then, come back if you change your mind"
- chat "I guess the Banditass are too tough for ya"}
- ZAP step:1
proximity trigger:
exit:
script:
- ZAP step:1
click trigger:
script:
- run BanditasKingKillerCheckReq
damage trigger:
script:
- ^random {
- chat "<red>Oucch! <yellow>You really don't want to do that kid...!"
- chat "<red>Aaarrggg! <yellow>Hit me again, and the guards will come.!"
- chat "<red>Huh, I can't feel my arm...? <yellow>AH< MY ARM! WHERE IS IT?!"
- chat "<red>Please don't hurt me! <yellow>I have never done anything bad to you!"
- chat "<red>Heh, go jump off a bridge brat! <yellow>" }
- zap step:1
3:
Click Trigger:
- ^flag <player> BKingKiller:Claimed "duration:<npc.constant[Quest Repeat Timeout]>"
- chat "<yellow>Yes, You actually did it! Well, they will probably have a new king tomorrow, but until then, thanks!"
- ^give money qty:<npc.constant[RewardAmount]>
- ^narrate "<red><npc.name> pays you <gold><npc.constant[RewardAmount]> <red><player.money.currency>."
- ZAP step 4
4:
Click Trigger:
- CHAT "Hey man, thanks for helping me. Come back tomorrow to kill some more Bandits!"
BKkillerGeneralChat:
type: task
script:
- ^random {
- chat "<yellow>Dude, if these Banditass keep going, my business will be ruined!"
- chat "<yellow>I lost three carts yesterday... Three! I only sent out One!"
- chat "<yellow>Nobody is willing to take the Banditas King on..."
- chat "<yellow> Yep, took her leg right off!"}
BanditasKingKillerCheckReq:
type: task
script:
- if <player.flag[BKingKiller]> == Started chat "<yellow>Hi <white><player.name><yellow>, please come back to me when you've killed <red>The Banditas King!"
else if <player.flag[BKingKiller]> == ClaimReward chat "<white><player.name><yellow>, come over here! Come get your <gold>reward<yellow> for killing the Banditas king!"
else if <player.flag[BKingKiller]> == Claimed chat "<yellow>Thanks for your help <white><player.name><yellow>, please come back later to help me again."
else run BKkillerquestdetail
BKkillerquestdetail:
type: task
script:
- random {
- chat "<yellow>Hey Buddy! Yeah, You <player.Name>! Wanna kill someone for me?"
- chat "<yellow>Wanna Job Son? Should be simple."
- chat "<yellow>Mind giving me a hand dude?"}
- random {
- chat "<yellow>Kill the Banditas King Herald and I'll pay you $1000"
- chat "<yellow>Navigate through the Banditas Caves and kill their leader for $1000"
- chat "<yellow>The reward for killing the Banditas King will be a total of $1000"}
- narrate "<red>Say<&co>"
- ^narrate " <blue>Yes<blue> <gray>or<red> No"
- ^zap "s@BanditasKingKiller" step:2
BKQuestCompleted:
type: task
script:
- ZAP s@"BKingKiller" Step 3