Jump to content

The RuneLocus forum has been archived and does not accept new registrations.
Click here for more information, and click here to join the community on Discord.

Right-Click Donation Option via Coins


Shadowpker
 Share

Recommended Posts

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.

Client

Find this case in ItemDef.java:

case 995:


Underneath:

itemDef.itemActions = new String[6];

Add:
 

itemDef.itemActions[3] = "Donate 500,000gp";

Source

Now 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 :love:

Link to comment
Share on other sites

  • 2 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...