diff options
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 956d32040..0faa040ef 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8140,9 +8140,24 @@ int atcommand_ksprotection(const int fd, struct map_session_data *sd, const char if( sd->state.noks ) { sd->state.noks = 0; sprintf(atcmd_output, "[ K.S Protection Inactive ]"); - } else { - sprintf(atcmd_output, "[ K.S Protection Active ]"); - sd->state.noks = 1; + } + else + { + if( !message || !*message || !strcmpi(message, "party") ) + { // Default is Party + sd->state.noks = 2; + sprintf(atcmd_output, "[ K.S Protection Active - Option: Party ]"); + } + else if( !strcmpi(message, "self") ) + { + sd->state.noks = 1; + sprintf(atcmd_output, "[ K.S Protection Active - Option: Self ]"); + } + else if( !strcmpi(message, "guild") ) + { + sd->state.noks = 3; + sprintf(atcmd_output, "[ K.S Protection Active - Option: Guild ]"); + } } clif_displaymessage(fd, atcmd_output); |