diff options
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r-- | npc/functions/weather.txt | 12 |
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 |