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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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