· 9 years ago · Nov 17, 2016, 12:46 PM
1options:
2 P: &8[&aTier Jobs&8] &7
3
4
5every 2 minutes:
6 add "Periksa stats job anda di /tierjobs atau /tj" to {_bc::*}
7 add "Ada bug ? Mohon beritahu staff !" to {_bc::*}
8 set {_bc} to random element out of {_bc::*}
9 broadcast "{@P}%{_bc}%"
10
11
12command /tierjobadmin [<text>]:
13 aliases: tjadmin
14 permission: admin
15 trigger:
16 if arg is not set:
17 message "{@P}/Tierjobadmin reload"
18 if arg is "reload":
19 execute console command "/sk reload tierjob"
20 message "{@P}Tierjob berhasil direload"
21
22command /tjinfo:
23 trigger:
24 message "{@P}Developed by : XRexor"
25 message "{@P}Versi : 1.0.0"
26
27
28on load:
29 if folder "plugins/tierjobs" is not exists:
30 broadcast "{@P}Membuat folder & File..."
31 create folder "plugiins/tierjobs"
32 create file "plugins/tierjobs/config.yml"
33 create file "plugins/tierjobs/users.yml"
34 wait 1 seconds
35 broadcast "{@P}Menambahkan jobs ke dalam config..."
36 loop 10 times:
37 set yaml value "jobs.warga.%loop-number%.exp" from file "../../tierjobs/config.yml" to loop-number*200
38 loop 20 times:
39 set yaml value "jobs.tier 1.%loop-number%.exp" from file "../../tierjobs/config.yml" to loop-number*500*2+1000
40 loop 25 times:
41 set yaml value "jobs.tier 2.%loop-number%.exp" from file "../../tierjobs/config.yml" to loop-number*1000*4+2000
42 loop 40 times:
43 set yaml value "jobs.tier 3.%loop-number%.exp" from file "../../tierjobs/config.yml" to loop-number*2000*8+3000
44 broadcast "{@P}Menambahkan mobs ke dalam config..."
45 add SKELETON to {_moblist::*}
46 add ZOMBIE to {_moblist::*}
47 add ZOMBIE pigman to {_moblist::*}
48 add SPIDER to {_moblist::*}
49 add CREEPER to {_moblist::*}
50 add GHAST to {_moblist::*}
51 add slime to {_moblist::*}
52 add ENDERMAN to {_moblist::*}
53 add cave spider to {_moblist::*}
54 add SILVERFISH to {_moblist::*}
55 add BLAZE to {_moblist::*}
56 add magma cube to {_moblist::*}
57 add BAT to {_moblist::*}
58 add wither to {_moblist::*}
59 add creature to {_moblist::*}
60 add WITCH to {_moblist::*}
61 add PIG to {_mob2list::*}
62 add SHEEP to {_mob2list::*}
63 add COW to {_mob2list::*}
64 add chicken to {_mob2list::*}
65 add SQUID to {_mob2list::*}
66 add WOLF to {_mob2list::*}
67 add MOOSHROOM to {_mob2list::*}
68 add OCELOT to {_mob2list::*}
69 add HORSE to {_mob2list::*}
70 set yaml value "mob.fish.exp" from file "../../tierjobs/config.yml" to 15
71 loop {_moblist::*}:
72 set yaml value "mob.%loop-value%.exp" from file "../../tierjobs/config.yml" to random integer between 3 to 8
73 loop {_moblist2::*}:
74 set yaml value "mob.%loop-value%.exp" from file "../../tierjobs/config.yml" to random integer between 1 to 3
75 broadcast "{@P}Menambahkan blocks kedalam config..."
76 add log to {_blist::*}
77 add sapling to {_blist::*}
78 add normal wood plank to {_blist::*}
79 add pine wood plank to {_blist::*}
80 add jungle wood plank to {_blist::*}
81 add birch wood plank to {_blist::*}
82 add acacia wood plank to {_blist::*}
83 add oak wood block to {_blist::*}
84 add spruce wood block to {_blist::*}
85 add birch wood block to {_blist::*}
86 add jungle wood block to {_blist::*}
87 add acacia wood block to {_blist::*}
88 add dark oak wood block to {_blist::*}
89 add stone to {_blist::*}
90 add dirt to {_blist::*}
91 add grass to {_blist::*}
92 add cobblestone to {_blist::*}
93 add sand to {_blist::*}
94 add red sand to {_blist::*}
95 add gravel to {_blist::*}
96 add gold ore to {_ore::*}
97 add iron ore to {_ore::*}
98 add coal ore to {_ore::*}
99 add sponge to {_blist::*}
100 add wet sponge to {_blist::*}
101 add glass to {_blist::*}
102 add lapis lazuli ore to {_ore::*}
103 add lapis lazuli block to {_blist::*}
104 add sandstone to {_blist::*}
105 add smooth stone to {_blist::*}
106 add wool block to {_blist::*}
107 add orange wool block to {_blist::*}
108 add magenta wool block to {_blist::*}
109 add light blue wool block to {_blist::*}
110 add yellow wool block to {_blist::*}
111 add lime wool block to {_blist::*}
112 add pink wool block to {_blist::*}
113 add gray wool block to {_blist::*}
114 add light gray wool block to {_blist::*}
115 add cyan wool block to {_blist::*}
116 add purple wool block to {_blist::*}
117 add blue wool block to {_blist::*}
118 add brown wool block to {_blist::*}
119 add red wool block to {_blist::*}
120 add black wool block to {_blist::*}
121 add block of gold to {_blist::*}
122 add iron block to {_blist::*}
123 add stone slab to {_blist::*}
124 add sandstone slab to {_blist::*}
125 add cobblestone slab to {_blist::*}
126 add bricks to {_blist::*}
127 add bookshelf to {_blist::*}
128 add mossy cobblestone to {_blist::*}
129
130 add obsidian to {_blist::*}
131 add wood stairs to {_blist::*}
132 add diamond ore to {_ore::*}
133 add diamond block to {_blist::*}
134 add cobblestone stair to {_blist::*}
135 add redstone ore to {_ore::*}
136 add ice block to {_blist::*}
137 add snow block to {_blist::*}
138 add clay block to {_blist::*}
139 add pumpkin to {_blist::*}
140 add netherrack to {_blist::*}
141 add soul sand to {_blist::*}
142 add glowstone to {_blist::*}
143 add stone bricks to {_blist::*}
144 add brick stairs to {_blist::*}
145 add stone brick stairs to {_blist::*}
146 add mycelium to {_blist::*}
147 add nether brick to {_blist::*}
148 add nether brick stairs to {_blist::*}
149 add wood slab to {_blist::*}
150 add sandstone stairs to {_blist::*}
151 add emerald ore to {_ore::*}
152 add emerald block to {_blist::*}
153 add cobblestone wall to {_blist::*}
154 add mossy cobblestone wall to {_blist::*}
155 add nether quartz ore to {_ore::*}
156 add quartz block to {_blist::*}
157 add coal block to {_blist::*}
158 loop {_blist::*}:
159 set yaml value "blocks.%loop-value%.exp" from file "../../tierjobs/config.yml" to random integer between 1.5 to 5
160 loop {_ore::*}:
161 set yaml value "ores.%loop-value%.exp" from file "../../tierjobs/config.yml" to random integer between 5 to 10
162 broadcast "{@P}Menambahkan player kedalam database..."
163 loop all players:
164 set yaml value "users.%loop-player%.exp" from file "../../tierjobs/users.yml" to 0
165 set yaml value "users.%loop-player%.job" from file "../../tierjobs/users.yml" to "Warga"
166 set yaml value "users.%loop-player%.level" from file "../../tierjobs/users.yml" to 1
167 broadcast "{@P}Semua data berhasil ditambah !"
168 broadcast "{@P}Tierjobs bisa digunakan !"
169
170on join:
171 if {tj::%player%} is not set:
172 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
173 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Warga"
174 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
175 set {tj::%player%} to true
176
177command /tierjob:
178 aliases: tj, tierjobs, tjob, tjobs
179 trigger:
180 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
181 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
182 set {_level} to yaml value "users.%player%.level" from file "../../tierjobs/users.yml"
183 if {_job} is "warga":
184 set {_mexp} to yaml value "jobs.warga.%{_level}%.exp" from file "../../tierjobs/config.yml"
185 if {_job} is "hunter" or "fisher" or "woodcutter" or "enchanter" or "brewer" or "farmer":
186 set {_mexp} to yaml value "jobs.tier 1.%{_level}%.exp" from file "../../tierjobs/config.yml"
187 if {_job} is "fighter" or "fisherman" or "timberman" or "blacksmith" or "alchemist" or "nurseryman":
188 set {_mexp} to yaml value "jobs.tier 2.%{_level}%.exp" from file "../../tierjobs/config.yml"
189 open chest with 1 rows named "&cData %player%" to player
190 set slot 0 of player's current inventory to paper named "&6Job : %{_job}%" with lore "&eEXP : %{_exp}%/%{_mexp}%||&eEXP Yang dibutuhkan:||&e%{_mexp}-{_exp}%||&eLevel : %{_level}%"
191 set slot 4 of player's current inventory to glowing paper named "&6Cek Informasi Job" with lore "&cCek informasi job anda disini !"
192 if {_job} is "fighter" or "fisherman" or "timberman" or "blacksmith" or "alchemist" or "nurseryman":
193 set slot 8 of player's current inventory to red wool block named "&cTier 3 Sedang dalam proses"
194 else:
195 if {_job} is "hunter" or "fisher" or "woodcutter" or "enchanter" or "brewer" or "farmer":
196 if {_level} is 20:
197 if {_job} is "hunter":
198 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Fighter"
199 else if {_job} is "fisher":
200 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Fisherman"
201 else if {_job} is "woodcutter":
202 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Timberman"
203 else if {_job} is "enchanter":
204 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Blacksmith"
205 else if {_job} is "brewer":
206 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Alchemist"
207 else if {_job} is "farmer":
208 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eJob selanjutnya : Nurseryman"
209 else:
210 set slot 8 of player's current inventory to red wool block named "&cAnda tidak bisa naik tier" with lore "&cAnda harus level 20 untuk melakukan ini"
211 else if {_job} is "warga":
212 if {_level} is 10:
213 set slot 8 of player's current inventory to lime wool block named "&6Naik tier ~" with lore "&eAnda bisa memilih job selanjutnya"
214 else:
215 set slot 8 of player's current inventory to red wool block named "&cAnda tidak bisa naik tier" with lore "&cAnda harus level 10 untuk melakukan ini"
216
217on inventory click:
218 if inventory name of player's current inventory is "&cData %player%":
219 cancel event
220 if clicked slot is 4:
221 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
222 if {_job} is "Warga":
223 close player's inventory
224 message "{@P}Break Dan Place :"
225 wait 1 seconds
226 add log to {_blist::*}
227 add sapling to {_blist::*}
228 add normal wood plank to {_blist::*}
229 add pine wood plank to {_blist::*}
230 add jungle wood plank to {_blist::*}
231 add birch wood plank to {_blist::*}
232 add acacia wood plank to {_blist::*}
233 add oak wood block to {_blist::*}
234 add spruce wood block to {_blist::*}
235 add birch wood block to {_blist::*}
236 add jungle wood block to {_blist::*}
237 add acacia wood block to {_blist::*}
238 add dark oak wood block to {_blist::*}
239 add stone to {_blist::*}
240 add dirt to {_blist::*}
241 add grass to {_blist::*}
242 add cobblestone to {_blist::*}
243 add sand to {_blist::*}
244 add red sand to {_blist::*}
245 add gravel to {_blist::*}
246 add gold ore to {_ore::*}
247 add iron ore to {_ore::*}
248 add coal ore to {_ore::*}
249 add sponge to {_blist::*}
250 add wet sponge to {_blist::*}
251 add glass to {_blist::*}
252 add lapis lazuli ore to {_ore::*}
253 add lapis lazuli block to {_blist::*}
254 add sandstone to {_blist::*}
255 add smooth stone to {_blist::*}
256 add wool block to {_blist::*}
257 add orange wool block to {_blist::*}
258 add magenta wool block to {_blist::*}
259 add light blue wool block to {_blist::*}
260 add yellow wool block to {_blist::*}
261 add lime wool block to {_blist::*}
262 add pink wool block to {_blist::*}
263 add gray wool block to {_blist::*}
264 add light gray wool block to {_blist::*}
265 add cyan wool block to {_blist::*}
266 add purple wool block to {_blist::*}
267 add blue wool block to {_blist::*}
268 add brown wool block to {_blist::*}
269 add red wool block to {_blist::*}
270 add black wool block to {_blist::*}
271 add block of gold to {_blist::*}
272 add iron block to {_blist::*}
273 add stone slab to {_blist::*}
274 add sandstone slab to {_blist::*}
275 add cobblestone slab to {_blist::*}
276 add bricks to {_blist::*}
277 add bookshelf to {_blist::*}
278 add mossy cobblestone to {_blist::*}
279
280 add obsidian to {_blist::*}
281 add wood stairs to {_blist::*}
282 add diamond ore to {_ore::*}
283 add diamond block to {_blist::*}
284 add cobblestone stair to {_blist::*}
285 add redstone ore to {_ore::*}
286 add ice block to {_blist::*}
287 add snow block to {_blist::*}
288 add clay block to {_blist::*}
289 add pumpkin to {_blist::*}
290 add netherrack to {_blist::*}
291 add soul sand to {_blist::*}
292 add glowstone to {_blist::*}
293 add stone bricks to {_blist::*}
294 add brick stairs to {_blist::*}
295 add stone brick stairs to {_blist::*}
296 add mycelium to {_blist::*}
297 add nether brick to {_blist::*}
298 add nether brick stairs to {_blist::*}
299 add wood slab to {_blist::*}
300 add sandstone stairs to {_blist::*}
301 add emerald ore to {_ore::*}
302 add emerald block to {_blist::*}
303 add cobblestone wall to {_blist::*}
304 add mossy cobblestone wall to {_blist::*}
305 add nether quartz ore to {_ore::*}
306 add quartz block to {_blist::*}
307 add coal block to {_blist::*}
308 loop {_blist::*}:
309 set {_a} to yaml value "blocks.%loop-value%.exp" from file "../../tierjobs/config.yml"
310 add "&a%loop-value% &7%{_a}% EXP" to {_a::*}
311 loop {_a::*}:
312 message "%loop-value%"
313 message "{@P} Kill :"
314 add SKELETON to {_moblist::*}
315 add ZOMBIE to {_moblist::*}
316 add ZOMBIE pigman to {_moblist::*}
317 add SPIDER to {_moblist::*}
318 add CREEPER to {_moblist::*}
319 add GHAST to {_moblist::*}
320 add slime to {_moblist::*}
321 add ENDERMAN to {_moblist::*}
322 add cave spider to {_moblist::*}
323 add SILVERFISH to {_moblist::*}
324 add BLAZE to {_moblist::*}
325 add magma cube to {_moblist::*}
326 add BAT to {_moblist::*}
327 add wither to {_moblist::*}
328 add creature to {_moblist::*}
329 add WITCH to {_moblist::*}
330 add PIG to {_mob2list::*}
331 add SHEEP to {_moblist::*}
332 add COW to {_moblist::*}
333 add chicken to {_moblist::*}
334 add SQUID to {_moblist::*}
335 add WOLF to {_moblist::*}
336 add MOOSHROOM to {_moblist::*}
337 add OCELOT to {_moblist::*}
338 add HORSE to {_moblist::*}
339 loop {_moblist::*}:
340 set {_a} to yaml value "mob.%loop-value%.exp" from file "../../tierjobs/config.yml"
341 add "&a%loop-value% &7%{_a}% EXP" to {_a2::*}
342 loop {_a2::*}:
343 message "%loop-value%"
344
345 if clicked slot is 8:
346 if clicked item is lime wool block:
347 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
348 if {_job} is "warga":
349 close player's inventory
350 wait 2 tick
351 open chest with 1 rows named "&cPilih job..." to player
352 wait 1 tick
353 set slot 0 of player's current inventory to diamond sword named "&cHunter"
354 set slot 1 of player's current inventory to fishing rod named "&eFisher"
355 set slot 3 of player's current inventory to oak wood plank named "&aWoodcutter"
356 set slot 5 of player's current inventory to enchantment table named "&dEnchanter"
357 set slot 7 of player's current inventory to brewing stand named "&bBrewer"
358 set slot 8 of player's current inventory to diamond hoe named "&aFarmer"
359 else:
360 set slot 8 of player's current inventory to lime wool block named "&aKambing sun" with lore "&cDevnya lagi capek gan||&antar lagi lanjut||&6XDD"
361on inventory click:
362 if inventory name of player's current inventory is "&cPilih job...":
363 cancel event
364 if clicked slot is 0:
365 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
366 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Hunter"
367 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
368 close player's inventory
369 send player title "&6Berhasil naik tier ke Hunter !" for 3 seconds
370 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
371 else if clicked slot is 1:
372 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
373 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Fisher"
374 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
375 close player's inventory
376 send player title "&6Berhasil naik tier ke Fisher !" for 3 seconds
377 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
378 else if clicked slot is 3:
379 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
380 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Woodcutter"
381 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
382 close player's inventory
383 send player title "&6Berhasil naik tier ke Woodcutter !" for 3 seconds
384 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
385 else if clicked slot is 5:
386 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
387 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Enchanter"
388 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
389 close player's inventory
390 send player title "&6Berhasil naik tier ke Enchanter !" for 3 seconds
391 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
392 else if clicked slot is 7:
393 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
394 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Brewer"
395 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
396 close player's inventory
397 send player title "&6Berhasil naik tier ke Brewer !" for 3 seconds
398 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
399 else if clicked slot is 8:
400 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
401 set yaml value "users.%player%.job" from file "../../tierjobs/users.yml" to "Farmer"
402 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to 1
403 close player's inventory
404 send player title "&6Berhasil naik tier ke Farmer !" for 3 seconds
405 broadcast "{@P}Selamat kepada %player% karena telah naik ke tier 1"
406
407
408
409
410
411
412
413
414on brew:
415 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
416 if {_job} is "Enchanter":
417 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
418 set {_get} to 25
419 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
420
421
422on craft:
423 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
424 if {_job} is "Brewer":
425 if event-item is beacon or bottle or golden carrot or golden apple or glistering melon or fermented spider eye or blaze powder:
426 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
427 set {_get} to 20
428 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
429 if {_job} is "Enchanter" or "Warga":
430 if event-item is diamond sword or diamond pickaxe or diamond axe or diamond hoe or diamond helmet or diamond chestplate or diamond leggings or diamond boots:
431 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
432 set {_get} to random integer between 15 to 20
433 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
434 else if event-item is gold sword or gold pickaxe or gold axe or gold hoe or gold helmet or gold chestplate or gold leggings or gold boots:
435 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
436 set {_get} to random integer between 10 to 15
437 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
438 else if event-item is iron sword or iron pickaxe or iron axe or iron hoe or iron helmet or iron chestplate or iron leggings or iron boots:
439 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
440 set {_get} to random integer between 7 to 9
441 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
442 else if event-item is wooden sword or wooden pickaxe or wooden axe or wooden hoe or leather helmet or leather chestplate or leather leggings or leather boots:
443 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
444 set {_get} to random integer between 3 to 5
445 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
446
447
448on enchant:
449 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
450 if {_job} is "Enchanter" or "Warga":
451 if event-item is diamond sword or diamond pickaxe or diamond axe or diamond hoe or diamond helmet or diamond chestplate or diamond leggings or diamond boots:
452 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
453 set {_get} to random integer between 15 to 20
454 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
455 else if event-item is gold sword or gold pickaxe or gold axe or gold hoe or gold helmet or gold chestplate or gold leggings or gold boots:
456 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
457 set {_get} to random integer between 10 to 15
458 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
459 else if event-item is iron sword or iron pickaxe or iron axe or iron hoe or iron helmet or iron chestplate or iron leggings or iron boots:
460 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
461 set {_get} to random integer between 7 to 9
462 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
463 else if event-item is wooden sword or wooden pickaxe or wooden axe or wooden hoe or leather helmet or leather chestplate or leather leggings or leather boots:
464 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
465 set {_get} to random integer between 3 to 5
466 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
467
468
469on fishing state of caught fish:
470 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
471 if {_job} is "Fisher" or "Warga":
472 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
473 set {_get} to yaml value "mob.FISH.exp" from file "../../tierjobs/config.yml"
474 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
475
476
477 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
478 set {_level} to yaml value "users.%player%.level" from file "../../tierjobs/users.yml"
479 set {_mexp} to yaml value "jobs.warga.%{_level}%.exp" from file "../../tierjobs/users.yml"
480 if {_level} is not 10:
481 if {_exp} is above or equal to {_mexp}:
482 message "{@P}Selamat anda telah naik level !"
483 broadcast "{@P}%player% telah naik ke level %{_level}+1%"
484 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to {_level}+1
485 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
486
487
488
489on death:
490 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
491 if {_job} is not "Warga" or "Hunter":
492 stop
493 set {_n} to attacker
494 if attacker is not player:
495 stop
496 if victim is ZOMBIE:
497 set {_exp} to yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml"
498 set {_get} to yaml value "mob.ZOMBIE.exp" from file "../../tierjobs/config.yml"
499
500 set {_getx} to {_get}+{_exp}
501 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
502 else if victim is SKELETON:
503 set {_get} to yaml value "mob.SKELETON.exp" from file "../../tierjobs/config.yml"
504 set {_getx} to {_get}+{_exp}
505 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
506
507
508 else if victim is SPIDER:
509 set {_get} to yaml value "mob.SPIDER.exp" from file "../../tierjobs/config.yml"
510 set {_getx} to {_get}+{_exp}
511 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
512
513
514 else if victim is CAVE SPIDER:
515 set {_get} to yaml value "mob.CAVE_SPIDER.exp" from file "../../tierjobs/config.yml"
516 set {_getx} to {_get}+{_exp}
517 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
518
519
520 else if victim is CREEPER:
521 set {_get} to yaml value "mob.CREEPER.exp" from file "../../tierjobs/config.yml"
522 set {_getx} to {_get}+{_exp}
523 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
524
525
526 else if victim is BLAZE:
527 set {_get} to yaml value "mob.BLAZE.exp" from file "../../tierjobs/config.yml"
528 set {_getx} to {_get}+{_exp}
529 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
530
531
532 else if victim is GHAST:
533 set {_get} to yaml value "mob.GHAST.exp" from file "../../tierjobs/config.yml"
534 set {_getx} to {_get}+{_exp}
535 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
536
537
538 else if victim is slime:
539 set {_get} to yaml value "mob.slime.exp" from file "../../tierjobs/config.yml"
540 set {_getx} to {_get}+{_exp}
541 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
542
543
544 else if victim is ENDERMAN:
545 set {_get} to yaml value "mob.ENDERMAN.exp" from file "../../tierjobs/config.yml"
546 set {_getx} to {_get}+{_exp}
547 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
548
549
550 else if victim is creature:
551 set {_get} to yaml value "mob.creature.exp" from file "../../tierjobs/config.yml"
552 set {_getx} to {_get}+{_exp}
553 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
554
555
556 else if victim is SILVERFISH:
557 set {_get} to yaml value "mob.SILVERFISH.exp" from file "../../tierjobs/config.yml"
558 set {_getx} to {_get}+{_exp}
559 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
560
561
562 else if victim is creature:
563 set {_get} to yaml value "mob.creature.exp" from file "../../tierjobs/config.yml"
564 set {_getx} to {_get}+{_exp}
565 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
566
567
568 else if victim is WITCH:
569 set {_get} to yaml value "mob.WITCH.exp" from file "../../tierjobs/config.yml"
570 set {_getx} to {_get}+{_exp}
571 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
572
573
574 else if victim is BAT:
575 set {_get} to yaml value "mob.BAT.exp" from file "../../tierjobs/config.yml"
576 set {_getx} to {_get}+{_exp}
577 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
578
579
580 else if victim is PIG:
581 set {_get} to yaml value "mob.PIG.exp" from file "../../tierjobs/config.yml"
582 set {_getx} to {_get}+{_exp}
583 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
584
585
586 else if victim is SHEEP:
587 set {_get} to yaml value "mob.SHEEP.exp" from file "../../tierjobs/config.yml"
588 set {_getx} to {_get}+{_exp}
589 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
590
591
592 else if victim is COW:
593 set {_get} to yaml value "mob.COW.exp" from file "../../tierjobs/config.yml"
594 set {_getx} to {_get}+{_exp}
595 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
596
597
598 else if victim is wither:
599 set {_get} to yaml value "mob.wither.exp" from file "../../tierjobs/config.yml"
600 set {_getx} to {_get}+{_exp}
601 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
602
603
604 else if victim is SQUID:
605 set {_get} to yaml value "mob.SQUID.exp" from file "../../tierjobs/config.yml"
606 set {_getx} to {_get}+{_exp}
607 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
608
609
610 else if victim is WOLF:
611 set {_get} to yaml value "mob.WOLF.exp" from file "../../tierjobs/config.yml"
612 set {_getx} to {_get}+{_exp}
613 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
614
615
616 else if victim is chicken:
617 set {_get} to yaml value "mob.chicken item or cooked chicken.exp" from file "../../tierjobs/config.yml"
618 set {_getx} to {_get}+{_exp}
619 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
620
621
622 else if victim is OCELOT:
623 set {_get} to yaml value "mob.OCELOT.exp" from file "../../tierjobs/config.yml"
624 set {_getx} to {_get}+{_exp}
625 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
626
627
628 else if victim is HORSE:
629 set {_get} to yaml value "mob.HORSE.exp" from file "../../tierjobs/config.yml"
630 set {_getx} to {_get}+{_exp}
631 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
632
633
634 else if victim is creature:
635 set {_get} to yaml value "mob.creature.exp" from file "../../tierjobs/config.yml"
636 set {_getx} to {_get}+{_exp}
637 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
638
639
640 else if victim is ZOMBIE pigman:
641 set {_get} to yaml value "mob.ZOMBIE pigman.exp" from file "../../tierjobs/config.yml"
642 set {_getx} to {_get}+{_exp}
643
644
645 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
646 else if victim is MAGMA CUBE:
647 set {_get} to yaml value "mob.MAGMA_CUBE.exp" from file "../../tierjobs/config.yml"
648 set {_getx} to {_get}+{_exp}
649 set yaml value "users.%{_n}%.exp" from file "../../tierjobs/users.yml" to {_getx}
650
651 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
652 set {_level} to yaml value "users.%player%.level" from file "../../tierjobs/users.yml"
653 set {_mexp} to yaml value "jobs.warga.%{_level}%.exp" from file "../../tierjobs/users.yml"
654 if {_level} is not 10:
655 if {_exp} is above or equal to {_mexp}:
656 message "{@P}Selamat anda telah naik level !"
657 broadcast "{@P}%player% telah naik ke level %{_level}+1%"
658 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to {_level}+1
659 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
660
661
662
663
664on place:
665 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
666 if {_job} is "Farmer":
667 if event-item is seed:
668 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
669 set {_get} to 3
670 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
671 else if event-teim is sugar cane:
672 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
673 set {_get} to 4
674 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
675 if {_job} is "Warga":
676 if event-item is grass:
677 set {_get} to yaml value "blocks.grass.exp" from file "../../tierjobs/config.yml"
678 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
679 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
680
681
682 else if event-item is any wool:
683 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
684 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
685 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
686
687
688 else if event-item is any wood:
689 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
690 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
691 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
692
693
694 else if event-item is any wood plank:
695 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
696 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
697 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
698
699
700 else if event-item is dirt:
701 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
702 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
703 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
704
705 else if event-item is sandstone:
706 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
707 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
708 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
709
710 else if event-item is any wooden slab:
711 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
712 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
713 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
714
715
716 else if event-item is any stone slab:
717 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
718 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
719 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
720
721 else if event-item is dirt:
722 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
723 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
724 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
725
726
727 else if event-item is any wooden stairs:
728 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
729 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
730 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
731
732 else if event-item is any stone bricks:
733 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
734 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
735 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
736
737 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
738 set {_level} to yaml value "users.%player%.level" from file "../../tierjobs/users.yml"
739 set {_mexp} to yaml value "jobs.warga.%{_level}%.exp" from file "../../tierjobs/users.yml"
740 if {_level} is not 10:
741 if {_exp} is above or equal to {_mexp}:
742 message "{@P}Selamat anda telah naik level !"
743 broadcast "{@P}%player% telah naik ke level %{_level}+1%"
744 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to {_level}+1
745 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0
746
747on break:
748 message "%event-item%"
749 set {_job} to yaml value "users.%player%.job" from file "../../tierjobs/users.yml"
750 if {_job} is "Farmer":
751 if event-item is melon block:
752 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
753 set {_get} to 4
754 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
755 if {_job} is "Woodcutter":
756 if event-item is any wood:
757 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
758 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
759 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}+5
760 else if event-item is any wood plank:
761 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
762 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
763 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}+3
764 if {_job} is "Warga":
765 if event-item is grass:
766 set {_get} to yaml value "blocks.grass.exp" from file "../../tierjobs/config.yml"
767 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
768 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
769
770
771 else if event-item is any wool:
772 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
773 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
774 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
775
776
777 else if event-item is any wood:
778 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
779 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
780 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
781
782
783 else if event-item is any wood plank:
784 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
785 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
786 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
787
788
789 else if event-item is any sponges:
790 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
791 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
792 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
793
794
795 else if event-item is lapis ore:
796 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
797 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
798 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
799
800
801 else if event-item is sandstone:
802 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
803 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
804 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
805
806
807 else if event-item is any wooden slab:
808 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
809 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
810 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
811
812
813 else if event-item is any stone slab:
814 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
815 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
816 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
817
818
819 else if event-item is clay brick block:
820 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
821 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
822 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
823
824
825 else if event-item is mossy cobblestone:
826 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
827 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
828 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
829
830
831 else if event-item is dirt:
832 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
833 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
834 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
835
836
837 else if event-item is any wooden stairs:
838 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
839 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
840 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
841
842
843 else if event-item is netherrack:
844 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
845 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
846 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
847
848
849 else if event-item is soul sand:
850 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
851 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
852 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
853
854
855 else if event-item is glow stone:
856 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
857 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
858 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
859
860
861 else if event-item is obsidian:
862 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
863 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
864 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
865
866
867 else if event-item is any stone bricks:
868 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
869 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
870 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_exp}-{_get}
871
872
873 else if event-item is mycelium:
874 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
875 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
876 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
877
878
879 else if event-item is cobble walls:
880 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
881 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
882 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
883
884
885 else if event-item is quartz block:
886 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
887 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
888 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
889
890
891 else if event-item is diamond block:
892 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
893 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
894 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
895
896 else if event-item is diamond ore:
897 set {_get} to yaml value "ores.%event-item%.exp" from file "../../tierjobs/config.yml"
898 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
899 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
900
901 else if event-item is coal ore:
902 set {_get} to yaml value "ores.%event-item%.exp" from file "../../tierjobs/config.yml"
903 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
904 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
905
906 else if event-item is iron block:
907 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
908 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
909 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
910
911 else if event-item is iron ore:
912 set {_get} to yaml value "ores.%event-item%.exp" from file "../../tierjobs/config.yml"
913 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
914 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
915
916 else if event-item is gold ore:
917 set {_get} to yaml value "ores.%event-item%.exp" from file "../../tierjobs/config.yml"
918 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
919 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
920
921 else if event-item is gold block:
922 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
923 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
924 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
925
926 else if event-item is coal block:
927 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
928 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
929 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
930
931 else if event-item is emerald ore:
932 set {_get} to yaml value "ores.%event-item%.exp" from file "../../tierjobs/config.yml"
933 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
934 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
935
936 else if event-item is emerald block:
937 set {_get} to yaml value "blocks.%event-item%.exp" from file "../../tierjobs/config.yml"
938 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
939 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to {_get}+{_exp}
940
941
942 set {_exp} to yaml value "users.%player%.exp" from file "../../tierjobs/users.yml"
943 set {_level} to yaml value "users.%player%.level" from file "../../tierjobs/users.yml"
944 set {_mexp} to yaml value "jobs.warga.%{_level}%.exp" from file "../../tierjobs/users.yml"
945 if {_level} is not 10:
946 if {_exp} is above or equal to {_mexp}:
947 message "{@P}Selamat anda telah naik level !"
948 broadcast "{@P}%player% telah naik ke level %{_level}+1%"
949 set yaml value "users.%player%.level" from file "../../tierjobs/users.yml" to {_level}+1
950 set yaml value "users.%player%.exp" from file "../../tierjobs/users.yml" to 0