summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-23 23:31:25 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-23 23:31:25 -0300
commita73632485658b2c0b88e6f46f80ac8dff092a3a8 (patch)
tree9c257958fbced12e7f1807a62d7e0c79dedd59f5 /npc/functions
parentf302fa8d5e8cfdecd20b66cc141cd7681c429192 (diff)
downloadserverdata-a73632485658b2c0b88e6f46f80ac8dff092a3a8.tar.gz
serverdata-a73632485658b2c0b88e6f46f80ac8dff092a3a8.tar.bz2
serverdata-a73632485658b2c0b88e6f46f80ac8dff092a3a8.tar.xz
serverdata-a73632485658b2c0b88e6f46f80ac8dff092a3a8.zip
Weather is broken? Also, bugfixes
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/weather.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 30af46010..4adb172ef 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -130,7 +130,7 @@ OnMinute45:
function WeatherSwitch {
// Get map
getmapxy(.@key$,.@a,.@b,0);
- if (getarg(1,0) != 0)
+ if (getarg(1,"0") != "0")
.@key$=getarg(1,.@key$);
// Sanitize
@@ -146,23 +146,23 @@ OnMinute45:
// Some commands, for GMs manually override weather
OnRain:
- WeatherSwitch(MASK_RAIN, getarg(0,0));
+ WeatherSwitch(MASK_RAIN, getarg(0,"0"));
end;
OnSand:
- WeatherSwitch(MASK_SANDSTORM, getarg(0,0));
+ WeatherSwitch(MASK_SANDSTORM, getarg(0,"0"));
end;
OnSnow:
- WeatherSwitch(MASK_SNOW, getarg(0,0));
+ WeatherSwitch(MASK_SNOW, getarg(0,"0"));
end;
OnNight:
- WeatherSwitch(MASK_NIGHT, getarg(0,0));
+ WeatherSwitch(MASK_NIGHT, getarg(0,"0"));
end;
OnEvil:
- WeatherSwitch(MASK_EVILSANCTUM, getarg(0,0));
+ WeatherSwitch(MASK_EVILSANCTUM, getarg(0,"0"));
end;
// Clear works on any map