Jump to content
  • Create New...
  • 0

Disable character delete if character is in the guild



Hi i try this but when i enter the guild and i leave it i cant delete it until I restart the server

What is the problem?


After this in ClientManagerPlayer.cpp

		char szName[64];
		strlcpy(szName, row[2], sizeof(szName));

I add this:

		char szQuery[1024];
		snprintf(szQuery, sizeof(szQuery), "SELECT pid FROM player.guild_member WHERE pid=%u", pi->player_id);
		std::auto_ptr<SQLMsg> pMsg4(CDBManager::instance().DirectQuery(szQuery));
		if (pMsg4->Get()->uiNumRows != NULL)
			peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);


Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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.