Shadowpker Posted October 20, 2015 Share Posted October 20, 2015 Did this for my project and thought it could be a useful way for donations. It's basic but does work. Basically you can donate 500k coins and get the donator rank or anything really.ClientFind this case in ItemDef.java:case 995:Underneath:itemDef.itemActions = new String[6];Add: itemDef.itemActions[3] = "Donate 500,000gp";SourceNow open up ItemOption3.java and update/add this case: case 995: if (c.getItems().playerHasItem(995,500000)) { c.sendMessage("Thank you for donating "+c.playerName+"! You're now a donator!"); c.sendWorldMessage(c.playerName+" has just donated their coins!"); c.getItems().deleteItem(995,500000); c.playerRights = 4; } else { c.sendMessage("You don't have enough coins."); } break;Post results Link to comment Share on other sites More sharing options...
bitmask Posted January 14, 2016 Share Posted January 14, 2016 Add a warning message lol Link to comment Share on other sites More sharing options...
Recommended Posts