Jump to content
  • 0

[Help] Aumentation & skills


Question

3 answers to this question

Recommended Posts

  • 0
Posted

RequestRefineCancel.java

	// get the price
	int price=0;
	switch (targetItem.getItem().getItemGrade())
	{
		case L2Item.CRYSTAL_C:
			if (targetItem.getCrystalCount() < 1720)
				price = 95000;
			else if (targetItem.getCrystalCount() < 2452)
				price = 150000;
			else
				price = 210000;
			break;
		case L2Item.CRYSTAL_B:
			if (targetItem.getCrystalCount() < 1746)
				price = 240000;
			else
				price = 270000;
			break;
		case L2Item.CRYSTAL_A:
			if (targetItem.getCrystalCount() < 2160)
				price = 330000;
			else if (targetItem.getCrystalCount() < 2824)
				price = 390000;
			else
				price = 420000;
			break;
		case L2Item.CRYSTAL_S:
			price = 480000;
			break;
		// any other item type is not augmentable
		default:
			activeChar.sendPacket(new ExVariationCancelResult(0));
			return;
	}

 

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock