标题: 修复交换错误 [打印本页] 作者: 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 * Y2 W7 Y3 u( O3 E3 OI posted this because someone kinda posted a youtube thingy about it :O. 6 m5 ~! U9 ]. k$ }: b; t% D, ^# A3 _% V+ }4 G5 g
Find this in DPSrv.cpp @ worldserver: ?8 n/ \8 I! W. p3 y/ R. i, |
- t7 B: `$ @8 @5 N5 r4 M
Code:1 Y- ]2 L7 R! M
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize ) * R5 m* t; ^# c, P{ , N2 B+ e/ l" p% }( H/ I DWORD nId;, l& c6 F/ J: C$ [$ Z7 b& u% ?
int nPart;- _4 x" _, O- M9 n+ p8 t
& ]6 {0 c; F0 y [1 [7 G2 b' [% K ar >> nId; $ G; a( r. H! P7 { ar >> nPart; , x" c% V0 B; J
. T' n, S5 i6 d$ B. B( ~
if( nPart >= MAX_HUMAN_PARTS ) 5 n2 r& r, A4 s# W2 H+ |, A0 m return; % b, T/ B# p$ I* P: T) J; T1 o; q( t! }! w* L0 k2 `6 |/ `
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it ) ?- l0 |5 J$ ~1 T! b9 i2 v% o8 E1 L ~: d+ ^, j1 l: U