summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorSara <Sara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-24 01:56:16 +0000
committerSara <Sara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-24 01:56:16 +0000
commit35d7b2c7661bad6596a48c81f24a044a91fa346b (patch)
treeba243d910a1aeda54169e536f73e66c7785c542e /src/map/atcommand.c
parent227a195447ddca43b40555952552c6bfc1381c2e (diff)
downloadhercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.gz
hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.bz2
hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.xz
hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.zip
* Added support for new status change packet, uses new setting display_status_timers in client.conf.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index f6928dcc0..1ed4f0701 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2816,16 +2816,17 @@ int atcommand_gat(const int fd, struct map_session_data* sd, const char* command
*------------------------------------------*/
int atcommand_displaystatus(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
- int i, type, flag;
+ int i, type, flag, tick;
nullpo_retr(-1, sd);
- if (!message || !*message || (i = sscanf(message, "%d %d", &type, &flag)) < 1) {
- clif_displaymessage(fd, "Please, enter a status type/flag (usage: @displaystatus <status type> <flag>).");
+ if (!message || !*message || (i = sscanf(message, "%d %d %d", &type, &flag, &tick)) < 1) {
+ clif_displaymessage(fd, "Please, enter a status type/flag (usage: @displaystatus <status type> <flag> <tick>).");
return -1;
}
- if (i == 1) flag = 1;
+ if (i < 2) flag = 1;
+ if (i < 3) tick = 0;
- clif_status_change(&sd->bl, type, flag);
+ clif_status_change(&sd->bl, type, flag, tick);
return 0;
}