Jump to content
Existing user? Sign In

Sign In



Sign Up

[OSRSPK/Elvarg] Platinum Token exchanging


Sanity

Recommended Posts

Very simple to do, kind of nice to have an additional currency that many stakers should be familiar with being introduced into the economy.

Modify to your needs.

Anyways. Add this into your Items.json file.

	{
	  "id": 13204,
	  "name": "Platinum Tokens",
	  "examine": "Shiny currency, could be useful to some.",
	  "value": 1000,
	  "stackable": true,
	  "noted": false,
	  "noteId": -1,
	  "tradeable": true,
	  "sellable": false,
	  "dropable": true
	},

In your UseItemPacketListener class, itemOnObject method

		if (itemId == 995 && gameObject.getDefinition().getName().contains("Bank")) {
			final int size = player.getInventory().getAmount(995);
			player.getInventory().delete(new Item(995, size));
			player.getInventory().add(new Item(13204, size / 2));
			player.getPacketSender().sendMessage("You exchange " + Misc.format(size) + " Coins for " + Misc.format(player.getInventory().getAmount(13204)) + " Platinum tokens.");
		}

USrHynk.png

Link to comment
Share on other sites

  • 4 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact

[email protected]

astra.security

What is a RSPS?

A RSPS, also known as RuneScape private server, is an online game based on RuneScape, and controlled by independent individuals.

Popular RSPS Servers

Runewild Ikov RedemptionRSPS

Disclaimer

Runesuite is not affiliated with runescape, jagex in any way & exists solely for educational purposes.

×
×
  • Create New...