Jump to content

Align only with values >= 0


Recommended Posts

Hi. I don't wanna align with values on -, so i edit in char_battle like this:

m_iRealAlignment = MINMAX(0, m_iRealAlignment + iAmount, 200000);
if (GetRealAlignment() >= 190000)
		iAlignIndex = 0;
	else if (GetRealAlignment() >= 180000)
		iAlignIndex = 1;
	else if (GetRealAlignment() >= 170000)
		iAlignIndex = 2;
	else if (GetRealAlignment() >= 160000)
		iAlignIndex = 3;
	else if (GetRealAlignment() >= 150000)
		iAlignIndex = 4;
	else if (GetRealAlignment() >= 140000)
		iAlignIndex = 5;
	else if (GetRealAlignment() >= 150000)
		iAlignIndex = 6;
	else if (GetRealAlignment() >= 160000)
		iAlignIndex = 7;
	else
		iAlignIndex = 8;
FPartyAlignmentCompute f(0, pkKiller->GetX(), pkKiller->GetY());
pkKiller->GetParty()->ForEachOnlineMember(f);

if (f.m_iCount == 0)
pkKiller->UpdateAlignment(0);
else
{
sys_log(0, "ALIGNMENT PARTY count %d amount %d", f.m_iCount, f.m_iAmount);

f.m_iStep = 1;
pkKiller->GetParty()->ForEachOnlineMember(f);
}
}
else
pkKiller->UpdateAlignment(0);

Should it work? + How can i increase max align values. Default it's short with max 32k i want change it to int. 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.