标题: 修复交换错误 [打印本页] 作者: 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 ! ]! J0 S, g6 Y; CI posted this because someone kinda posted a youtube thingy about it :O./ F$ E% a2 L- J7 k6 T5 i- o: F. c
8 R% a6 m% t: _4 |, D+ A
Find this in DPSrv.cpp @ worldserver8 H: c8 c3 K% O6 J
8 C# Z9 l3 c. B2 o' JCode:0 z7 K( M9 _8 Q9 ~
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )9 T3 b( G) F! L& W# v
{. J* C. B' ^7 V- t6 K
DWORD nId;% E" b5 I4 W( \( r4 }
int nPart; 4 x) M) T' H! [# ~2 Y- x( i" s: T. C4 q- b! T' Q& i% U
ar >> nId; & {/ `, K. E# f& k$ l2 x# R ar >> nPart; & K: m: V# A4 \1 ]# n( {+ @3 D
: Q) Z7 x3 I6 d' |1 `9 D% {1 N0 S
if( nPart >= MAX_HUMAN_PARTS ) 6 J0 }9 C4 N+ q* Z+ } return; " l5 Y- Q, v$ p/ V2 u! r ) t8 }# L2 N- O CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it ) n" W3 ]3 P, y : `4 |8 T7 m" y / b8 W2 T& c$ x5 nCode: 4 k" C- b6 Q2 ] D2 I#ifdef __QUGET_SWAP_FIX% s3 y/ ]+ w P# z! `