summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-09-11 17:25:13 -0300
committerJesusaves <cpntb1@ymail.com>2024-09-11 17:25:13 -0300
commit58ad80945139fc713d9b3553fc6840949e979e77 (patch)
treed6c41cab0e64481bd1e9078de1e15e8e7632b44b
parent829a539085a1ce3d8ec22a2d30c96f4b08556562 (diff)
downloadserverdata-58ad80945139fc713d9b3553fc6840949e979e77.tar.gz
serverdata-58ad80945139fc713d9b3553fc6840949e979e77.tar.bz2
serverdata-58ad80945139fc713d9b3553fc6840949e979e77.tar.xz
serverdata-58ad80945139fc713d9b3553fc6840949e979e77.zip
Realm of Drops can now give seasonal drops irrespective of monster killed.
This should make easier as the information is not in the wiki.
-rw-r--r--npc/magic/drops.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/npc/magic/drops.txt b/npc/magic/drops.txt
index fcfc57e03..0d2803a18 100644
--- a/npc/magic/drops.txt
+++ b/npc/magic/drops.txt
@@ -29,6 +29,48 @@ function script SK_drops {
copyarray(.@item[0], $@MobDrop_item[0], .@count);
copyarray(.@rate[0], $@MobDrop_rate[0], .@count);
+ // Include seasonal drops irrespective of monster type
+ switch (season()) {
+ case SUMMER:
+ array_push(.@item, CherryCocktail);
+ array_push(.@rate, 300);
+ array_push(.@item, CactusCocktail);
+ array_push(.@rate, 300);
+ array_push(.@item, AppleCocktail);
+ array_push(.@rate, 300);
+ .@count += 3;
+ break;
+ case AUTUMN:
+ array_push(.@item, PumpkandySeed);
+ array_push(.@rate, 720);
+ array_push(.@item, PumpkinLollipop);
+ array_push(.@rate, 180);
+ .@count += 2;
+ break;
+ case WINTER:
+ array_push(.@item, GingerBreadMan);
+ array_push(.@rate, 100);
+ array_push(.@item, CaramelCandy);
+ array_push(.@rate, 250);
+ array_push(.@item, Snowflake);
+ array_push(.@rate, 250);
+ array_push(.@item, SmallChocolateBar);
+ array_push(.@rate, 300);
+ .@count += 4;
+ break;
+ case SPRING:
+ array_push(.@item, GrassSeeds);
+ array_push(.@rate, 150);
+ array_push(.@item, Tulip);
+ array_push(.@rate, 250);
+ array_push(.@item, Rose);
+ array_push(.@rate, 250);
+ array_push(.@item, Blueberries);
+ array_push(.@rate, 250);
+ .@count += 4;
+ break;
+ }
+
// .@total => sum of all drop rates
// .@array => The real array for relative_array_random()
.@total = 0;