Jump to content
Existing user? Sign In

Sign In



Sign Up
Search In
  • More options...
Find results that contain...
Find results in...

Data Dump Archive


Recommended Posts

2 minutes ago, GodJesseJames said:

I am going to be releasing all data dumps from 163+ here its just the data no pictures.


Because of people messaging me on discord asking about why the data is not working. you need to update the read vaules. heres the link to them. 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.

 

This is what the package's will look like.

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.

 

163: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


164: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


165:  

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


166: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


167: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


168: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


169: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


170: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


171: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


177-2: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


180: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


189: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


190: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


July 16 2020 190: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


192: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


193: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


196:

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.

 (its missing animation files)
198:

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


198-2: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.

has animations
204: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


206: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


207: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


207 Raids 3: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


208.3: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


208.4: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


209: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


212: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


213: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


2023-05-17-rev213: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


Bounty Hunter 213: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


2023-06-07-rev214: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.


 

 

Updated opcodes:

Items:

    public void decode(Buffer buffer) {
        while (true) {
            int opcode = buffer.readUByte();
            if (opcode == 0)
                return;
            if (opcode == 1)
                inventory_model = buffer.readUShort();
            else if (opcode == 2)
                name = buffer.readString();
            else if (opcode == 3)
                description = buffer.readString();
            else if (opcode == 4)
                model_zoom = buffer.readUShort();
            else if (opcode == 5)
                rotation_y = buffer.readUShort();
            else if (opcode == 6)
                rotation_x = buffer.readUShort();
            else if (opcode == 7) {
                translate_x = buffer.readUShort();
                if (translate_x > 32767)
                    translate_x -= 0x10000;
            } else if (opcode == 8) {
                translate_y = buffer.readUShort();
                if (translate_y > 32767)
                    translate_y -= 0x10000;
            } else if (opcode == 9){
                buffer.readString();
            } else if (opcode == 11)
                stackable = true;
            else if (opcode == 12)
                cost = buffer.readInt();
            else if(opcode == 13)
                this.field2142 = buffer.readSignedByte();
            else if(opcode == 14)
                this.field2157 = buffer.readSignedByte();
            else if (opcode == 16)
                membership_required = true;
            else if (opcode == 23) {
                male_equip_main = buffer.readUShort();
                male_equip_translate_y = buffer.readSignedByte();
            } else if (opcode == 24)
                male_equip_attachment = buffer.readUShort();
            else if (opcode == 25) {
                female_equip_main = buffer.readUShort();
                female_equip_translate_y = buffer.readSignedByte();
            } else if (opcode == 26)
                female_equip_attachment = buffer.readUShort();
            else if(opcode == 27)
                this.field2158 = buffer.readSignedByte();
            else if (opcode >= 30 && opcode < 35) {
                if (scene_actions == null)
                    scene_actions = new String[5];

                scene_actions[opcode - 30] = buffer.readString();
                if (scene_actions[opcode - 30].equalsIgnoreCase("hidden"))
                    scene_actions[opcode - 30] = null;

            } else if (opcode >= 35 && opcode < 40) {
                if (widget_actions == null)
                    widget_actions = new String[5];

                widget_actions[opcode - 35] = buffer.readString();

            } else if (opcode == 40) {
                int length = buffer.readUByte();
                //if models aren't recoloring properly, typically switch the position of src with dst
                color_to_replace = new int[length];
                color_to_replace_with = new int[length];
                for (int index = 0; index < length; index++) {
                    color_to_replace[index] = buffer.readUShort();
                    color_to_replace_with[index] = buffer.readUShort();
                }
            } else if (opcode == 41) {
                int length = buffer.readUByte();
                src_texture = new short[length];
                dst_texture = new short[length];
                for (int index = 0; index < length; index++) {
                    src_texture[index] = (short) buffer.readUShort();
                    dst_texture[index] = (short) buffer.readUShort();
                }
            } else if (opcode == 42) {
                buffer.readUByte();//shift_menu_index
            } else if (opcode == 65) {
                searchable = true;
            } else if (opcode == 75){
                this.field2182 = buffer.readSignedShort();
            } else if (opcode == 78)
                male_equip_emblem = buffer.readUShort();
            else if (opcode == 79)
                female_equip_emblem = buffer.readUShort();
            else if (opcode == 90)
                male_dialogue_head = buffer.readUShort();
            else if (opcode == 91)
                female_dialogue_head = buffer.readUShort();
            else if (opcode == 92)
                male_dialogue_headgear = buffer.readUShort();
            else if (opcode == 93)
                female_dialogue_headgear = buffer.readUShort();
            else if(opcode == 94)
                buffer.readUShort();
            else if (opcode == 95)
                rotation_z = buffer.readUShort();
            else if (opcode == 97)
                unnoted_item_id = buffer.readUShort();
            else if (opcode == 98)
                noted_item_id = buffer.readUShort();
            else if (opcode >= 100 && opcode < 110) {
                if (stack_variant_id == null) {
                    stack_variant_id = new int[10];
                    stack_variant_size = new int[10];
                }
                stack_variant_id[opcode - 100] = buffer.readUShort();
                stack_variant_size[opcode - 100] = buffer.readUShort();
            } else if (opcode == 110)
                model_scale_x = buffer.readUShort();
            else if (opcode == 111)
                model_scale_y = buffer.readUShort();
            else if (opcode == 112)
                model_scale_z = buffer.readUShort();
            else if (opcode == 113)
                ambient = buffer.readSignedByte();
            else if (opcode == 114)
                contrast = buffer.readSignedByte(); //We had this as * 5 but runelite has it without * 5.
            else if (opcode == 115)
                team_id = buffer.readUByte();
            else if (opcode == 139)
                unnotedId = buffer.readUShort();
            else if (opcode == 140)
                notedId = buffer.readUShort();
            else if (opcode == 148)
                buffer.readUShort(); // placeholder id
            else if (opcode == 149) {
                buffer.readUShort(); // placeholder template
            }
        }
    }

Npcs:

    public void decode(Buffer buffer) {
        while (true) {
            int opcode = buffer.readUByte();
            if (opcode == 0) {
                return;
            } else if (opcode == 1) {
                int len = buffer.readUByte();
                model_id = new int[len];
                for (int i = 0; i < len; i++) {
                    model_id[i] = buffer.readUShort();
                }
            } else if (opcode == 2) {
                name = buffer.readString();
            } else if (opcode == 12) {
                occupied_tiles = buffer.readUByte();
            } else if (opcode == 13) {
                standingAnimation = buffer.readUShort();
            } else if (opcode == 14) {
                walkingAnimation = buffer.readUShort();
            } else if (opcode == 15) {
                buffer.readUShort(); //rotate left anim
            } else if (opcode == 16) {
                buffer.readUShort(); //rotate right anim
            } else if (opcode == 17) {
                walkingAnimation = buffer.readUShort();
                halfTurnAnimation = buffer.readUShort();
                quarterClockwiseTurnAnimation = buffer.readUShort();
                quarterAnticlockwiseTurnAnimation = buffer.readUShort();
                if (halfTurnAnimation == 65535) {
                    halfTurnAnimation = walkingAnimation;
                }
                if (quarterClockwiseTurnAnimation == 65535) {
                    quarterClockwiseTurnAnimation = walkingAnimation;
                }
                if (quarterAnticlockwiseTurnAnimation == 65535) {
                    quarterAnticlockwiseTurnAnimation = walkingAnimation;
                }
            } else if (opcode == 18){
                buffer.readUShort();
            } else if (opcode >= 30 && opcode < 35) {
                if (actions == null) {
                    actions = new String[5];
                }

                actions[opcode - 30] = buffer.readString();

                if (actions[opcode - 30].equalsIgnoreCase("Hidden")) {
                    actions[opcode - 30] = null;
                }
            } else if (opcode == 40) {
                int len = buffer.readUByte();
                src_color = new int[len];
                dst_color = new int[len];
                for (int i = 0; i < len; i++) {
                    src_color[i] = buffer.readUShort();
                    dst_color[i] = buffer.readUShort();
                }

            } else if (opcode == 41) {
                int length = buffer.readUByte();
                src_texture = new short[length];
                dst_texture = new short[length];
                for (int index = 0; index < length; index++) {
                    src_texture[index] = (short) buffer.readUShort();
                    dst_texture[index] = (short) buffer.readUShort();
                }
            } else if (opcode == 60) {
                int len = buffer.readUByte();
                additionalModels = new int[len];
                for (int i = 0; i < len; i++) {
                    additionalModels[i] = buffer.readUShort(); //chatheadModels
                }
            } else if (opcode == 93) {
                //Make sure to draw PK bots in the minimap (NPC IDs 13000 to 13009)
                if (id < 13000 || id > 13009)
                    renderOnMinimap = false; //isMinimapVisible
            } else if (opcode == 95)
                cmb_level = buffer.readUShort();
            else if (opcode == 97)
                resizeX = buffer.readUShort(); //widthScale
            else if (opcode == 98)
                resizeY = buffer.readUShort();
            else if (opcode == 99)
                render_priority = true;
            else if (opcode == 100)
                ambient = buffer.readSignedByte();
            else if (opcode == 101)
                contrast = buffer.readSignedByte();
            else if (opcode == 102) {
                int var3 = buffer.readUnsignedByte();
                int var4 = 0;

                for (int var5 = var3; var5 != 0; var5 >>= 1) {
                    ++var4;
                }

                this.headIconArchiveIds = new int[var4];
                this.headIconSpriteIndex = new short[var4];

                for (int var6 = 0; var6 < var4; ++var6) {
                    if ((var3 & 1 << var6) == 0) {
                        this.headIconArchiveIds[var6] = -1;
                        this.headIconSpriteIndex[var6] = -1;
                    } else {
                        this.headIconArchiveIds[var6] = buffer.readNullableLargeSmart();
                        this.headIconSpriteIndex[var6] = (short) buffer.readShortSmartSub();
                    }
                }
            }
            else if (opcode == 103)
                rotation = buffer.readUShort();
            else if (opcode == 106) {
                varbit = buffer.readUShort();
                if (varbit == 65535) {
                    varbit = -1;
                }

                varp = buffer.readUShort();
                if (varp == 65535) {
                    varp = -1;
                }

                int length = buffer.readUnsignedByte();
                configs = new int[length + 2];

                for (int index = 0; index <= length; ++index) {
                    configs[index] = buffer.readUShort();
                    if (configs[index] == 65535) {
                        configs[index] = -1;
                    }
                }

                configs[length + 1] = -1;
            }
            else if (opcode == 118) {
                varbit = buffer.readUShort();
                if (varbit == 65535) {
                    varbit = -1;
                }

                varp = buffer.readUShort();
                if (varp == 65535) {
                    varp = -1;
                }

                int var = buffer.readUShort();
                if (var == 0xFFFF) {
                    var = -1;
                }

                int length = buffer.readUnsignedByte();
                configs = new int[length + 2];

                for (int index = 0; index <= length; ++index) {
                    configs[index] = buffer.readUShort();
                    if (configs[index] == 65535) {
                        configs[index] = -1;
                    }
                }

                configs[length + 1] = var;
            } else if (opcode == 107) {
                aBoolean84 = false;
        } else if(opcode == 109) {
            this.isClickable = false;
        } else if(opcode == 111) {
            this.aBool2190 = true;
        } else if(opcode == 114) {
            this.field1914 = buffer.readUShort();
            if(this.field1914 == '\uffff') {
                this.field1914 = -1;
            }
        } else if(opcode == 115) {
            this.field1914 = buffer.readUShort();
            this.field1919 = buffer.readUShort();
            this.field1918 = buffer.readUShort();
            this.field1938 = buffer.readUShort();
            if(this.field1914 == '\uffff') {
                this.field1914 = -1;
            }
            if(this.field1919 == '\uffff') {
                this.field1919 = -1;
            }
            if(this.field1918 == '\uffff') {
                this.field1918 = -1;
            }
            if(this.field1938 == '\uffff') {
                this.field1938 = -1;
            }
        } else if(opcode == 116) {
            this.field1920 = buffer.readUShort();
            if(this.field1920 == '\uffff') {
                this.field1920 = -1;
            }
        } else if(opcode == 117) {
            this.field1920 = buffer.readUShort();
            this.field1933 = buffer.readUShort();
            this.field1922 = buffer.readUShort();
            this.field1923 = buffer.readUShort();
            if(this.field1920 == '\uffff') {
                this.field1920 = -1;
            }
            if(this.field1933 == '\uffff') {
                this.field1933 = -1;
            }
            if(this.field1922 == '\uffff') {
                this.field1922 = -1;
            }
            if(this.field1923 == '\uffff') {
                this.field1923 = -1;
            }
            } else if (opcode == 249) {
                int length = buffer.readUnsignedByte();

                this.params = new HashMap<>(length);

                for (int index = 0; index < length; index++) {
                    boolean isString = buffer.readUnsignedByte() == 1;
                    int key = buffer.read24Int();
                    Object value;

                    if (isString) {
                        value = buffer.readString();
                    } else {
                        value = buffer.readInt();
                    }

                    this.params.put(key, value);
                }
            }
        }
    }

Objects:

    private void decode(Buffer buffer) {
        while (true) {
            int opcode = buffer.readUnsignedByte();
            if (opcode == 0)
                break;
            if (opcode == 1) {
                int len = buffer.readUnsignedByte();
                if (len > 0) {
                    if (modelIds == null) {
                        modelTypes = new int[len];
                        modelIds = new int[len];

                        for (int i = 0; i < len; i++) {
                            modelIds[i] = buffer.readUShort();
                            modelTypes[i] = buffer.readUnsignedByte();
                        }
                    } else {
                        buffer.pos += len * 3;
                    }
                }
            } else if (opcode == 2)
                name = buffer.readString();
            else if (opcode == 3)
                description = buffer.readString();
            else if (opcode == 5) {
                int len = buffer.readUnsignedByte();
                if (len > 0) {
                    if (modelIds == null) {
                        modelTypes = null;
                        modelIds = new int[len];

                        for (int i = 0; i < len; i++) {
                            modelIds[i] = buffer.readUShort();
                        }
                    } else {
                        buffer.pos += len * 3;
                    }
                }
            } else if (opcode == 14)
                objectSizeX = buffer.readUnsignedByte();
            else if (opcode == 15)
                objectSizeY = buffer.readUnsignedByte();
            else if (opcode == 17) {
                solid = false;
                impenetrable = false;
            } else if (opcode == 18)
                impenetrable = false;
            else if (opcode == 19)
                isInteractive = buffer.readUnsignedByte();
            else if (opcode == 21)
                contouredGround = true;
            else if (opcode == 22)
                delayShading = true;
            else if (opcode == 23)
                occludes = true;
            else if (opcode == 24) { // Object Animations
                animation = buffer.readUShort();
                if (animation == 65535)
                    animation = -1;
            } else if (opcode == 28)
                decorDisplacement = buffer.readUnsignedByte();
            else if (opcode == 29)
                ambientLighting = buffer.readSignedByte();
            else if (opcode == 39)
                lightDiffusion = buffer.readSignedByte();
            else if (opcode >= 30 && opcode < 35) {
                if (interactions == null)
                    interactions = new String[10];
                interactions[opcode - 30] = buffer.readString();
                if (interactions[opcode - 30].equalsIgnoreCase("hidden"))
                    interactions[opcode - 30] = null;
            } else if (opcode == 40) {
                int len = buffer.readUnsignedByte();
                modifiedModelColors = new int[len];
                originalModelColors = new int[len];
                for (int i = 0; i < len; i++) {
                    modifiedModelColors[i] = buffer.readUShort();
                    originalModelColors[i] = buffer.readUShort();
                }
            } else if (opcode == 41) {
                int len = buffer.readUnsignedByte();
                dst_texture = new short[len];
                src_texture = new short[len];
                for (int i = 0; i < len; i++) {
                    dst_texture[i] = (short) buffer.readUShort();
                    src_texture[i] = (short) buffer.readUShort();
                }
            } else if (opcode == 61) {
                category = buffer.readUShort();
            } else if (opcode == 62)
                inverted = true;
            else if (opcode == 64)
                castsShadow = false;
            else if (opcode == 65)
                scaleX = buffer.readUShort();
            else if (opcode == 66)
                scaleY = buffer.readUShort();
            else if (opcode == 67)
                scaleZ = buffer.readUShort();
            else if (opcode == 68)
                mapscene = buffer.readUShort();
            else if (opcode == 69)
                surroundings = buffer.readUnsignedByte();
            else if (opcode == 70)
                translateX = buffer.readShort();
            else if (opcode == 71)
                translateY = buffer.readShort();
            else if (opcode == 72)
                translateZ = buffer.readShort();
            else if (opcode == 73)
                obstructsGround = true;
            else if (opcode == 74)
                hollow = true;
            else if (opcode == 75)
                supportItems = buffer.readUnsignedByte();
            else if (opcode == 77 || opcode == 92) {
                varbit = buffer.readUShort();

                if (varp == 0xFFFF) {
                    varp = -1;
                }

                varp = buffer.readUShort();

                if (varbit == 0xFFFF) {
                    varbit = -1;
                }

                int value = -1;

                if (opcode == 92) {
                    value = buffer.readUShort();

                    if (value == 0xFFFF) {
                        value = -1;
                    }
                }

                int len = buffer.readUnsignedByte();

                childrenIDs = new int[len + 2];
                for (int i = 0; i <= len; ++i) {
                    childrenIDs[i] = buffer.readUShort();
                    if (childrenIDs[i] == 0xFFFF) {
                        childrenIDs[i] = -1;
                    }
                }
                childrenIDs[len + 1] = value;
            } else if(opcode == 78) {
                ambientSoundId = buffer.readUShort();
                anInt2083 = buffer.readUnsignedByte();
            } else if(opcode == 79) {
                anInt2112 = buffer.readUShort();
                anInt2113 = buffer.readUShort();
                anInt2083 = buffer.readUShort();

                int length = buffer.readUnsignedByte();
                int[] anims = new int[length];

                for (int index = 0; index < length; ++index)
                {
                    anims[index] = buffer.readUShort();
                }
                ambientSoundIds = anims;
            } else if(opcode == 81) {
                buffer.readUnsignedByte();
            } else if (opcode == 82) {
                minimapFunction = buffer.readUShort();//AreaType
            } else if(opcode == 89) {
                randomAnimStart = false;
            } else if (opcode == 249) {
                int length = buffer.readUnsignedByte();

                Map<Integer, Object> params = new HashMap<>(length);
                for (int i = 0; i < length; i++)
                {
                    boolean isString = buffer.readUnsignedByte() == 1;
                    int key = buffer.read24Int();
                    Object value;

                    if (isString) {
                        value = buffer.readString();
                        System.out.println(value);
                    } else {
                        value = buffer.readInt();
                    }

                    params.put(key, value);
                }

                this.params = params;
            } else {
                //System.err.printf("Error unrecognised {Objects} opcode: %d%n%n", opcode);
            }
        }
        post_decode();
    }


    public void post_decode() {
        if (isInteractive == -1) {
            isInteractive = 0;
            if (name != null && !name.equalsIgnoreCase("null")) {
                if (modelIds != null && (modelTypes == null || modelTypes[0] == 10))
                    isInteractive = 1;//1

                if (interactions != null)
                    isInteractive = 1;

            }
        }
        if (hollow) {
            solid = false;
            impenetrable = false;
        }
        if (supportItems == -1)
            supportItems = solid ? 1 : 0;

    }

Animations:

    private void decode(Buffer buffer) {
        do {
            int opcode = buffer.readUByte();
            if (opcode == 0)
                break;

            if (opcode == 1) {
                frames = buffer.readUShort();
                primary_frame = new int[frames];
                frame_list = new int[frames];
                frame_length = new int[frames];

                for (int frame = 0; frame < frames; frame++) {
                    frame_length[frame] = buffer.readUShort();
                }

                for (int frame = 0; frame < frames; frame++) {
                    primary_frame[frame] = buffer.readUShort();
                    frame_list[frame] = -1;
                }

                for (int frame = 0; frame < frames; frame++) {
                    primary_frame[frame] += buffer.readUShort() << 16;
                }
            } else if (opcode == 2) {
                step = buffer.readUShort();
            } else if (opcode == 3) {
                int index = buffer.readUByte();
                flow_control = new int[index + 1];
                for (int id = 0; id < index; id++) {
                    flow_control[id] = buffer.readUByte();
                }
                flow_control[index] = 0x98967f;
            } else if (opcode == 4) {
                stretch = true;
            } else if (opcode == 5) {
                appended_frames = buffer.readUByte();
            } else if (opcode == 6) {
                shield_delta = buffer.readUShort();
            } else if (opcode == 7) {
                weapon_delta = buffer.readUShort();
            } else if (opcode == 8) {
                loops = buffer.readUByte();
            } else if (opcode == 9) {
                tempo = buffer.readUByte();
            } else if (opcode == 10) {
                priority = buffer.readUByte();
            } else if (opcode == 11) {
                reset = buffer.readUByte();
            } else if (opcode == 12) {
                int length = buffer.readUByte();
                for (int index = 0; index < length; index++) {
                    buffer.readUShort();
                }
                for (int index = 0; index < length; index++) {
                    buffer.readUShort();
                }
            } else if (opcode == 13) {
                int length = buffer.readUByte();
                for (int index = 0; index < length; index++) {
                    buffer.read24Int();
                }
            } else if (opcode == 14) {
                keyframe_id = buffer.readInt();
            } else if (opcode == 15) {
                int count = buffer.readUShort();
                this.keyframe_soundeffects = new HashMap();

                for(int i = 0; i < count; ++i) {
                    int var6 = buffer.readUShort();
                    int var7 = buffer.read24Int();
                    this.keyframe_soundeffects.put(var6, var7);
                }
            } else if (opcode == 16) {
                keyframe_start = buffer.readUShort();
                keyframe_end = buffer.readUShort();
            } else if (opcode == 17) {
                this.mergedbonegroups = new boolean[256];

                for(int i = 0; i < this.mergedbonegroups.length; ++i) {
                    this.mergedbonegroups[i] = false;
                }

                int count = buffer.readUnsignedByte();

                for(int i = 0; i < count; ++i) {
                    this.mergedbonegroups[buffer.readUnsignedByte()] = true;
                }
            } else {
                //System.out.println("Error unrecognised {SEQ} opcode: " + opcode);//use for debugging otherwise it spams the console (127 unrecognized)
            }
        } while (true);

        post_decode();
    }

    private void post_decode() {
        if (frames == 0) {
            frames = 1;
            primary_frame = new int[1];
            primary_frame[0] = -1;
            frame_list = new int[1];
            frame_list[0] = -1;
            frame_length = new int[1];
            frame_length[0] = -1;
        }

        if (tempo == -1) {
            tempo = (flow_control == null) ? 0 : 2;
        }

        if (priority == -1) {
            priority = (flow_control == null) ? 0 : 2;
        }
    }
IdentityKit:
   private void readValues(Buffer stream) {
        do {
            int i = stream.readUnsignedByte();
            if (i == 0)
                return;
            if (i == 1)
                bodyPartId = stream.readUnsignedByte();
            else if (i == 2) {
                int j = stream.readUnsignedByte();
                modelIds = new int[j];
                for (int k = 0; k < j; k++)
                    modelIds[k] = stream.readUShort();
            } else if (i == 3)
                nonSelectable = true;
            else if (i == 40) {
                int length = stream.readUnsignedByte();
                colourToFind = new short[length];
                colourToReplace = new short[length];
                for(int idx = 0;idx<length;idx++) {
                    colourToFind[idx] = (short) stream.readUShort();
                    colourToReplace[idx] = (short) stream.readUShort();
                }
            } else if (i == 41) {
                int length = stream.readUnsignedByte();
                textureToFind = new short[length];
                textureToReplace = new short[length];
                for(int idx = 0;idx<length;idx++) {
                    textureToFind[idx] = (short) stream.readUShort();
                    textureToReplace[idx] = (short) stream.readUShort();
                }
            } else if (i >= 60 && i < 70) {
                models[i - 60] = stream.readUShort();
                if(models[i - 60] == 65535)
                    models[i - 60] = -1;
            }
            else
                System.out.println("Error unrecognised config code: " + i);
        } while (true);
    }

Buffer:

    public int method1606() {
        int var2 = 0;

        int var3;
        for (var3 = this.readUShortSmart(); var3 == 32767; var3 = this.readShortSmart()) {
            var2 += 32767;
        }

        var2 += var3;
        return var2;
    }
    public int readShortSmart() {
        int var1 = this.payload[this.pos] & 255;
        return var1 < 128?this.readUnsignedByte() - 64:this.readUShort() - '\uc000';
    }
    public int readUShortSmart() {
        int var1 = this.payload[this.pos] & 255;
        return var1 < 128?this.readUnsignedByte():this.readUShort() - '\u8000';
    }

    public int readNullableLargeSmart() {
        if (this.payload[this.pos] < 0) {
            return this.readInt() & Integer.MAX_VALUE;
        } else {
            int var1 = this.readUShort();
            return var1 == 32767 ? -1 : var1;
        }
    }

    public int readShortSmartSub() {
        int var1 = this.payload[this.pos] & 255;
        return var1 < 128 ? this.readUnsignedByte() - 1 : this.readUShort() - 0x8000;
    }

 

first

Link to comment
Share on other sites

  • 2 weeks 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
 Share

Contact

ltlimes

RSPS Partners

RedemptionRSPS

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

oldschoolrsps Runewild RedemptionRSPS

Disclaimer

Runesuite is not affiliated with runescape, jagex, rune-server and runelocus in any way & exists solely for educational purposes.

×
×
  • Create New...