RynShirayuki 1 Posted June 29, 2020 Report Share Posted June 29, 2020 public static boolean convertItems(Player player, Item item) { if (item.getDefinitions().containsOption("Convert")) { for (int i = 45405; i < Utils.getItemDefinitionsSize(); i++) { if (ItemDefinitions.getItemDefinitions(i).getName().equalsIgnoreCase(item.getName())) { item.setId(i); player.getInventory().refresh(); player.getPackets().sendGameMessage("You have converted your " + item.getName().toLowerCase() + " to a useable form."); break; } } return true; } return false; } Link to comment Share on other sites More sharing options...
Reeses 0 Posted March 5, 2022 Report Share Posted March 5, 2022 Nice! Thank you Link to comment Share on other sites More sharing options...
Wawwen 0 Posted March 9, 2022 Report Share Posted March 9, 2022 oo wow Link to comment Share on other sites More sharing options...
bigtough123 0 Posted March 12, 2022 Report Share Posted March 12, 2022 thx really good Link to comment Share on other sites More sharing options...
QueenEmsy 0 Posted April 13, 2022 Report Share Posted April 13, 2022 really good stuff here ^>^ Link to comment Share on other sites More sharing options...
promahmoud 0 Posted April 28, 2022 Report Share Posted April 28, 2022 Nice thanks a lot Link to comment Share on other sites More sharing options...
hanzonice 97 Posted May 9, 2022 Report Share Posted May 9, 2022 useful thing Link to comment Share on other sites More sharing options...
Kirsten 0 Posted May 28, 2022 Report Share Posted May 28, 2022 thankyou Link to comment Share on other sites More sharing options...
corekilla 0 Posted May 28, 2022 Report Share Posted May 28, 2022 Thanks for this Link to comment Share on other sites More sharing options...
test710 0 Posted June 3, 2022 Report Share Posted June 3, 2022 needed that, will use it for sure Link to comment Share on other sites More sharing options...
oakmills 1 Posted March 8, 2023 Report Share Posted March 8, 2023 Appreciate you 1 Link to comment Share on other sites More sharing options...
Shirayuki 1 Posted April 29, 2023 Report Share Posted April 29, 2023 I'm still surprised that people browse this section to find this. I might have to post some more snippets soon. Link to comment Share on other sites More sharing options...
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