For starters, remove this check from OnGameResponseTimeSync();
Code:
if(ZGetGame()->m_pMyCharacter->LastKeyTime + ((ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUEL || ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUELTOURNAMENT) ? 30000 : 18000) < timeGetTime())
ZApplication::GetGameInterface()->ReserveLeaveBattle();//Gun edit AFK
And find
Code:
void ZCombatInterface::OnDraw(MDrawContext* pDC)
Scroll a little until you find this,
Code:
if ( m_bShowResult) // °á°ú ȸé
return;
Now, put this after it;
Code:
if(ZGetGame() && ZGetGame()->m_pMyCharacter->LastKeyTime + ((ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUEL || ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUELTOURNAMENT) ? 30000 : 18000) < timeGetTime())
ZApplication::GetGameInterface()->ReserveLeaveBattle();//Gun edit AFK
Note; little misplaced.