Jump to content

How To Block Change Bonus on Equipped Items


Recommended Posts

Hey. I`d like to show you how to fix the bonus changing on equipped items. It is easy to bug character`s abs to very high values, so it`s better to have this feature blocked. It is also easy to fix, so let`s start:

 

Just open char_item.cpp in your game source. Search for:

 

case USE_CHANGE_ATTRIBUTE :

 

make a new line and write:

 

if (item2->IsEquipped()){
	ChatPacket(CHAT_TYPE_INFO, "You can`t change attributes when item is equipped!");
	return false;
}

 

 

It is also possible to block changing 6-7 attributes the same way:

search for:

 

case 71052 :

LPITEM item2;

 

 

make a new line and write the same:

 

if (item2->IsEquipped()){

	    ChatPacket(CHAT_TYPE_INFO, "You can`t change attributes when item is equipped!");

	    return false;

	}

 

 

That`s all :)

Link to comment
https://metin2.dev/topic/9993-how-to-block-change-bonus-on-equipped-items/
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Premium
1 hour ago, xDeStRuCtx said:

Anyone posted it before? If not, gtfo, every bugfix is useful when you try to remove all bugs and nobody remembers about everything.

Yes, it is already posted for a year or more. Watch your language and use search :)

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.