Jump to content

Fix Equip Unique Items from Same Giftbox


Endymion

Recommended Posts

  • Bronze

If we have giftbox from which we can get unique items (ex. Crescent Moon Ring and Thief Glove) we can't equip them both because they have same special group.

bool CItem::IsSameSpecialGroup(const LPITEM item) const
{
	if (this->GetVnum() == item->GetVnum())
		return true;

	if (GetSpecialGroup() && (item->GetSpecialGroup() == GetSpecialGroup()))
		return true;

	return false;
}

into

bool CItem::IsSameSpecialGroup(const LPITEM item) const
{
	if (this->GetVnum() == item->GetVnum())
		return true;

	if (GetSpecialGroup() && (item->GetSpecialGroup() == GetSpecialGroup())){
		TItemTable * p = ITEM_MANAGER::instance().GetTable(GetSpecialGroup());
		if (!p)
			return true;

		if (p->bType != ITEM_GIFTBOX)
			return true;
	}

	return false;
}

 

  • Love 2
Link to comment
Share on other sites

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.