Jump to content

Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

Petit exemple. Juste une partie c ++:

 

 

  • Metin2 Dev 70
  • Scream 1
  • Good 16
  • muscle 2
  • Love 45

 

Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/
Share on other sites

  • Honorable Member

Cool idea :D
Only the mute and the collective sending method are missing.
For example: send a message to a person instead of everyone. Also mute that person who spamming all the time or something like that.

  • Love 1
Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120135
Share on other sites

  • Honorable Member
35 minutes ago, xP3NG3Rx said:

Cool idea :D
Only the mute and the collective sending method are missing.
For example: send a message to a person instead of everyone. Also mute that person who spamming all the time or something like that.

Thank you?

I've added mute functions.

like i said, this is just the c ++ side. Many things can be done with the python side.

Quote

send a message to a person instead of everyone

An example is here for to one player:

Spoiler

ACMD(do_voice_chat)
{
	char arg1[256], arg2[256];
	two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2));

	if (!*arg1 || !*arg2) {
		ch->ChatPacket(CHAT_TYPE_INFO, "Syntax: <name> <voiceid>");
		return;
	}

	LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(arg1);

	if (!tch) {
		ch->ChatPacket(CHAT_TYPE_INFO, "%s not exist", arg1);
		return;
	}
	int idx = 0;
	str_to_number(idx, arg2);
	idx--;
	if (idx < 0 || idx >= VoiceMessage::voiceinfo.size()) {
		ch->ChatPacket(CHAT_TYPE_INFO, "idx:%d , max size:%d", idx+1,VoiceMessage::voiceinfo.size());
		return;
	}
	std::string mes = std::string(ch->GetName()) + "->[VOICE CHAT]:" + VoiceMessage::voiceinfo[idx].msg;
	tch->ChatPacket(CHAT_TYPE_COMMAND, "voicechat %s", VoiceMessage::voiceinfo[idx].dir.c_str());
	tch->ChatPacket(CHAT_TYPE_INFO, mes.c_str());
}

 

 

  • muscle 1

 

Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120140
Share on other sites

  • Honorable Member

I know that this is just the base of the system only, but there are many of users who would like to get "ready-to-eat" food if you know what I mean.
Anyway I removed all of these command-line orders like /ride or /whatever already as webzen did, I prefer to make it via packet(s).
If I'd implement this one I'd make it fit to my source how I'd like, that makes no problem to me, I already imagined a small extension on the party gui if you click on each members and/or on the board where you setup the exp distribution, possible to make it nice and user friendly.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3
  • Good 1
  • Love 1
Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120143
Share on other sites

How do I record and send audio? The other party will listen to this. Just like whatsapp.

the person will record the sound with the microphone and be sent to the other party. He's gonna listen to that voice on the other side.

Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120179
Share on other sites

On 10/11/2019 at 10:35 PM, glosteng4141 said:

How do I record and send audio? The other party will listen to this. Just like whatsapp.

the person will record the sound with the microphone and be sent to the other party. He's gonna listen to that voice on the other side.

 

  • Love 1
Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120229
Share on other sites

  • Premium
Dnia 11.10.2019 o 21:35, glosteng4141 napisał:

How do I record and send audio? The other party will listen to this. Just like whatsapp.

the person will record the sound with the microphone and be sent to the other party. He's gonna listen to that voice on the other side.

When I was in high school when teacher asked my class "how" we always answered as soon as possible . So yeah, as soon as possible 

  • Love 1
Link to comment
https://metin2.dev/topic/22086-quick-voice-chat/#findComment-120241
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.