Jump to content

Recommended Posts

You can check when the chat command is handled (I guess it's in one of the input cpps) for the map index and then return beforehand. So people can't chat when they're in OX. You can also make an exception when the chat type is whispering, so people can talk privately via pm but not use the normal, guild, group or all chat^^

Edited by Alina
  • Love 2
Link to comment
https://metin2.dev/topic/7568-cdisable-chat-on-ox-event/#findComment-47444
Share on other sites

If you're using source you can do this via input_main.cpp:

Before CBanwordManager::instance().ConvertString(buf, buflen); add this code:

	if(ch->GetMapIndex() == MAP_OX_ID && (pinfo->type == CHAT_TYPE_TALKING || pinfo->type == CHAT_TYPE_PARTY || pinfo->type == CHAT_TYPE_GUILD || pinfo->type == CHAT_TYPE_GUILD))
	{
		return iExtraLen;
	}

Otherwise if you're not using the source I guess I don't know any other way

Edited by Denis
  • Love 1
Link to comment
https://metin2.dev/topic/7568-cdisable-chat-on-ox-event/#findComment-47447
Share on other sites

If you're using source you can do it by this way via input_main.cpp:

Before CBanwordManager::instance().ConvertString(buf, buflen); add this code:

	if(ch->GetMapIndex() == MAP_OX_ID && (pinfo->type == CHAT_TYPE_TALKING || pinfo->type == CHAT_TYPE_PARTY || pinfo->type == CHAT_TYPE_GUILD || pinfo->type == CHAT_TYPE_GUILD))
	{
		return iExtraLen;
	}

Otherwise if you're not using the source I guess I don't know any other way

Add to all codes CBanwordManager :: Instance (). ConvertString (buf, buflen);? there are two

Link to comment
https://metin2.dev/topic/7568-cdisable-chat-on-ox-event/#findComment-47448
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.