diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-18 21:12:35 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-18 21:12:35 +0000 |
commit | 74e339cf16f44296ea4318c06cf8a736f1994861 (patch) | |
tree | 350de12492ff0ad0d294720243e3dbfe05648053 /src/char_sql | |
parent | aca45c0dd3ea658ad4bad00c7e0106856bde8200 (diff) | |
download | hercules-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/char_sql')
-rw-r--r-- | src/char_sql/int_party.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c index bfd0cef79..e3056f8d5 100644 --- a/src/char_sql/int_party.c +++ b/src/char_sql/int_party.c @@ -634,11 +634,10 @@ int mapif_parse_PartyAddMember(int fd, int party_id, struct party_member *member return 0;
}
// パーティー設定変更要求
-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 = inter_party_fromsql(party_id);
if(!p)
@@ -649,6 +648,7 @@ int mapif_parse_PartyChangeOption(int fd,int party_id,int account_id,int exp,int flag|=0x01;
p->party.exp=0;
}
+ p->party.item = item&0x3; //Filter out invalid values.
mapif_party_optionchanged(fd,&p->party,account_id,flag);
inter_party_tosql(p, PS_BASIC, 0);
return 0;
|