BlackDragonX Posted August 28, 2008 Posted August 28, 2008 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 Quote
0 BlackDragonX Posted August 29, 2008 Author Posted August 29, 2008 i want that blessed scroll for example gives +100 per enchant and so i try this Quote
0 untam3d Posted September 1, 2008 Posted September 1, 2008 Seems right to me. Normal gives 1, crystal 1000, blessed 100. Quote
Question
BlackDragonX
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.
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.