Jump to content
Existing user? Sign In

Sign In



Sign Up

SwitchItemslook command 


Mrcastiel

Recommended Posts

Haven't seen this command in a few of the new realeases so i'm just going to post it, no h8 O.-O.-
Commands.java
if (cmd[0].equalsIgnoreCase("switchitemslook")) {
    player.switchItemsLook();
    player.getPackets().sendGameMessage("You are now playing with " + (player.isOldItemsLook() ? "old" : "new") + " item looks.");
    return true;
   }
Player.java
private boolean oldItemsLook;	public boolean isOldItemsLook() {
  return oldItemsLook;
 }	 public void switchItemsLook() {
  oldItemsLook = !oldItemsLook;
  getPackets().sendItemsLook();
 }
WorldPacketsEncoder.java
public void sendItemsLook() {
  OutputStream stream = new OutputStream(2);
  stream.writePacket(player, 159);
  stream.writeByte(player.isOldItemsLook() ? 1 : 0);
  session.write(stream);
 }
 
Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 4 weeks later...
  • 3 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...