GS Version: 1.00.18
I need some ideas to fix a problem with party gap level that is 130 levels.
What I've fixed:
- When the level of the player who gives party is 130 lvls bigger than who recieves returns an error;
- When the level of the player who request party is 130 lvls lower than who gives returns an error;
Now the main problem: when there's already a party and a third (or fourth, it has to be more than 2) player is invited to join. All that I can do is compare the party leader level with the third player level, if the difference is bigger than 130, returns the error, but if it's lower than this the player can join the party. And what's the matter with this?
For example:
Player 1 Level: 170;
Player 2 Level: 180;
Player 3 Level: 90;
Player 1 (Leader) and Player 2 are in a party and Player 1 invite Player 3 to enter, he'll join normally, but only Player 1 and 2 will get experience. Why?
Player 1 Level (-) Player 3 Level = 75;
Player 2 Level (-) Player 3 Level = 90;
Total = 165 that is bigger than 130 (Max party gap)
What I tought to fix this: a way to get Party Total level and divide by Party Total Players;
But how can I do this? I checked everything related to party on decompiled sources by deathway and some other source codes to see if i could get any startpoint, without success. Any help would be great.
Thanks in advance!

