标题: 修复交换错误 [打印本页] 作者: 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 ) }& B5 v: Y" P( E4 @& C) d8 d. {
I posted this because someone kinda posted a youtube thingy about it :O.0 X) K$ ]# |: S/ j
, K+ g* @- N" k: h7 ]
Find this in DPSrv.cpp @ worldserver- p! g8 }% A6 a: P2 \
/ x Z: Z& c: i
Code:2 |1 E( Z5 C W, P, o5 Q- o
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )3 J% L* o' C" j" b( Q: A/ a
{ / c- l- s8 i7 j' s2 o9 h1 h, ?' L! { Y DWORD nId;# P) S6 R- R8 O f/ L
int nPart;4 }' }" q7 n5 ?
" C( A8 B4 Z/ f( R# G9 g
ar >> nId; - z) o; ~* S7 t, k ar >> nPart; 9 |$ D6 s; a( I/ a! E
' j# x5 A* I1 H+ F if( nPart >= MAX_HUMAN_PARTS ) / k1 K* m: g2 t; x4 e% m
return;: \' w6 t/ ~. b6 `+ u
6 p1 ]& Z. K# N! @
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it- n, f$ O, _# V& ^3 |" N8 K: S3 b