标题: 修复交换错误 [打印本页] 作者: 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 _) F ?9 a- jI posted this because someone kinda posted a youtube thingy about it :O.9 ~' P/ l) I$ {8 j7 x
8 X c9 }& I" r6 \
Find this in DPSrv.cpp @ worldserver " {+ W2 Z% y$ a- }! D2 X. B9 o B1 W
Code:" w8 K/ D; e2 w. D/ l1 ?4 w
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize ) 4 W9 X/ A0 Q) ]+ \' ~{ . P* b9 o! h+ N1 D9 b a( L+ Z DWORD nId;( R7 ~% A, u! K! G1 `
int nPart; & m c4 D+ v, J0 T0 S/ n) I1 ], `& i1 o' T' E
ar >> nId; 6 u% }6 w! i* x) i3 ~2 G ar >> nPart; $ b' b- }* {- G$ B6 h
! Q: n; B7 I8 y4 R) @* I$ e' p; Y
if( nPart >= MAX_HUMAN_PARTS ) / t2 M9 X5 C) k return; 9 B# e; t( x8 T' y J0 J # ^. a% r3 q) O1 I5 W& {% q CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it' c: n- n% O! z2 M! H) ]' M+ x3 [
. @6 G# j6 L! k; v' j7 o5 C