Jump to content
  • 0

[Help]Want to Know if this is right


Question

Posted

I was thinking how can i get it work to enchant different per scroll, so my only question is, is that right or what i do wrong pls tell me.

		if (scroll.getItemId() == ENCHANT_SCROLLS);
			{
			item.setEnchantLevel(item.getEnchantLevel() + 1);
			}
			if (scroll.getItemId() == CRYSTAL_SCROLLS);
			{
			item.setEnchantLevel(item.getEnchantLevel() + 1000);
			}
			if (scroll.getItemId() == BLESSED_SCROLLS);
			{
			item.setEnchantLevel(item.getEnchantLevel() + 100);
			}
			else
			{
			item.setLastChange(L2ItemInstance.MODIFIED);
			item.updateDatabase();
		}

Thanks

3 answers to this question

Recommended Posts

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