This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
SQL Developer
Hey i am try to add a code on eclipse but i fail on it because i can find the correct line number,can someone help me to learn about line numbers?
for example the code who i want pass tells:
The line @@ -843,4 +844,57 @@ .. what means? which line is it?
@@ -843,4 +844,57 @@ } + public L2ItemInstance[] getWeaponsList() + { + FastList<L2ItemInstance> list = FastList.newInstance(); + for (L2ItemInstance item : _items) + { + if ((item != null) && (item.isEnchantable()) && item.isWeapon()) + { + int enchantLevel = Config.weaponEnchantLevel; + if (Config.modifyItemEnchant) + { + if (Config.modifyItemEnchantList.containsKey(item.getItemId())) + { + enchantLevel = Config.modifyItemEnchantList.get(item.getItemId()); + } + } + + if(item.getEnchantLevel() < enchantLevel) + list.add(item); + } + } + + L2ItemInstance[] result = list.toArray(new L2ItemInstance[list.size()]); + FastList.recycle(list); + return result; + } + + public L2ItemInstance[] getArmorsList() + { + FastList<L2ItemInstance> list = FastList.newInstance(); + for (L2ItemInstance item : _items) + { + if ((item != null) && (item.isEnchantable()) && item.isArmor()) + { + int enchantLevel = Config.armorEnchantLevel; + if (Config.modifyItemEnchant) + { + if (Config.modifyItemEnchantList.containsKey(item.getItemId())) + { + enchantLevel = Config.modifyItemEnchantList.get(item.getItemId()); + } + } + + if(item.getEnchantLevel() < enchantLevel) + { + list.add(item); + } + } + } + + L2ItemInstance[] result = list.toArray(new L2ItemInstance[list.size()]); + FastList.recycle(list); + return result; + } }0 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