Terminal 5 Posted December 28, 2020 Posted December 28, 2020 Hy there i decided to share something even is not a big deal , but i already shared on sunrise . Put the following line on requestexenchantitemattribute.class Elementals oldElement = item.getElemental(elementToAdd); int elementValue = oldElement == null ? 0 : oldElement.getValue(); int limit = getLimit(item, stoneId); int powerToAdd = getPowerToAdd(stoneId, elementValue, item); // if ((item.isWeapon() && (oldElement != null) && (oldElement.getElement() != elementToAdd) && (oldElement.getElement() != -2)) || (item.isArmor() && (item.getElemental(elementToAdd) == null) && (item.getElementals() != null) && (item.getElementals().length >= 3))) if ((item.isWeapon() && (oldElement != null) && (oldElement.getElement() != elementToAdd) && (oldElement.getElement() != -2)) || (item.isArmor() && (item.getElemental(elementToAdd) == null) && (item.getElementals() != null) && (item.getElementals().length >= 1))) 1 1 Quote Share this post Link to post Share on other sites
GsL 4 Posted December 29, 2020 Posted December 29, 2020 7 hours ago, Terminal said: Hy there i decided to share something even is not a big deal , but i already shared on sunrise . Put the following line on requestexenchantitemattribute.class Elementals oldElement = item.getElemental(elementToAdd); int elementValue = oldElement == null ? 0 : oldElement.getValue(); int limit = getLimit(item, stoneId); int powerToAdd = getPowerToAdd(stoneId, elementValue, item); // if ((item.isWeapon() && (oldElement != null) && (oldElement.getElement() != elementToAdd) && (oldElement.getElement() != -2)) || (item.isArmor() && (item.getElemental(elementToAdd) == null) && (item.getElementals() != null) && (item.getElementals().length >= 3))) if ((item.isWeapon() && (oldElement != null) && (oldElement.getElement() != elementToAdd) && (oldElement.getElement() != -2)) || (item.isArmor() && (item.getElemental(elementToAdd) == null) && (item.getElementals() != null) && (item.getElementals().length >= 1))) Lol yesterday I think about change to 1 attitude of armors ... thanks for share ..! Did u test it ? Quote Share this post Link to post Share on other sites
Nightw0lf 117 Posted December 29, 2020 Posted December 29, 2020 usually is not allowed sharing small codes, also its better sharing a diff or pastebin and say a few things what it is and how it works, thank you for sharing it tho and happy holidays :) Quote Share this post Link to post Share on other sites
Terminal 5 Posted December 29, 2020 Posted December 29, 2020 ohh i see i will be careful from now thanks for advice Nightw0lf , have fun GSL :p 1 Quote Share this post Link to post Share on other sites
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.