summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 21:12:35 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 21:12:35 +0000
commit74e339cf16f44296ea4318c06cf8a736f1994861 (patch)
tree350de12492ff0ad0d294720243e3dbfe05648053 /src/map/clif.c
parentaca45c0dd3ea658ad4bad00c7e0106856bde8200 (diff)
downloadhercules-74e339cf16f44296ea4318c06cf8a736f1994861.tar.gz
hercules-74e339cf16f44296ea4318c06cf8a736f1994861.tar.bz2
hercules-74e339cf16f44296ea4318c06cf8a736f1994861.tar.xz
hercules-74e339cf16f44296ea4318c06cf8a736f1994861.zip
- Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption <pickup share> <item distribution>", where both arguments can be 0/1, yes/no, etc.
- Updated @changeleader and @partyoption to use msg_Athena entries. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7737 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 81c43cb09..3953b356c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10346,8 +10346,18 @@ void clif_parse_RemovePartyMember(int fd, struct map_session_data *sd) {
*------------------------------------------
*/
void clif_parse_PartyChangeOption(int fd, struct map_session_data *sd) {
+ struct party_data *p;
RFIFOHEAD(fd);
- party_changeoption(sd, RFIFOW(fd,2), RFIFOW(fd,4));
+
+ if(!sd->status.party_id)
+ return;
+
+ p = party_search(sd->status.party_id);
+ if (!p) return;
+ //The client no longer can change the item-field, therefore it always
+ //comes as zero. Here, resend the item data as it is.
+// party_changeoption(sd, RFIFOW(fd,2), RFIFOW(fd,4));
+ party_changeoption(sd, RFIFOW(fd,2), p->party.item);
}
/*==========================================