Jump to content

Recommended Posts

I dont post much, but I appreciate the work you all take to provide contributions

so i was motivated to make a small contribution, because no one had taken this simple change into consideration and i think it should not be modified in the client to take the name of the character

open our cmd_gm.cpp:

 

 // search:

ACMD(do_notice)
{

 // inside we replace:

	BroadcastNotice(argument);

 // for this:

#if defined(ENABLE_RENEWAL_NOTICE_NAME)
    if (!*argument)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Usage: /notice <message>");
        return;
    }

    // Create a buffer for the final message
    char final_message[512];

    // Concatenate the player name with the complete argument
    snprintf(final_message, sizeof(final_message), "[%s]: %s", ch->GetName(), argument);

    // Send the message as a global notice
    BroadcastNotice(final_message);
#else
	BroadcastNotice(argument);
#endif

its quite simple, I hope some of you will find it useful

sample:

https://metin2.download/video/lZtypeP4fgthE5370e0hTuHp4i3Blg5M/.mp4

Edited by Metin2 Dev International
Core X - External 2 Internal
  • Good 2
Link to comment
https://metin2.dev/topic/33567-small-improvement-to-the-notice-command/
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 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.