Jump to content
Existing user? Sign In

Sign In



Sign Up

[718] Floor Item Examining + Packets


'Kyle

Recommended Posts

First you'll need to declare your packets+size inside WPD:
 

    private final static int ITEM_ON_FLOOR_EXAMINE = 102;

Then add this under processPackets method:

        } else if (packetId == ITEM_ON_FLOOR_EXAMINE) {
            int y = stream.readUnsignedShort(); //CLIENT SENDS THEM BACKWARDS ON PURPOSE
            int x = stream.readUnsignedShortLE();
            int id = stream.readUnsignedShort();
            boolean forceRun = stream.readUnsigned128Byte() == 1;
            player.getPackets().sendItemMessage(0, 15263739, id, x, y, ItemExamines.getExamine(new Item(id))); // ChatboxMessage

Inside WPE:

	public void sendItemMessage(int border, int colour, int id, int x, int y, String message) {
        sendGameMessage(message);
        sendGlobalString(306, message);
        sendGlobalConfig(1699, colour); //"color" - Default; 1 - Black
        sendGlobalConfig(1700, border); //"border" - Default; 0 - White; 1 - Red; 2 - No Border
        sendGlobalConfig(1695, 1);
        sendItemInterface(new Item(id), new WorldTile(x, y, player.getPlane()), true, 746, 0, 1177);
    }
	    public void sendItemInterface(Item item, WorldTile tile, boolean noclipped, int windowId, int windowComponentId, int interfaceId) {
        int[] xteas = new int[4];
        OutputStream stream = new OutputStream(30);
        stream.writePacket(player, 36);
        stream.writeByte128(noclipped ? 1 : 0);
        stream.writeIntV2(xteas[0]);
        stream.writeIntLE((windowId << 16) | windowComponentId);
        stream.writeIntV1(xteas[1]);
        stream.writeShort(item.getId());
        stream.writeIntV1(xteas[2]);
        stream.writeInt(xteas[3]);
        stream.writeShortLE(interfaceId);
        stream.writeInt((tile.getPlane() << 28) | (tile.getX() << 14) | tile.getY());
        session.write(stream);
    }

unknown.png

Link to comment
Share on other sites

  • 1 year later...
  • 2 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...