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
Alles anzeigen
And put this under it
Alles anzeigen
find this in function void CDPClient::OnDoEquip( OBJID objid, CAr & ar ) @ DPClient.cpp
and add under
this
Alles anzeigen
and then define __QUGET_SWAP_FIX in versioncommon.h @neuz and worldserver
I posted this because someone kinda posted a youtube thingy about it :O.
Find this in DPSrv.cpp @ worldserver
Quellcode
And put this under it
Quellcode
- #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
find this in function void CDPClient::OnDoEquip( OBJID objid, CAr & ar ) @ DPClient.cpp
and add under
this
Quellcode
- #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
and then define __QUGET_SWAP_FIX in versioncommon.h @neuz and worldserver