Date: 2015/02/16 09:05:27 UTC-08: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
OFAssign:
type: assignment
interact scipts:
- 10 DailyOFQuest
DailyOFQuest:
type: interact
steps:
start*:
click trigger:
script:
- chat "Greetings young'n"
- wait 2
- chat "I've been fishing these seas for many a year now and I see a familar glint in your eyes that tells me you're a keen fisherperson"
- wait 1
- narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
chat trigger:
1:
trigger: /Yes/, we are kindred of the same reel old timer.
script:
- chat "This warms my salty heart!"
- wait 1
- chat "I'm not as young as I used to be, so I'll need help around here once a day if you've time to spare"
- wait 1
- chat "You'll be compensated of course"
- narrate "the old man cracks a smile"
- ^zap step:return
- ^flag server OFMembers:->:<player>
2:
trigger: /No/, I'm more of a landlubber sir
script:
- chat "Aye, not everyone can handle the rod..."
return:
click trigger:
script:
- random {
- chat "Aye?"
- chat "Greetings <player.name>, come to help?"
- chat "Want to earn those sea legs?"
}
- wait 3
- chat "ready to earn your keep?"
chat trigger:
1:
trigger: /Yes/, I am.
script:
- chat "Great to hear!"
- wait 1
- "I need you to collect 20 Fish for me"
- wait 1
- chat "Return once they are collected."
- zap step:waiting
2:
trigger: /No/, I am not.
script:
- chat "Please return when you are..."
waiting:
click trigger:
script:
- chat "How's the haul been so far?"
- wait 1
- chat "I'll be waiting"
reward:
click trigger:
script:
- chat "Good haul <player.name>, there are some sizely fish in here"
- wait 2
- chat "Here is your reward for helping the town"
- ^narrate "<red>You recieved <gold>100$<red> from <npc.name>!"
- ^give miney qty:100
- ^flag player OFCooldown duration:20h
- ^zap step:cooldown
cooldown:
click trigger:
script:
- chat "Come back tomorrow."
- wait 2
- narrate "nods"
OFCheck:
type: interact
script:
- flag player OFCount:+:1
- narrate: "**<player.flag[OFCount].asint>/20 Fish.**"
- if <player.inventory.contains[Fish].qty[20]> run OFReward
else run OFContinue
OFContinue:
type: interact
script:
- ^listen item type:item target:Fish qty:1 script:OFCheck
OFReward:
type: interact
script:
- narrate "Return to the old man to claim your reward"
- zap script:DailyOFQuest step:reward
OFWorld:
type: world
events:
on time changes in w@world:
- if <server.flag[OFMembers]> == "null" queue clear
- foreach <server.flag[OFMembers].as_list> {
- if !<%value%.as_player.flag[OFCooldown]> && <s@DailyOFQuest.step[%value%]> != "return" {
- zap script:DailyOFQuest step:return player:%value%
- if <%value%.as_player.is_online> {
- narrate player:%value% "The tide seems high"
- narrate player:%value% "I should go see the old man"
}
}
}