-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add battleconf for party leave behavior #2386
base: master
Are you sure you want to change the base?
Conversation
c879dd0
to
e822f4b
Compare
imo, should move this config into conf folder although our |
src/config/classes/general.h
Outdated
* when enabled, parties will be disbanded if its leader leaves the party | ||
* uncomment to enable | ||
**/ | ||
//#define PARTY_LEADER_LEAVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better add configuration option for this
actually I'm thinking, why not just add an atcommand for it ? |
Yeah that sounds better. |
not to mention if the party manipulation script commands are planned to be added in future, it create unnecessary workaround to handling both behaviour simultaneously. beside if player want to change/switch party leader, they could just use the So, adding a configuration in |
e822f4b
to
d26501a
Compare
I changed it to a battleconf option. I don't really understand it all. Let me know what you think. |
2398803
to
6c1caa1
Compare
6c1caa1
to
5ebb157
Compare
5ebb157
to
c5e0f8d
Compare
for (j = 0; j < MAX_PARTY; j++) { | ||
if (!p->party.member[j].account_id) | ||
continue; | ||
mapif->party_withdraw(party_id, p->party.member[j].account_id, p->party.member[j].char_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if the party member is offline ?
isn't that ... this configuration should just disband the party ?
you still kick them one by one though ... and expect them all to be online ...
tested
this modification doesn't check offline party members
if I have member A leave party while member B is offline, it shows a message for disband the party
but in-fact, the party leader pass to member B
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats why i said i dont understand it completely. need help. can you take over PR?
Pull Request Prelude
Changes Proposed
Note: Was unsure of the best way to go about this.
Some time ago the behavior was changed for when a party leader leaves the party. I feel a config option should have been added to retain the old behavior.
Old: Disband the party.
Current: Pass the party leader to another player.
New: Uncomment
#define PARTY_LEADER_LEAVE
insrc/config/classes/general.h
Perhaps others can input on a better way to implement a config option.
Issues addressed:
N/A