Muhtemelen lag engellemek için olan bir şey.
common/service.h:
Kod:
//Ekle
#define ENABLE_DROP_HACK_FIX // Drop hack time check
Char.cpp:
Kod:
//Arat
m_dwLastGoldDropTime = 0;
//Altına Ekle
#ifdef ENABLE_DROP_HACK_FIX
CountDrops = 0;
LastDropTime = 0;
#endif
Char.h:
Kod:
//Arat
};
ESex GET_SEX(LPCHARACTER ch);
#endif
//Üstüne Ekle
#ifdef ENABLE_DROP_HACK_FIX
protected:
int LastDropTime;
int CountDrops;
#endif
char_item.cpp:
Kod:
//Arat
GPOS pxPos = GetXYZ();
if (pkItemToDrop->AddToGround(GetMapIndex(), pxPos))
//Üstüne Ekle
#ifdef ENABLE_DROP_HACK_FIX
if (thecore_pulse() > LastDropTime + 25)
CountDrops = 0;
if (thecore_pulse() < LastDropTime + 25 && CountDrops >= 4)
{
CountDrops = 0;
sys_err("%s[%d] has been disconnected because of drophack using", GetName(), GetPlayerID());
GetDesc()->SetCloseReason("DROP_HACK");
GetDesc()->SetPhase(PHASE_CLOSE);
return false;
}
#endif