确定的家伙,因为我已经没有任何关系,我将释放如何阻止每次崩溃/欺骗数据包,并保存的ID /绰号的家伙试图您的服务器崩溃。 ; v" F! i* c5 |3 G6 o$ k
* G( {' [& c1 m( z Z/ [首先,你需要有VS.NET2003 Service Pack 1安装和飞飞来源。
' H2 a+ Z1 i) H% v+ X
1 w3 M4 f9 t& |; W为了阻止这些数据包,您需要打开位于worldserver文件夹的DPServer.cpp。 . c6 @8 I6 S+ j4 W
9 O$ |+ t( A+ G3 d9 u; P, w: `Equipament崩溃: ; B* }' d8 A6 _0 H5 B7 e0 d
扰流板: 8 m7 F5 J4 ~, w
7 c9 X2 w" X0 [1 w) ?搜索: 7 R" Y* l3 o1 T3 J% J2 h& t* c$ h0 B
Code: ar>> dwData >> objid >> nPart; if(nPart >= MAX_HUMAN_PARTS ) return; 后添加: Code: CUser*pUser = g_UserMng.GetUser( dpidCache, dpidUser ); //Crashpacket if( nPart > 30 || dwData < 0 || nPart < -1) { Error("CDPSrvr::OnDoUseItem : Crash Try -> [Player ID: %07d], [Player Name:%s], [Packet used: %d,%d,%d]", pUser->m_idPlayer,pUser->GetName(), dwData, objid, nPart ); return; } 和评论的第一 Code: CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser ); 你看到在我的代码。
( O" |- u( V+ S- Y8 b5 @7 B
7 p" j8 ?/ H: Q7 f. ~" [; {0 S: r' _6 {# x$ b! W* |% Q' K
购买崩溃: : ]/ D) {$ T" z e8 r3 s
扰流板:
; ? x9 y% M, `- J2 d% b3 P
& q0 }' ^) r1 G5 o. hYOU NEED TO DO IT TWICE, ONE FOR NORMAL BUYSAND ANOTHER FOR RED CHIPS BUYS (你需要做两次,正常购买和红筹股另一个人购买) & s# S! b1 ^) V0 z8 n: P7 a
寻找 Code: ar>> cTab >> nId >> nNum >> dwItemId; if(cTab >= MAX_VENDOR_INVENTORY_TAB || nNum < 1 ) return; 然后添加 Code: CUser*pUser = g_UserMng.GetUser( dpidCache,dpidUser ); //CRASH if(cTab < 0 || nId < 0 || nNum > 9999 || dwItemId < 0 ) { Error("CDPSrvr::OnBuyItem : Crash Try -> [Player ID: %07d], [Player Name:%s], [Packet used: %d,%d,%d,%d]", pUser->m_idPlayer,pUser->GetName(), cTab, nId, nNum, dwItemId ); return; } 和评论的第一 Code: CUser* pUser = g_UserMng.GetUser( dpidCache,dpidUser ); 你看到在我的代码。
: t" w% K' x5 h& I
* [' p) O0 J& m# p0 e i& G7 R+ |8 Z7 J- }, Y4 ~) p
掌上崩溃:
" ]& J- W8 i! h; i# G扰流板: 8 } z' @& f5 b7 X2 `/ E
: [7 y9 I1 C5 g @) R% \搜索: Code: ar>> nPocket1 >> nItem >> nNum >> nPocket2; if(nPocket1 == nPocket2 ) return; 然后添加 Code: //DUPECODE if(nNum <= 0 ) { Error("CDPSrvr::OnMoveItemOnPocket : Dupe Try -> [Player ID: %07d], [PlayerName: %s], [Packet used: %d,%d,%d,%d]", pUser->m_idPlayer,pUser->GetName(), nPocket1, nItem, nNum, nPocket2 ); return; } //CRASH if(nItem < 0 || nPocket2 > 2 || nPocket1 < -1 || nPocket1 > 52 ) { Error("CDPSrvr::OnMoveItemOnPocket : Crash Try -> [Player ID: %07d], [PlayerName: %s], [Packet used: %d,%d,%d,%d]", pUser->m_idPlayer,pUser->GetName(), nPocket1, nItem, nNum, nPocket2 ); return; }
, a W+ h8 f% D Z H+ U' C" P& Y0 X( g+ C* B& L4 `
对不起英文错误,因为我brazillian。
9 y: {" f4 {2 s) a+ z( Y& J! m3 R; Akkthxbye。
3 y) ~: R1 U6 h' e
' j, D; p* _1 _/ Z 3 o" R' E2 i2 \4 C" u2 O7 k/ h' j9 O
|