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;
	}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...