|
Hey whenever i add this to WorldPacketsDecoder.java i get this error:
Eclipse says its the problem with the "Int" But when i change it to String it will give alot of errors and im not sure how to fix this..Code:else if (player.getTemporaryAttributtes().get("donate_xp_well") == Boolean.TRUE) { try { XPWell.donate(player, Integer.parseInt(value)); player.getTemporaryAttributtes().put("donate_xp_well", Boolean.FALSE); } catch (Exception e) { player.getDialogueManager().startDialogue("SimpleMessage", "Invalid format."); } }
Eclipse says that:
The method parseInt(String) in the type Integer is not applicable for the arguments (int)
Screenshot by Lightshot
No idea what your on about...
^ Yes, that would work.
@OP, replace that line with:
orCode:XPWell.donate(player, value);#parseInt(String value) or type Integer cannot parse an integer.Code:XPWell.donate(player, Integer.valueOf(value));
It wont add the gp to the well:/ I did the objecthandler part looks like this:
Code:if (object.getId() == 43096 && itemId == 995) { XPWell.give(player); XPWell.donate(player, itemId); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |