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
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
0 untam3d Posted September 1, 2008 Posted September 1, 2008 Seems right to me. Normal gives 1, crystal 1000, blessed 100.
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.
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now