标题: 修复交换错误 [打印本页] 作者: 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 ( v3 a0 A! x) L! p0 o( T3 g
I posted this because someone kinda posted a youtube thingy about it :O. ; |% y, f8 ^3 Y7 m' Q" h/ ^0 o* v" l. |
Find this in DPSrv.cpp @ worldserver" v1 l1 n2 z8 p H6 p [' C) N$ m
& d% x4 V# g' QCode: 2 R7 {; ~0 P# v! Kvoid CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )* m* G8 g+ t+ r2 w3 C
{' a, q Y: D! K3 d$ @
DWORD nId; : ` y4 I0 d2 g2 {# p# P; _0 e: U( A int nPart; 8 W# s$ H1 X: _% c/ o$ ?. A5 F) E* @
ar >> nId;' v% N0 h7 N' f1 P
ar >> nPart; + Q% l: z' k! q$ K& R5 x w, ]
% ^8 c' ?$ ^5 b4 n" V
if( nPart >= MAX_HUMAN_PARTS ) ; ?1 o5 V" J# l
return;! q$ e& I4 L0 h0 _0 Z8 J6 U, ]
5 g/ ^5 l9 c, Z; H! f2 N0 }( r
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );And put this under it; A, j2 |9 ~3 g+ B+ Q