Hi I fixed the swap bug a long time ago it got tested on my server and it worked :thumbup1:
I posted this because someone kinda posted a youtube thingy about it :O.
Find this in DPSrv.cpp @ worldserver
And put this under itCode:void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
DWORD nId;
int nPart;
ar >> nId;
ar >> nPart;
if( nPart >= MAX_HUMAN_PARTS )
return;
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
find this in function void CDPClient::OnDoEquip( OBJID objid, CAr & ar ) @ DPClient.cppCode:#ifdef __QUGET_SWAP_FIX
if( pUser->GetHitPoint() > pUser->GetMaxHitPoint() )
pUser->SetHitPoint( pUser->GetMaxHitPoint());
if( pUser->GetManaPoint() > pUser->GetMaxManaPoint() )
pUser->SetManaPoint( pUser->GetMaxManaPoint() );
if( pUser->GetFatiguePoint() > pUser->GetMaxFatiguePoint() )
pUser->SetFatiguePoint( pUser->GetMaxFatiguePoint() );
#endif
and add under
thisCode:if( g_WndMng.m_pWndBeautyShop && g_WndMng.m_pWndBeautyShop->m_pModel )
{
CMover::UpdateParts( pPlayer->GetSex(), pPlayer->m_dwSkinSet, pPlayer->m_dwFace, pPlayer->m_dwHairMesh, pPlayer->m_dwHeadMesh, pPlayer->m_aEquipInfo, g_WndMng.m_pWndBeautyShop->m_pModel, &pPlayer->m_Inventory );
}
and then define __QUGET_SWAP_FIX in versioncommon.h @neuz and worldserverCode:#ifdef __QUGET_SWAP_FIX
if( pPlayer->GetHitPoint() > pPlayer->GetMaxHitPoint() )
pPlayer->SetHitPoint( pPlayer->GetMaxHitPoint());
if( pPlayer->GetManaPoint() > pPlayer->GetMaxManaPoint() )
pPlayer->SetManaPoint( pPlayer->GetMaxManaPoint() );
if( pPlayer->GetFatiguePoint() > pPlayer->GetMaxFatiguePoint() )
pPlayer->SetFatiguePoint( pPlayer->GetMaxFatiguePoint() );
#endif

