Jump to content

Recommended Posts

  • Active+ Member

This is my input_main.cpp:

https://pastebin.com/wyRa3gXB

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

  • Good 1
  • Love 1
Link to comment
https://metin2.dev/topic/20478-c-input_maincpp-modifications-and-review/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.