Jump to content
  • 0

[SOLVED] Remove the automatic give of align point


tmoitoi

Question

3 answers to this question

Recommended Posts

  • 0

char.cpp:

 

Search and delete:

            

if (GetRealAlignment() < 0)
	            {
	                if (IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_TIME))
	                    UpdateAlignment(120 * (dwPlayedTime / 60000));
	                else
	                    UpdateAlignment(60 * (dwPlayedTime / 60000));
	            }
	            else
	                UpdateAlignment(5 * (dwPlayedTime / 60000));

	        }
 

 

If you want when you sign King item (70050) as your degree of alignment to grow then alter the function only with this:

             

			if (GetRealAlignment() < 0)
	            {
	                if (IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_TIME))
	                    UpdateAlignment(120 * (dwPlayedTime / 60000));
	            } 
 

 

And search in char_battle.cpp and delete function:

    

if (pkAttacker->IsPC())
	    {
	        if (GetLevel() - pkAttacker->GetLevel() >= -10)
	            if (pkAttacker->GetRealAlignment() < 0)
	            {
	                if (pkAttacker->IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_KILL))
	                    pkAttacker->UpdateAlignment(14);
	                else
	                    pkAttacker->UpdateAlignment(7);
	            }
	            else
	                pkAttacker->UpdateAlignment(2);
 

I hope I understood what you said, correct me if not, this is want you want?

 

 

  • Love 2
Link to comment
Share on other sites

  • 0
18 hours ago, VegaS said:

char.cpp:

 

Search and delete:

            

if (GetRealAlignment() < 0)
	            {
	                if (IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_TIME))
	                    UpdateAlignment(120 * (dwPlayedTime / 60000));
	                else
	                    UpdateAlignment(60 * (dwPlayedTime / 60000));
	            }
	            else
	                UpdateAlignment(5 * (dwPlayedTime / 60000));

	        }

 

 

If you want when you sign King item (70050) as your degree of alignment to grow then alter the function only with this:

             

			if (GetRealAlignment() < 0)
	            {
	                if (IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_TIME))
	                    UpdateAlignment(120 * (dwPlayedTime / 60000));
	            } 

 

 

And search in char_battle.cpp and delete function:

    

if (pkAttacker->IsPC())
	    {
	        if (GetLevel() - pkAttacker->GetLevel() >= -10)
	            if (pkAttacker->GetRealAlignment() < 0)
	            {
	                if (pkAttacker->IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_KILL))
	                    pkAttacker->UpdateAlignment(14);
	                else
	                    pkAttacker->UpdateAlignment(7);
	            }
	            else
	                pkAttacker->UpdateAlignment(2);

 

I hope I understood what you said, correct me if not, this is want you want?

 

 

Yeah perfect bro, i was missing the part of char.cpp 

Thx :D

  • Love 1
 

 

Link to comment
Share on other sites

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


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