标题: 修复交换错误 [打印本页] 作者: 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 E9 O% o3 \( o9 k: t5 YI posted this because someone kinda posted a youtube thingy about it :O.; q( B3 \% X7 r' U( j' B5 H
2 o6 p5 r( ^3 [3 M' g
Find this in DPSrv.cpp @ worldserver# o6 w4 N" @# Y# c+ i) }/ r
8 ^# ?1 a _7 L% O J$ d
Code: ' }+ ^* I- p+ H- Yvoid CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )' K, n7 M/ x# ~" t
{ 2 l8 f6 S z, l6 v. j- [ DWORD nId; $ F) I" y: `. n% w int nPart; - ?$ P! r3 y4 J" n ( V" ~9 V+ V; z% v ar >> nId; 6 N; ^ r: F/ c6 _/ X2 K4 @0 k ar >> nPart; % v& x5 A* T1 |) V s# C$ N! |
! L, K3 `0 a" l7 [% d; u5 _/ F if( nPart >= MAX_HUMAN_PARTS ) + w9 g# h R' _ return; * H7 E: z; J& S+ ^! h6 y & H4 I1 W1 |4 U CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it; c! K6 P0 A5 b& k5 j( N
3 d, s: p7 N4 z
6 v% ^9 W y/ l& J! e
Code:# I6 U9 S; n9 K1 ^8 u
#ifdef __QUGET_SWAP_FIX6 h& }, s+ a. n, T5 v& @! `