From a73632485658b2c0b88e6f46f80ac8dff092a3a8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 23 Jun 2018 23:31:25 -0300 Subject: Weather is broken? Also, bugfixes --- npc/functions/weather.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'npc/functions/weather.txt') 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 -- cgit v1.2.3-70-g09d2