Jump to content

Recommended Posts

  • Replies 17
  • Created
  • Last Reply

Top Posters In This Topic

I did this in input_main.cpp

For me work.

 

const float fDist = DISTANCE_SQRT((ch->GetX() - pinfo->lX) / 100, (ch->GetY() - pinfo->lY) / 100);

if (((!ch->IsRiding() && fDist > 50) || fDist > 80) && OXEVENT_MAP_INDEX != ch->GetMapIndex())
{
sys_log(0, "MOVE: %s trying to move too far (dist: %.1fm) Riding(%d)", ch->GetName(), fDist, ch->IsRiding());
ch->Show(ch->GetMapIndex(), ch->GetX(), ch->GetY(), ch->GetZ());
ch->Stop();
return;
}


DWORD dwCurTime = get_dword_time();
// 시간을 Sync하고 7초 후 부터 검사한다. (20090702 이전엔 5초였음)
bool CheckSpeedHack = (!ch->GetDesc()->IsHandshaking() && dwCurTime - ch->GetDesc()->GetClientTime() > 7000);


if (CheckSpeedHack)
{
int iDelta = (int) (pinfo->dwTime - ch->GetDesc()->GetClientTime());
int iServerDelta = (int) (dwCurTime - ch->GetDesc()->GetClientTime());


iDelta = (int) (dwCurTime - pinfo->dwTime);


// 시간이 늦게간다. 일단 로그만 해둔다. 진짜 이런 사람들이 많은지 체크해야함. TODO
if (iDelta >= 30000)
{
sys_log(0, "SPEEDHACK: slow timer name %s delta %d", ch->GetName(), iDelta);
ch->GetDesc()->DelayedDisconnect(3);
}
// 1초에 20msec 빨리 가는거 까지는 이해한다.
else if (iDelta < -(iServerDelta / 50))
{
sys_log(0, "SPEEDHACK: DETECTED! %s (delta %d %d)", ch->GetName(), iDelta, iServerDelta);
ch->GetDesc()->DelayedDisconnect(3);
}
}


//
// 콤보핵 및 스피드핵 체크
//
if (pinfo->bFunc == FUNC_COMBO && g_bCheckMultiHack)
{
CheckComboHack(ch, pinfo->bArg, pinfo->dwTime, CheckSpeedHack); // 콤보 체크
}

Edited by Grudge
  • Love 1
Link to comment
Share on other sites

 

I did this in input_main.cpp

For me work.

 

const float fDist = DISTANCE_SQRT((ch->GetX() - pinfo->lX) / 100, (ch->GetY() - pinfo->lY) / 100);

if (((!ch->IsRiding() && fDist > 50) || fDist > 80) && OXEVENT_MAP_INDEX != ch->GetMapIndex())
{
sys_log(0, "MOVE: %s trying to move too far (dist: %.1fm) Riding(%d)", ch->GetName(), fDist, ch->IsRiding());
ch->Show(ch->GetMapIndex(), ch->GetX(), ch->GetY(), ch->GetZ());
ch->Stop();
return;
}


DWORD dwCurTime = get_dword_time();
// 시간을 Sync하고 7초 후 부터 검사한다. (20090702 이전엔 5초였음)
bool CheckSpeedHack = (!ch->GetDesc()->IsHandshaking() && dwCurTime - ch->GetDesc()->GetClientTime() > 7000);


if (CheckSpeedHack)
{
int iDelta = (int) (pinfo->dwTime - ch->GetDesc()->GetClientTime());
int iServerDelta = (int) (dwCurTime - ch->GetDesc()->GetClientTime());


iDelta = (int) (dwCurTime - pinfo->dwTime);


// 시간이 늦게간다. 일단 로그만 해둔다. 진짜 이런 사람들이 많은지 체크해야함. TODO
if (iDelta >= 30000)
{
sys_log(0, "SPEEDHACK: slow timer name %s delta %d", ch->GetName(), iDelta);
ch->GetDesc()->DelayedDisconnect(3);
}
// 1초에 20msec 빨리 가는거 까지는 이해한다.
else if (iDelta < -(iServerDelta / 50))
{
sys_log(0, "SPEEDHACK: DETECTED! %s (delta %d %d)", ch->GetName(), iDelta, iServerDelta);
ch->GetDesc()->DelayedDisconnect(3);
}
}


//
// 콤보핵 및 스피드핵 체크
//
if (pinfo->bFunc == FUNC_COMBO && g_bCheckMultiHack)
{
CheckComboHack(ch, pinfo->bArg, pinfo->dwTime, CheckSpeedHack); // 콤보 체크
}

 

man add me from skype please  berke.cebeci7

Link to comment
Share on other sites

  • Premium

 

1) Go to /usr/game/share/data/pc2/assassin/horse

2) Copy run.msa from assassin to /usr/game/share/data/pc2/wolfman/horse

 

3) Bug resolved.

I do not have wolfman thx for reply.

 

Omg man, replace the folder named : wolfman with the sura.

 

1) Go to /usr/game/share/data/pc2/assassin/horse

2) Copy run.msa from assassin to sura/horse

Link to comment
Share on other sites

  • Active Member

1) Go to /usr/game/share/data/pc2/assassin/horse

2) Copy run.msa from assassin to /usr/game/share/data/pc2/wolfman/horse

 

3) Bug resolved.

omg THAT HAS NOTHING to do with wolfman

Link to comment
Share on other sites

  • Premium

 

1) Go to /usr/game/share/data/pc2/assassin/horse

2) Copy run.msa from assassin to /usr/game/share/data/pc2/wolfman/horse

 

3) Bug resolved.

omg THAT HAS NOTHING to do with wolfman

 

I just gave an example.

 

1) Go to /usr/game/share/data/pc2/assassin/horse

2) Copy run.msa from assassin to sura/horse

Link to comment
Share on other sites

May 24 18:56:45 :: DISCONNECT: Berke (DESC::~DESC)
May 24 18:56:45 :: SAVE: Berke 986394x226148
May 24 18:56:45 :: QUEST clear timer 0
May 24 18:56:45 :: SYSTEM: closing socket. DESC #18
May 24 18:56:46 :: SYSTEM: new connection from [192.168.1.3] fd: 17 handshake 1566677902 output input_len 0, ptr 0x64f00800
May 24 18:56:46 :: SYSTEM: closing socket. DESC #17
May 24 18:57:08 :: SpawnMob: cannot create monster at non-exist sectree 405100 x 656600 (map 61)
May 24 18:57:36 :: GLOBAL_TIME: May 24 18:57:36 time_gap 0
May 24 18:58:08 :: SpawnMob: cannot create monster at non-exist sectree 405100 x 656600 (map 61)
May 24 18:58:36 :: GLOBAL_TIME: May 24 18:58:36 time_gap 0
May 24 18:59:08 :: SpawnMob: cannot create monster at non-exist sectree 405100 x 656600 (map 61)
May 24 18:59:36 :: GLOBAL_TIME: May 24 18:59:36 time_gap 0
 
 
fd: 17 handshake HOW TO FİX :)
Link to comment
Share on other sites

  • 5 months later...
  • 1 year later...
  • 6 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.