summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-14 01:04:19 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-14 01:04:19 +0000
commit8f33823e449e96a6d95a4858521b15ceb2956812 (patch)
tree5ba01c1452a13970078d9548e39e7437c01f7485 /src
parent7c5ebe2d2ec057383fb8edc49f442115bbb05eee (diff)
downloadhercules-8f33823e449e96a6d95a4858521b15ceb2956812.tar.gz
hercules-8f33823e449e96a6d95a4858521b15ceb2956812.tar.bz2
hercules-8f33823e449e96a6d95a4858521b15ceb2956812.tar.xz
hercules-8f33823e449e96a6d95a4858521b15ceb2956812.zip
Modified @displaystatus to support val1/2/3 as optional arguments (greatly handy at testing/debugging status)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16294 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 65202b050..4c9aca67d 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2488,17 +2488,17 @@ ACMD_FUNC(gat)
*------------------------------------------*/
ACMD_FUNC(displaystatus)
{
- int i, type, flag, tick;
+ int i, type, flag, tick, val1 = 0, val2 = 0, val3 = 0;
nullpo_retr(-1, sd);
- 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>).");
+ if (!message || !*message || (i = sscanf(message, "%d %d %d %d %d %d", &type, &flag, &tick, &val1, &val2, &val3)) < 1) {
+ clif_displaymessage(fd, "Please, enter a status type/flag (usage: @displaystatus <status type> <flag> <tick> {<val1> {<val2> {<val3>}}}).");
return -1;
}
if (i < 2) flag = 1;
if (i < 3) tick = 0;
- clif_status_change(&sd->bl, type, flag, tick, 0, 0, 0);
+ clif_status_change(&sd->bl, type, flag, tick, val1, val2, val3);
return 0;
}