tavi 14 Posted August 13, 2016 Share Posted August 13, 2016 Hey I have a bug on party, when somebody make a party and give him the hp bonus, when the players leave the party, the HP bonus remain active. I find on the web a solution but it make another bug.. Solution is Edit party.cpp: void CParty::ComputeRolePoint(LPCHARACTER ch, BYTE bRole, bool bAdd) { if (!bAdd) { ch->PointChange(POINT_PARTY_ATTACKER_BONUS, -ch->GetPoint(POINT_PARTY_ATTACKER_BONUS)); ch->PointChange(POINT_PARTY_TANKER_BONUS, -ch->GetPoint(POINT_PARTY_TANKER_BONUS)); ch->PointChange(POINT_PARTY_BUFFER_BONUS, -ch->GetPoint(POINT_PARTY_BUFFER_BONUS)); ch->PointChange(POINT_PARTY_SKILL_MASTER_BONUS, -ch->GetPoint(POINT_PARTY_SKILL_MASTER_BONUS)); ch->PointChange(POINT_PARTY_DEFENDER_BONUS, -ch->GetPoint(POINT_PARTY_DEFENDER_BONUS)); ch->PointChange(POINT_PARTY_HASTE_BONUS, -ch->GetPoint(POINT_PARTY_HASTE_BONUS)); ch->ComputeBattlePoints() ch->ComputePoints(); return; } I add the ch->ComputePoints(); (red color up). the new bug is on a player from party if is offline, all stats of another player up and down.. Link to comment https://metin2.dev/topic/13028-bug-party/ Share on other sites More sharing options...
tavi 14 Posted August 22, 2016 Author Share Posted August 22, 2016 uppppp Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-75163 Share on other sites More sharing options...
Nickas 55 Posted August 22, 2016 Share Posted August 22, 2016 remove ch->ComputeBattlePoints() ? Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-75168 Share on other sites More sharing options...
ahmedhaies 51 Posted August 23, 2016 Share Posted August 23, 2016 show me this function void CPartyManager::DeleteParty(LPPARTY pParty) in party.cpp Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-75231 Share on other sites More sharing options...
kodepiko 39 Posted August 24, 2016 Share Posted August 24, 2016 On 13.08.2016 at 3:02 AM, tavi said: Hey I have a bug on party, when somebody make a party and give him the hp bonus, when the players leave the party, the HP bonus remain active. I find on the web a solution but it make another bug.. Solution is Edit party.cpp: void CParty::ComputeRolePoint(LPCHARACTER ch, BYTE bRole, bool bAdd) { if (!bAdd) { ch->PointChange(POINT_PARTY_ATTACKER_BONUS, -ch->GetPoint(POINT_PARTY_ATTACKER_BONUS)); ch->PointChange(POINT_PARTY_TANKER_BONUS, -ch->GetPoint(POINT_PARTY_TANKER_BONUS)); ch->PointChange(POINT_PARTY_BUFFER_BONUS, -ch->GetPoint(POINT_PARTY_BUFFER_BONUS)); ch->PointChange(POINT_PARTY_SKILL_MASTER_BONUS, -ch->GetPoint(POINT_PARTY_SKILL_MASTER_BONUS)); ch->PointChange(POINT_PARTY_DEFENDER_BONUS, -ch->GetPoint(POINT_PARTY_DEFENDER_BONUS)); ch->PointChange(POINT_PARTY_HASTE_BONUS, -ch->GetPoint(POINT_PARTY_HASTE_BONUS)); ch->ComputeBattlePoints() ch->ComputePoints(); return; } I add the ch->ComputePoints(); (red color up). the new bug is on a player from party if is offline, all stats of another player up and down.. What I remember when leader isn't same map as party members they don't receive bonuses.. so when leader logout they of course loss profits... it's correct. Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-75318 Share on other sites More sharing options...
tavi 14 Posted August 26, 2016 Author Share Posted August 26, 2016 On 8/23/2016 at 8:30 PM, ahmedhaies said: show me this function void CPartyManager::DeleteParty(LPPARTY pParty) in party.cpp void CPartyManager::DeleteParty(LPPARTY pParty) { //TPacketGGParty p; //p.header = HEADER_GG_PARTY; //p.subheader = PARTY_SUBHEADER_GG_DESTROY; //p.pid = pParty->GetLeaderPID(); //P2P_MANAGER::instance().Send(&p, sizeof(p)); TPacketPartyDelete p; p.dwLeaderPID = pParty->GetLeaderPID(); db_clientdesc->DBPacket(HEADER_GD_PARTY_DELETE, 0, &p, sizeof(TPacketPartyDelete)); m_set_pkPCParty.erase(pParty); M2_DELETE(pParty); } void CPartyManager::SetPartyMember(DWORD dwPID, LPPARTY pParty) { TPartyMap::iterator it = m_map_pkParty.find(dwPID); if (pParty == NULL) { if (it != m_map_pkParty.end()) m_map_pkParty.erase(it); } else { if (it != m_map_pkParty.end()) { if (it->second != pParty) { it->second->Quit(dwPID); it->second = pParty; } } else m_map_pkParty.insert(TPartyMap::value_type(dwPID, pParty)); } } On 8/24/2016 at 11:12 PM, kodepiko said: What I remember when leader isn't same map as party members they don't receive bonuses.. so when leader logout they of course loss profits... it's correct. You don;t understand. When is offline, all status, hp, mp , dex etc get down, and up, in a second .. I have 12000 hp , in a second is 8000, in a second 12000 ..(etc) Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-75444 Share on other sites More sharing options...
Kingsman 9 Posted March 30, 2017 Share Posted March 30, 2017 Did you solve it? I have the same problem, same like you. Thank you, Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-86515 Share on other sites More sharing options...
Kingsman 9 Posted April 30, 2017 Share Posted April 30, 2017 UP! Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-87835 Share on other sites More sharing options...
Honorable Member Owsap 10675 Posted April 17, 2024 Honorable Member Share Posted April 17, 2024 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment https://metin2.dev/topic/13028-bug-party/#findComment-164669 Share on other sites More sharing options...
Recommended Posts
Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now