Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Align only with values >= 0


avertuss

Question

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

  • 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
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    2. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    3. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    4. 0

      Some mobs dont drop items

    5. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    6. 691

      [Group] Daily Music - Share your favorite!

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.