This is my input_main.cpp:
[Hidden Content]
As you may notice I have added this if statement a lot:
if (ch->m_pkTimedEvent)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("취소 되었습니다."));
event_cancel(&ch->m_pkTimedEvent);
}
So far it works good but since I'm not too familliar with the project's source I'm posting it here to get some feedback and reviews if possible. The idea is to cancel logout every time the character does something for bugs and marketing reasons.
Cancels I haven't manage to do yet:
On hit (space press)
On button click from right click menu
On NPC click
I haven't manage to send this to all Group members if group is deleted, as well as the second member of the group if the group has only 2 members
Think about anything I left out of the list
I appreciate any feedback and review.
Best regards