Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

guild ladder_point


ByLost
Go to solution Solved by TMP4,

Question

Version of Files 40k

Hi :D

 

How do I change the guild war score for this model.

 

Win: 3 point

Draw: 1 point

loss: 0 point

 

Thanksssss
^^

 

Link to post

2 answers to this question

Recommended Posts

  • 0
  • Solution
Posted (edited)

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 (see edit history)
  • Love 1
Link to post
Guest
This topic is now closed to further replies.


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