Jump to content

How To Block Change Bonus on Equipped Items


xDeStRuCtx

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
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.