From 74e339cf16f44296ea4318c06cf8a736f1994861 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 18 Jul 2006 21:12:35 +0000 Subject: - Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption ", 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 --- src/char/int_party.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/char/int_party.c') diff --git a/src/char/int_party.c b/src/char/int_party.c index b0cedabe6..e7d2044a5 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -569,10 +569,9 @@ int mapif_parse_PartyAddMember(int fd, int party_id, struct party_member *member } // パ?ティ?設定?更要求 -int mapif_parse_PartyChangeOption(int fd, int party_id, int account_id, int exp, int flag) { +int mapif_parse_PartyChangeOption(int fd, int party_id, int account_id, int exp, int item) { struct party_data *p; - //NOTE: No clue what that flag is about, in all observations so far it always comes as 0. [Skotlex] - flag = 0; + int flag = 0; p = idb_get(party_db, party_id); if (p == NULL) @@ -583,7 +582,7 @@ int mapif_parse_PartyChangeOption(int fd, int party_id, int account_id, int exp, flag |= 0x01; p->party.exp = 0; } - + p->party.item = item&0x3; mapif_party_optionchanged(fd, &p->party, account_id, flag); return 0; } -- cgit v1.2.3-60-g2f50