Jump to content
Existing user? Sign In

Sign In



Sign Up

[Elvarg] Dice bag Fully working


Sanity

Recommended Posts

Since many players asking for it, so here you go : 


ItemActionPacketListener.java : 

case #####:

			ClanChat clan = player.getCurrentClanChat();
			if (clan == null) {
				player.getPacketSender().sendMessage("You need to be in a clan to do this.");
				return;
				} else {
						player.performAnimation(new Animation(774, Priority.HIGH));
			player.getPacketSender().sendMessage("@cr2@ [@red@Dice@bla@][" + clan.getName() +"] <shad=16112652>"+player.getUsername()+"<shad=000000> has just rolled a <shad=16112652>" +Misc.getRandom(100)+ "<shad=000000>/100.");
							
		}
		break;

Dice [Clanchatname] Your user name and the rest of the message.


Looks like this : 

This is the hidden content, please


(UPloading the image soon)

Link to comment
Share on other sites

  • 2 years later...

The else statement isn't necessary here. If your clan is null, the message is sent to the player and we return out of the function so the rest of the code can never occur anyway. Good work otherwise :) 

Link to comment
Share on other sites

  • 1 year later...
  • 5 weeks later...
  • 9 months 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...