Jump to content

Help whit Sash System / and another Question


Recommended Posts

  • Contributor

There are multiple sash system, here's one for example: https://metin2.download/get/1r0L264uH9r0HR94kRSGzwtwsg45wzoX/

in char.cpp

	else if ((bPos == 1) && (m_bSashAbsorption))
	{
		if ((pkItem->GetType() != ITEM_WEAPON) && (pkItem->GetType() != ITEM_ARMOR))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can absorb just the bonuses from armors and weapons."));
			return;
		}
		else if ((pkItem->GetType() == ITEM_ARMOR) && (pkItem->GetSubType() != ARMOR_BODY))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can absorb just the bonuses from armors and weapons."));
			return;
		}
	}

You can modify it to

	else if ((bPos == 1) && (m_bSashAbsorption) && (pkItem->GetType() != ITEM_WEAPON))
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can absorb just the bonuses from weapons."));
		return;
	}

To your other question about Magic Stone, your question does not reveal whether the character has a limit of 75 or the item. 
Anyway it is as easy as the sash question. What I suggest to you is to learn some basic programming. You can't be a metin2 developer if you don't know the basics of programming.

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