Date: 2019/06/21 14:18:26 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
Tribute_Task:
type: task
debug: true
script:
- yaml set id:events tribute.active:false
- yaml set id:events tribute.mcmmo.rate:1
- yaml set id:events tribute.mcmmo.progress:0
- yaml set id:events tribute.drops.rate:1
- yaml set id:events tribute.drops.progress:0
- yaml set id:events tribute.experience.rate:1
- yaml set id:events tribute.experience.progress:0
- yaml set id:rates drops.active:false
- yaml set id:rates drops.multiplier:1
- yaml set id:rates experience.active:false
- yaml set id:rates experience.multiplier:1
- yaml id:rates savefile:scriptdata/Rates.yml
- yaml id:events savefile:scriptdata/Events.yml
- execute as_server "xprate reset"
- reload
Tribute_Handler:
type: world
debug: true
events:
on system time hourly:
- announce to_console "Tribute Handler system time event run"
- if <util.date.format[EEE]> != Fri && <util.date.format[EEE]> != Mon:
- announce to_console "Date is not Friday or Monday, Tribute Handler stopping"
- queue clear
- else if <util.date.format[EEE]> == Fri:
- announce to_console "Date is Friday, Tribute Handler running"
- if <yaml[events].read[tribute.active]>:
- announce to_console "Tribute event already active, Tribute Handler stopping"
- queue clear
- else:
- announce to_console "Activating Tribute"
- yaml set id:events tribute.active:true
- yaml set id:rates drop.active:true
- yaml set id:rates drop.multiplier: 1
- yaml set id:rates experience.active:true
- yaml set id:rates experience.multiplier:1
- yaml id:rates savefile:scriptdata/Rates.yml
- yaml id:events savefile:scriptdata/Events.yml
- announce to_console "Reloading scripts"
- reload
- else if <util.date.format[EEE]> == Mon:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- else:
- yaml set id:events tribute.active:false
- yaml set id:events tribute.mcmmo.rate:1
- yaml set id:events tribute.mcmmo.progress:0
- yaml set id:events tribute.drops.rate:1
- yaml set id:events tribute.drops.progress:0
- yaml set id:events tribute.experience.rate:1
- yaml set id:events tribute.experience.progress:0
- yaml set id:rates drops.active:false
- yaml set id:rates drops.multiplier:1
- yaml set id:rates experience.active:false
- yaml set id:rates experience.multiplier:1
- yaml id:rates savefile:scriptdata/Rates.yml
- yaml id:events savefile:scriptdata/Events.yml
- execute as_server "xprate reset"
- reload
on player joins:
- if <yaml[events].read[tribute.active].not>:
- queue clear
- if <yaml[events].read[tribute.active]>:
- wait 3s
- narrate "<&6>The Gods seek your offerings of Tribute! Collect Tribute and deliver it to the <&2>Oracle of the Gods<&6> in the castle in Dawn's Landing!"
- if <yaml[events].read[tribute.mcmmo.rate]> > 1 || <yaml[events].read[tribute.drops.rate]> > 1 || <yaml[events].read[tribute.experience.rate]> > 1:
- narrate "<&a>Current blessings:"
- narrate "<&a>Blessing of Skillfulness: <&6><yaml[events].read[tribute.mcmmo.rate]>x"
- narrate "<&a>Blessing of Luck: <&6><yaml[events].read[tribute.drops.rate]>x"
- narrate "<&a>Blessing of Wisdom: <&6><yaml[events].read[tribute.experience.rate]>x"
on player receives message:
- if "<context.message.contains_text[mcMMO is currently in an XP rate event]>" && <yaml[events].read[tribute.active]>:
- determine cancelled
Tribute_Power_Hour:
type: world
debug: false
events:
on system time 19:00:
- if <server.has_flag[tribute_power_hour]>:
- queue clear
- else:
- flag server tribute_power_hour:true duration:2h
- announce "<&a>The Gods present an opportunity to win their favor! For the next two hours, Tribute will appear more often!"
- discord id:sxr message channel:191040977652285450 "**The Gods present an opportunity to win their favor! For the next two hours, Tribute will appear more often!**"
Tribute_DropTable_Veteran:
type: world
debug: false
events:
on mm denizen death:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if !<context.entity.name.starts_with[<&9>]||null>:
- queue clear
- else if <context.entity.name.starts_with[<&9>]||null>:
- if <server.has_flag[tribute_power_hour]>:
- if <util.random.int[2].to[10]> <= 1:
- drop GodsTribute location:<context.entity.location>
- else if <util.random.int[1].to[10]> <= 1:
- drop GodsTribute location:<context.entity.location>
Tribute_DropTable_Elite:
type: world
debug: false
events:
on mm denizen death:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if !<context.entity.name.starts_with[<&d>]||null>:
- queue clear
- else if <context.entity.name.starts_with[<&d>]||null>:
- if <server.has_flag[tribute_power_hour]>:
- drop GodsTribute location:<context.entity.location> quantity:2
- else:
- drop GodsTribute location:<context.entity.location>
Tribute_mcMMO_Drops:
type: world
debug: false
events:
on player gains xp for mining:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if <util.random.int[1].to[150]> <= 1:
- if <server.has_flag[tribute_power_hour]>:
- give GodsTribute quantity:2
- else:
- give GodsTribute
- narrate "<&a>You found a Tribute to the Gods!"
on player gains xp for herbalism:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if <util.random.int[1].to[150]> <= 1:
- if <server.has_flag[tribute_power_hour]>:
- give GodsTribute quantity:2
- else:
- give GodsTribute
- narrate "<&a>You found a Tribute to the Gods!"
on player gains xp for fishing:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if <util.random.int[1].to[25]> <= 1:
- if <server.has_flag[tribute_power_hour]>:
- give GodsTribute quantity:2
- else:
- give GodsTribute
- narrate "<&a>You found a Tribute to the Gods!"
on player gains xp for woodcutting:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if <util.random.int[1].to[150]> <= 1:
- if <server.has_flag[tribute_power_hour]>:
- give GodsTribute quantity:2
- else:
- give GodsTribute
- narrate "<&a>You found a Tribute to the Gods!"
on player gains xp for excavation:
- if <yaml[events].read[tribute.active]> == false:
- queue clear
- if <util.random.int[1].to[150]> <= 1:
- if <server.has_flag[tribute_power_hour]>:
- give GodsTribute quantity:2
- else:
- give GodsTribute
- narrate "<&a>You found a Tribute to the Gods!"