diff options
author | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-13 22:15:58 +0000 |
---|---|---|
committer | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-13 22:15:58 +0000 |
commit | ae6aa7431d176f3defab07234cdd7677523f0c4d (patch) | |
tree | aead9f031a47c24081d13030d72fc6c63e1c8f50 /src/map/atcommand.c | |
parent | 6ef9c57c9e27f1225ba4be518d980cfae17a10f5 (diff) | |
download | hercules-ae6aa7431d176f3defab07234cdd7677523f0c4d.tar.gz hercules-ae6aa7431d176f3defab07234cdd7677523f0c4d.tar.bz2 hercules-ae6aa7431d176f3defab07234cdd7677523f0c4d.tar.xz hercules-ae6aa7431d176f3defab07234cdd7677523f0c4d.zip |
* common/mmo.h: changed base_level and job_level to unsigned int to increase max levels
* char/char.c: added a NULL check for the file in parse_friend_txt
* map/atcommand.c/.h: added @clearweather (thanks to Dexity)
* map/charcommand.c/.h: added #spiritball
* map/mob.c: fixed a compiler warning (ln was an int and was supposed to be an unsigned long int)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@563 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d460bfa2d..ff7ff00da 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -206,6 +206,7 @@ ATCOMMAND_FUNC(trade); // by MouseJstr ATCOMMAND_FUNC(send); // by davidsiaw ATCOMMAND_FUNC(setbattleflag); // by MouseJstr ATCOMMAND_FUNC(unmute); // [Valaris] +ATCOMMAND_FUNC(clearweather); // Dexity ATCOMMAND_FUNC(uptime); // by MC Cameri ATCOMMAND_FUNC(changesex); // by MC Cameri ATCOMMAND_FUNC(mute); // celest @@ -455,6 +456,7 @@ static AtCommandInfo atcommand_info[] = { { AtCommand_Send, "@send", 60, atcommand_send }, { AtCommand_SetBattleFlag, "@setbattleflag", 60, atcommand_setbattleflag }, { AtCommand_UnMute, "@unmute", 60, atcommand_unmute }, // [Valaris] + { AtCommand_Clearweather, "@clearweather", 99, atcommand_clearweather }, // Dexity { AtCommand_UpTime, "@uptime", 0, atcommand_uptime }, // by MC Cameri { AtCommand_ChangeSex, "@changesex", 1, atcommand_changesex }, // by MC Cameri { AtCommand_Mute, "@mute", 99, atcommand_mute }, // [celest] @@ -7686,6 +7688,27 @@ atcommand_leaves( clif_specialeffect(&sd->bl,effno,2); return 0; } + +/*========================================== + * Clearing Weather Effects by Dexity + *------------------------------------------ + */ +int +atcommand_clearweather( + const int fd, struct map_session_data* sd, + const char* command, const char* message) +{ + int effno = 0; + nullpo_retr(-1, sd); + map[sd->bl.m].flag.rain=0; + map[sd->bl.m].flag.snow=0; + map[sd->bl.m].flag.sakura=0; + map[sd->bl.m].flag.fog=0; + map[sd->bl.m].flag.leaves=0; + clif_specialeffect(&sd->bl,effno,2); + return 0; +} + /*========================================== * *------------------------------------------ |