From 839afa2410291afea1fdd48e9ee48b9f90baebf5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 30 Jun 2018 10:32:41 -0300 Subject: Patch the pipeline bug --- db/re/item_db.conf | 6 +++--- npc/functions/seasons.txt | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 509ffdae8..6f8c53809 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2143,7 +2143,7 @@ item_db: ( Script: <" @min = 90; @max = 260; - if (season() == SUMMER) { + if ($@SEASON == SUMMER) { @min = 270; @max = 780; } @@ -2168,7 +2168,7 @@ item_db: ( Script: <" @min = 130; @max = 307; - if (season() == SUMMER) { + if ($@SEASON == SUMMER) { @min = 390; @max = 921; } @@ -2193,7 +2193,7 @@ item_db: ( Script: <" @min = 165; @max = 395; - if (season() == SUMMER) { + if ($@SEASON == SUMMER) { @min = 495; @max = 1185; } diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index 8b124e3bb..f893d2ed3 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -33,4 +33,11 @@ function script season { return (.@current_month / 3 + .@is_after_season_day) % 4; } +000-0,0,0,0 script #SeasonCore NPC_HIDDEN,{ + end; +OnInit: +OnHour00: + $@SEASON=season(); + end; +} -- cgit v1.2.3-60-g2f50