summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-30 10:30:34 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-30 10:34:04 -0300
commitfce3b0239ea177694b1b64d8395ffa6e1eaaa5f1 (patch)
tree86ec6f0164d5ae4cc4b36e3ee181c87307a92490 /npc/functions/util.txt
parent5ae273e31f3537b6f6c013dedd1c00a7ae22ae7a (diff)
downloadserverdata-fce3b0239ea177694b1b64d8395ffa6e1eaaa5f1.tar.gz
serverdata-fce3b0239ea177694b1b64d8395ffa6e1eaaa5f1.tar.bz2
serverdata-fce3b0239ea177694b1b64d8395ffa6e1eaaa5f1.tar.xz
serverdata-fce3b0239ea177694b1b64d8395ffa6e1eaaa5f1.zip
Delete unused file, move season()
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt29
1 files changed, 0 insertions, 29 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 9b2e106ac..48937d157 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1,39 +1,10 @@
// TMW2 Script.
-// Evol functions.
// Authors:
-// Reid
// Jesusalva
// Description:
// Util functions
-// season({day, month})
-// SQuest_Summer
-// returns the current season (approximation)
-// WINTER: Winter, 21/12
-// SPRING: Spring, 20/03
-// SUMMER: Summer, 21/06
-// AUTUMN: Autumn, 22/09
-
-function script season {
- .@current_month = getarg(0, gettime(GETTIME_MONTH));
-
- if (.@current_month % 3 == 0) {
- .@current_day = getarg(1, gettime(GETTIME_DAYOFMONTH));
-
- switch (.@current_month) {
- case MARCH: .@season_day = 20; break;
- case JUNE: .@season_day = 21; break;
- case SEPTEMBER: .@season_day = 22; break;
- case DECEMBER: .@season_day = 21; break;
- default: break;
- }
-
- .@is_after_season_day = .@current_day >= .@season_day ? 0 : -1;
- }
-
- return (.@current_month / 3 + .@is_after_season_day) % 4;
-}
// Returns Nard reputation for discounts
// Currently ranges from 0 to 15.