Jump to content

guild ladder_point


Go to solution Solved by TMP4,

Recommended Posts

  • Contributor
  • Solution

Hi, actully it is a good idea!

 

db/GuildManager.cpp

void CGuildManager::ProcessDraw(DWORD dwGuildID1, DWORD dwGuildID2)
{
	sys_log(0, "GuildWar: \tThe war between %d and %d is ended in draw", dwGuildID1, dwGuildID2);

	GuildWarDraw(dwGuildID1);
	GuildWarDraw(dwGuildID2);
	ChangeLadderPoint(dwGuildID1, 1); //edited 0 to 1
	ChangeLadderPoint(dwGuildID2, 1); //edited 0 to 1

	QueryRanking();
}

void CGuildManager::ProcessWinLose(DWORD dwGuildWinner, DWORD dwGuildLoser)
{
	GuildWarWin(dwGuildWinner);
	GuildWarLose(dwGuildLoser);
	sys_log(0, "GuildWar: \tWinner : %d Loser : %d", dwGuildWinner, dwGuildLoser);

	//Commented these because we set the score manually to 3 or 0 under
	// int iPoint = GetLadderPoint(dwGuildLoser);
	// int gain = (int)(iPoint * 0.05);
	// int loss = (int)(iPoint * 0.07);

	// if (IsHalfWinLadderPoint(dwGuildWinner, dwGuildLoser))
		// gain /= 2;

	// sys_log(0, "GuildWar: \tgain : %d loss : %d", gain, loss);

	ChangeLadderPoint(dwGuildWinner, 3); //edited
	ChangeLadderPoint(dwGuildLoser, 0); //edited

	QueryRanking();
}

Maybe i would change the loss to 1 point and draw to 2, then people would do wars any way, at least they get a point.

 

Also in game/guild.h i would change the minimum member from 8 to 4 at least.

GUILD_WAR_MIN_MEMBER_COUNT = 8, 

 

Edited by TMP4
  • Love 1
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

Announcements



×
×
  • 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.