Jump to content

Recommended Posts

 Hello all.

Someone can give me some help in this code?

	if (!bFound)
	{
		TPacketGCEmpire pe;
		pe.bHeader = HEADER_GC_EMPIRE;
		pe.bEmpire = number(1, 3);
		d->Packet(&pe, sizeof(pe));
	}

I deleted the yellow empire from the client.

So here's another statement that a user who doesn't have a character just enters the Red and Blue empires.

 

pe.bEmpire = number(1, 3);

1 = Shinsoo

2 = Chunjo

3 = Jinno

 

But i only want the first and third, not the second.

Sorry for my very bad english.

Link to comment
https://metin2.dev/topic/22914-c-empire/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Honorable Member
1 hour ago, Chookez said:

 Hello all.

Someone can give me some help in this code?


	if (!bFound)
	{
		TPacketGCEmpire pe;
		pe.bHeader = HEADER_GC_EMPIRE;
		pe.bEmpire = number(1, 3);
		d->Packet(&pe, sizeof(pe));
	}

I deleted the yellow empire from the client.

So here's another statement that a user who doesn't have a character just enters the Red and Blue empires.

 

pe.bEmpire = number(1, 3);

1 = Shinsoo

2 = Chunjo

3 = Jinno

 

But i only want the first and third, not the second.

Sorry for my very bad english.

Well..

 

You can pull out the Turkish Dev from within you and write:

pe.bEmpire = number(1, 2) == 1 ? 1 : 3;

 

Edited by Syreldar
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/22914-c-empire/#findComment-124114
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.