Jump to content
Maintenance : Final step ×

1 Empire - Please Help


Go to solution Solved by Punszz,

Recommended Posts

I would like to make a single kingdom from the source, not from the client, but to be able to change 2 or even 3 kingdoms in the meantime. If it is changed only from selectempirewindow.py, anyone with another client can choose another kingdom. I`m Newbye in C++ and Py. i need a explicit tut from some1 who have time. 
Happy new Year ! 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Posted (edited)

Make sure they can't use another client, try add client version on auth phase!

// Under:
	const TPacketCGEmpire* p = reinterpret_cast<const TPacketCGEmpire*>(c_pData);

// Input_login.cpp
// Add
	if (p->bEmpire != 1)
	{
		d->SetPhase(PHASE_CLOSE);
		return;
	}
 
// Replace 1 in if statement with the empire index you want to keep.

 

Edited by Punszz
Link to comment
Share on other sites

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.