DPSrvr.cpp
CDPSrvr::OnFashionCombine
under
Code:
for (int i = 0; i < 8; i++) { ar >> dwItem; pItemElem[i] = pUser->m_Inventory.GetAtId(dwItem); if (!IsUsableItem(pItemElem[i])) return; }
Code:
BOOL bHack = FALSE; if (pItemElem[0]->GetProp()->dwItemKind3 != IK3_HAT || pItemElem[1]->GetProp()->dwItemKind3 != IK3_HAT) bHack = TRUE; if (pItemElem[2]->GetProp()->dwItemKind3 != IK3_CLOTH || pItemElem[3]->GetProp()->dwItemKind3 != IK3_CLOTH) bHack = TRUE; if (pItemElem[4]->GetProp()->dwItemKind3 != IK3_GLOVE || pItemElem[5]->GetProp()->dwItemKind3 != IK3_GLOVE) bHack = TRUE; if (pItemElem[6]->GetProp()->dwItemKind3 != IK3_SHOES || pItemElem[7]->GetProp()->dwItemKind3 != IK3_SHOES) bHack = TRUE; if (bHack) { Error("[CDPSrvr::OnFashionCombine] %s tried to change IK3", pUser->GetName()); if (pUser->GetWorld()) g_dpDBClient.SavePlayer(pUser, pUser->GetWorld()->GetID(), pUser->GetPos(), pUser->GetLayer()); QueryDestroyPlayer(pUser->m_Snapshot.dpidCache, pUser->m_Snapshot.dpidUser, pUser->m_dwSerial, pUser->m_idPlayer); return; }
CMover::OnMagicSkill
under
Code:
if( pSkillProp->dwID == SI_KNT_HERO_DRAWING ){
Code:
if (!pFocusObj->GetWorld() || !GetWorld()) return FALSE; if(pFocusObj->GetWorld()->GetID() != GetWorld()->GetID()) return FALSE;