Jump to content

Recommended Posts

Posted

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)))
      
  • Thanks 1
  • Upvote 1
Posted
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 ?

Posted

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 :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock