Date: 2014/04/20 21:08:38 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
AFRICA:
type: assignment
interact scripts:
- 10 DailyAFRICAQuest
DailyAFRICAQuest:
type: interact
steps:
start*:
click trigger:
script:
- chat "Yo what up dawg, what's yo name?."
- wait 2
- chat "<player.name>? Tha fuck kind of name is that?."
- wait 3
- chat "Whatever man, you seem pretty chill."
- wait 2
- chat "You wanna be homies, or nah?"
- wait 1
- narrate "<white>You can say, <green>Ye<white> or <green>Nah<white>."
chat trigger:
1:
trigger: /Ye/, sweg.
script:
- chat "Swag. I might need some help from time to time."
- wait 3
- chat "Hit me up again and i'll probably have somethin for you to help with."
- ^zap step:return
- ^flag server AfricaHomie:->:<player>
2:
trigger: /Nah/, bruh.
script:
- chat "We will make due without you..."
return:
click trigger:
script:
- random {
- chat "Yo, what up <player.name>."
- chat "Damn, son, i haven't seen you in a minute."
- chat "YOOOOOOOOOOOOOOooooooo."
}
- wait 3
- chat "You ready to help, or nah?"
- narrate "<white>You can say, <green>Ye<white> or <green>Nah<white>."
chat trigger:
1:
trigger: /Ye/, mayn.
script:
- random {
- chat "Swag"
- chat "Sweet"
- chat "Hella"
}
- wait 1
- chat "I need you to get me 'bout 10 Melon Slices."
- ^flag player AFRICACount:0
- ^listen block type:collect block:360 qty:10 script:AFRICACheck
- wait 1
- chat "Don't come back til you got em."
- ^zap step:waiting
2:
trigger: /Nah/, bruh.
script:
- chat "Damn, son, whatever. Come back when you ready to help a brotha out."
waiting:
click trigger:
script:
- chat "You've only collected <player.flag[AFRICACount].asint>/10 Melon Slices."
- wait 1
- chat "Nigga i said don't come back til you got em all!"
reward:
click trigger:
script:
- chat "Man, you aight <player.name>."
- wait 2
- chat "Here's some cash mayn."
- wait 1
- ^narrate "<red>You receieved <gold>1 Kayan Bar<red> from <npc.name>!"
- ^give i@KayanBar qty:2
- ^flag player AFRICACooldown duration:24h
- ^zap step:cooldown
cooldown:
click trigger:
script:
- chat "Man i ain't got nothin else fo you today.."
- wait 2
- chat "Hit me up tomorrow if you tryna help!"
AFRICACheck:
type: task
script:
- flag player AFRICACount:++
- narrate "**You've killed <player.flag[AFRICACount].asint>/10 zombies.**"
- if <player.flag[AFRICACount].asint> >= 10 run AFRICAReward
else run AFRICAContinue
AFRICAContinue:
type: task
script:
- ^listen block type:collect block:360 qty:10 script:AFRICACheck
AFRICAReward:
type: task
script:
- narrate "Return to the Warrior's Guild to claim your reward."
- zap script:DailyAFRICAQuest step:reward
WGWorld:
type: world
events:
on time changes in w@world:
- if <server.flag[AfricaHomie]> == "null" queue clear
- foreach <server.flag[AfricaHomie].as_list> {
- if !<%value%.as_player.flag[AFRICACooldown]> && <s@DailyAFRICAQuest.step[%value%]> != "return" {
- zap script:DailyAFRICAQuest step:return player:%value%
- if <%value%.as_player.is_online> {
- narrate player:%value% "<red>The Warrior's Guild needs your help."
- narrate player:%value% "<red>Return to them soon!"
}
}
}