summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-30 10:32:41 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-30 10:34:04 -0300
commit839afa2410291afea1fdd48e9ee48b9f90baebf5 (patch)
treed4b9bfeb80be13d27458312125e08db483be0fe8
parent1998a6a09c19677a5e0f5c52cf0d5a75382c1f4a (diff)
downloadserverdata-839afa2410291afea1fdd48e9ee48b9f90baebf5.tar.gz
serverdata-839afa2410291afea1fdd48e9ee48b9f90baebf5.tar.bz2
serverdata-839afa2410291afea1fdd48e9ee48b9f90baebf5.tar.xz
serverdata-839afa2410291afea1fdd48e9ee48b9f90baebf5.zip
Patch the pipeline bug
-rw-r--r--db/re/item_db.conf6
-rw-r--r--npc/functions/seasons.txt7
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;
+}