Jump to content

[SOLVED] Remove the automatic give of align point


Recommended Posts

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

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

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.