标题: 修复交换错误 [打印本页] 作者: 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 : Z0 K) j. g2 F1 fI posted this because someone kinda posted a youtube thingy about it :O. ! M; p3 X8 r9 M + S5 S6 v9 Z, BFind this in DPSrv.cpp @ worldserver0 l+ Y: F& G! h% A
0 Q/ c, s2 z }' r! @Code:" V0 x# r# M- t
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )$ Y O; S7 I0 R5 Q2 P
{5 ^/ f) V& X' ?% M4 K+ v, J% A
DWORD nId;* _: [; `+ |2 x! O: i/ q
int nPart; / | X* F- y$ P/ B2 ]- G' S5 f1 s% s9 V
ar >> nId;5 S, R# i4 Q# i# `1 N
ar >> nPart; * b7 b* v9 z0 \/ p' u
' R) ?8 n( s _$ T3 E2 F
if( nPart >= MAX_HUMAN_PARTS ) + K* r7 _: j8 i0 ]
return;5 z) @4 f c/ A; X. y
: i' X9 q6 G9 n! {2 N) @
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it ; w$ o3 K3 y, O9 p' f$ I* p$ x- U! Y' t/ Q9 [