Napster 5 Posted March 28, 2013 (edited) this code void party_reply_invite(struct map_session_data *sd,int party_id,int flag){ struct map_session_data* tsd; struct party_member member; if( sd->party_invite != party_id ) {// forged sd->party_invite = 0; sd->party_invite_account = 0; return; } tsd = map_id2sd(sd->party_invite_account); if( flag == 1 && !sd->party_creating && !sd->party_joining ) {// accepted and allowed sd->party_joining = true; party_fill_member(&member, sd, 0); intif_party_addmember(sd->party_invite, &member); } else {// rejected or failure sd->party_invite = 0; sd->party_invite_account = 0; if( tsd != NULL ) clif_party_inviteack(tsd,sd->status.name,1); }} I want check count member of party when player click reply ok ex. variable set partylimit count = 3 users player A -> send party request to player B (now player A party member = 3 online/offline) player B --> click reply party request player A (source code check party limit ) if true < 3 user (accepted and allowed) else false > 3 user (rejected or failure) thank you Edited March 28, 2013 by Napster Quote Share this post Link to post Share on other sites
0 Ind 945 Posted March 28, 2013 the party size check is made when the request is made on: int party_invite(struct map_session_data *sd,struct map_session_data *tsd) ARR_FIND(0, MAX_PARTY, i, p->party.member[i].account_id == 0); if( i == MAX_PARTY ) { clif_party_inviteack(sd, (tsd?tsd->status.name:""), 3); return 0; }you just would need to change max_party with your custom limit 1 Napster reacted to this Quote Share this post Link to post Share on other sites
0 Napster 5 Posted March 28, 2013 thank you again sir Ind Quote Share this post Link to post Share on other sites
this code
I want check count member of party when player click reply ok
ex. variable set partylimit count = 3 users
player A -> send party request to player B (now player A party member = 3 online/offline)
player B --> click reply party request player A (source code check party limit )
if true < 3 user (accepted and allowed)
else false > 3 user (rejected or failure)
thank you
Edited by NapsterShare this post
Link to post
Share on other sites