summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorepuncker <gm.perflex@gmail.com>2016-07-22 11:39:10 -0300
committerepuncker <gm.perflex@gmail.com>2016-07-25 11:49:56 -0300
commit03ce9e5a69b54535ea70b3776004dd7ade7e6134 (patch)
tree1a8ca3b3fb4a8d006d1b09c3146a110787a79ef8 /src/map/party.c
parent22bf27402936e8c95cc9c50597353da300fe7d6d (diff)
downloadhercules-03ce9e5a69b54535ea70b3776004dd7ade7e6134.tar.gz
hercules-03ce9e5a69b54535ea70b3776004dd7ade7e6134.tar.bz2
hercules-03ce9e5a69b54535ea70b3776004dd7ade7e6134.tar.xz
hercules-03ce9e5a69b54535ea70b3776004dd7ade7e6134.zip
Added a missing entry into messages.conf and added some comments where missing, ref #1282
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c
index d0d466083..c471cceb9 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -362,7 +362,7 @@ int party_invite(struct map_session_data *sd,struct map_session_data *tsd)
ARR_FIND(0, MAX_PARTY, i, p->data[i].sd == sd);
if( i == MAX_PARTY || !p->party.member[i].leader ) {
- clif->message(sd->fd, msg_sd(sd,282));
+ clif->message(sd->fd, msg_sd(sd,282)); // You need to be a party leader to use this command.
return 0;
}
@@ -682,12 +682,12 @@ bool party_changeleader(struct map_session_data *sd, struct map_session_data *ts
return false;
if (!tsd || tsd->status.party_id != sd->status.party_id) {
- clif->message(sd->fd, msg_sd(sd,283));
+ clif->message(sd->fd, msg_sd(sd,283)); // Target character must be online and in your current party.
return false;
}
if( map->list[sd->bl.m].flag.partylock ) {
- clif->message(sd->fd, msg_sd(sd,287));
+ clif->message(sd->fd, msg_sd(sd,287)); // You cannot change party leaders in this map.
return false;
}
@@ -699,8 +699,7 @@ bool party_changeleader(struct map_session_data *sd, struct map_session_data *ts
return false; //Shouldn't happen
if (!p->party.member[mi].leader) {
- //Need to be a party leader.
- clif->message(sd->fd, msg_sd(sd,282));
+ clif->message(sd->fd, msg_sd(sd,282)); // You need to be a party leader to use this command.
return false;
}