标题: 修复交换错误 [打印本页] 作者: admin 时间: 2016-1-10 03:43 标题: 修复交换错误 Hi I fixed the swap bug a long time ago it got tested on my server and it worked 2 Y& C$ V9 i0 }5 x$ J$ H
I posted this because someone kinda posted a youtube thingy about it :O.! V$ v4 w! Z$ B* f. O
% K) O/ \! j2 j, I. A6 O, ~$ O
Find this in DPSrv.cpp @ worldserver % A/ a6 U+ @, [8 D 0 g3 z: M% T' j8 PCode: : j9 r* S' J: A. Z) tvoid CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize ) 2 _' a+ I O0 R0 g X{ 4 I- _/ k. o' N& v; `, b, R% \8 | DWORD nId;, i: {' W* f+ l, d
int nPart; ) R' L) M1 n+ `2 g$ I . x4 |3 D; ?8 @" _* f5 f ar >> nId; : s4 z2 t* Q' }$ A ar >> nPart; : ]* N, L4 b$ w4 l- U
& ]! ^' b/ l" ?9 w7 _
if( nPart >= MAX_HUMAN_PARTS ) . `9 c1 l1 s. M$ e7 C4 K1 }' r
return;( b2 O5 ]8 w# M" m8 l
+ F* `: V' G3 O }. H
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it + \) Q0 \- r5 B6 R: v# D/ w# ]! F6 ]( M4 x6 R. |
' c( `/ I& {3 R9 A3 v
Code: 3 J" U7 ~; x8 d, i#ifdef __QUGET_SWAP_FIX, `7 s7 ]7 {3 o