Date: 2014/07/12 14:19:28 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
"Blademaster Ziso":
type: assignment
interact scripts:
- 100 Blademaster
"Blademaster":
type: Interact
Requirements:
mode: none
Steps:
1:
Click Trigger:
script:
- engage
- chat "I am an old blademaster."
- wait 1
- chat "I will give you some food if you will help me with one small thing. Will you help me? (Yes/No)"
- disengage
Chat Trigger:
1:
Trigger: /Yes/
Script:
- chat "Thank You! Could you please kill the bugs in the granary for me?"
- wait 1
- chat "Can you kill at least 10?"
- wait 1
- chat "Come back when you are done!"
- flag player bladeMasterGranaryQuest:true
- flag player bugsKilled:0
- run AddObjective "def:Bug Stomping|Go to the granary near the outside of the wall in New Dalantum and clear out 10 of the bugs.|l@-1662.0,67.0,-83.0,world_newoverworld_6"
- zap
2:
Trigger: /No/
Script:
- chat "Fine. Then starve."
2:
Click Trigger:
script:
- chat "You're back!"
- wait 1
- if <player.flag[GranaryQuestComplete]> {
- chat "You already got the reward for killing those bugs."
- wait 1
- chat "I'm sorry, but i can't give you any more fish. I'm all out"
}
- if <player.flag[bugsKilled]> >= 10 && !<player.flag[GranaryQuestComplete]> {
- chat "I see you have killed 10 bugs for me."
- wait 1
- chat "Here is your reward."
- wait 1
- give i@raw_fish qty:10
- chat "If you eat enough fish, maybe you can be a blademaster too!"
- flag player GranaryQuestComplete:true
- run CompleteObjective "def:Bug Stomping"
}
- if <player.flag[bugsKilled]> < 10 {
- chat "You have only killed <player.flag[bugsKilled].asint>"
- wait 1
- chat "Come back when you have killed 10"
}
"BugNPC":
type: assignment
interact scripts:
- 100 Dummy
actions:
on death by player:
- if <player.flag[bladeMasterGranaryQuest]> && <player.flag[bugsKilled]> < 10 {
- flag player bugsKilled:++
- narrate "You have killed <player.flag[bugsKilled].asint> of 10 bugs"
}