From dde5ed747c4ac81ee95d9c5ae447d55c4d1c9c1b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 23 Jun 2018 23:32:11 -0300 Subject: Ah, I can't do that... --- npc/functions/weather.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index 4adb172ef..300f3b009 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -130,8 +130,6 @@ OnMinute45: function WeatherSwitch { // Get map getmapxy(.@key$,.@a,.@b,0); - if (getarg(1,"0") != "0") - .@key$=getarg(1,.@key$); // Sanitize .@m$ = htget(.wcore, .@key$, "Not found"); @@ -146,23 +144,23 @@ OnMinute45: // Some commands, for GMs manually override weather OnRain: - WeatherSwitch(MASK_RAIN, getarg(0,"0")); + WeatherSwitch(MASK_RAIN); end; OnSand: - WeatherSwitch(MASK_SANDSTORM, getarg(0,"0")); + WeatherSwitch(MASK_SANDSTORM); end; OnSnow: - WeatherSwitch(MASK_SNOW, getarg(0,"0")); + WeatherSwitch(MASK_SNOW); end; OnNight: - WeatherSwitch(MASK_NIGHT, getarg(0,"0")); + WeatherSwitch(MASK_NIGHT); end; OnEvil: - WeatherSwitch(MASK_EVILSANCTUM, getarg(0,"0")); + WeatherSwitch(MASK_EVILSANCTUM); end; // Clear works on any map -- cgit v1.2.3-60-g2f50