Date: 2015/07/02 17:26:10 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
'Quest Master':
Type: Assignment
Interact Scripts:
- 1 list_quests
list_quests:
type: interact
Steps:
'GiveQuestList':
Chat Trigger:
1:
Trigger: /Regex:Hi|Hello|Hey/
Script:
- chat "Hello, <PLAYER.NAME>. Would you care to help me with a few <GOLD>quests?"
- zap 'step:TalkAboutQuests'
'TalkAboutQuests':
Chat Trigger:
1:
Trigger: /Quest/s?
Script:
- chat "Well, there's three things I need done. You could hunt some <GOLD>zombies<GREEN>, chop down some <GOLD>trees<GREEN>, or <GOLD>build<GREEN> a house."
Trigger: I'll hunt some /zombie/s.
Script:
- chat "Alright! Go get 'em, kid! Come back once you've hunted 3 Zombies!"
- if "<player.flag[questinprogress] || none>" == none run 'ZombieQuest'
else chat "You already have the quest <player.flag[questinprogress]>!"
- flag QuestInProgress:Zombies
- zap 'GiveQuestList'
2:
Trigger: I'll chop some /tree/s.
Script:
- chat "Great! Come back when you have 5 logs!"
- if "<player.flag[questinprogress] || none>" == none run 'TreeQuest'
else chat "You already have the quest <player.flag[questinprogress]>!"
- zap 'step:GiveQuestList'
3:
Trigger: I'll build a /house/.
Script:
- chat "Okay! Lay down <GOLD>30<GREEN> cobblestone, planks, or logs!"
- if "<player.flag[questinprogress] || none>" == none run 'TreeQuest'
else chat "You already have the quest <flag.p:questinprogress>!"
- zap 'GiveQuestList'
'ZombieQuest':
Type: Task
Script:
- flag questinprogress:'Kill Zombies'
- listen kill 'ID:Kill3Zombies' 'SCRIPT:ZombiesDead' 'type:entity' 'target:creeper' 'qty:10'
'ZombiesDead':
Type: Task
Script:
- flag questinprogress:none
- narrate "You have been given one iron for completing the quest!
- give item:265 qty:1
'TreeQuest':
Type: Task
Script:
- flag questinprogress:'Chop Trees'
- listen block 'id:ChopTrees' 'Script:TreeReward' 'type:break' 'block:log' 'qty:5'
'TreeReward':
Type: Task
Script:
- flag questinprogress:none
- narrate "You have been given a stone pick for completing the quest!"
- give item:274 qty:1
'BuildHouse':
Type: Task
Script:
- flag questinprogress:'Build A House'
- listen block 'id:BuildHouse' 'Script:HouseReward' 'type:build' 'block:log|cobblestone|5' 'qty:30'
'HouseReward':
Type: Task
Script:
- flag questinprogress:none
- narrate "You have been awarded a furnace for your home!"
- give item:61 qty:1