Thread: [OSRS #179] Client ItemDef equipment slot obj.dat/idx

Results 1 to 1 of 1
  1. #1 [OSRS #179] Client ItemDef equipment slot obj.dat/idx 
    Registered Member
    Join Date
    Sep 2016
    Posts
    15
    Thanks given
    1
    Thanks received
    3
    Rep Power
    33
    I made this so I can modify items and models according to their slot in the cllient. The purpose of this is because I have mixed revisions and need to translate and scale things to make them look a bit better on the character and I can do that by the type of equipment slot.

    Also used this here:
    [Only registered and activated users can see links. ]

    This is the modified obj.dat and obj.idx files. There is an extra read value with opcode 60 which is a signed byte representing the equipment slot.
    Code:
    public static final int NONE = -1;
    public static final int HEAD_SLOT = 0;
    public static final int CAPE_SLOT = 1;
    public static final int AMULET_SLOT = 2;
    public static final int WEAPON_SLOT = 3;
    public static final int BODY_SLOT = 4;
    public static final int SHIELD_SLOT = 5;
    public static final int LEG_SLOT = 7;
    public static final int HANDS_SLOT = 9;
    public static final int FEET_SLOT = 10;
    public static final int RING_SLOT = 12;
    public static final int AMMUNITION_SLOT = 13;
    Add a field into ItemDefinition for wearSlotOSRS and set it to -1 as default.
    Code:
    public int wearSlotOSRS = -1;
    Stick something like this into your ItemDefinition readValues() method.
    Code:
    else if (i == 60) {
        wearSlotOSRS = stream.readSignedByte();
    }
    [Only registered and activated users can see links. ]
    Last edited by Corey; 05-14-2019 at 03:16 PM. Reason: Changed tag to 317
    Reply With Quote  
     

  2. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Obj.dat/idx editor
    By Shoutbox in forum Requests
    Replies: 4
    Last Post: 07-26-2015, 08:18 PM
  2. 100% 725 Items (obj.dat/idx) [fix]
    By OnCue in forum Snippets
    Replies: 22
    Last Post: 07-28-2013, 04:51 PM
  3. [REQ] 525 item definitions e.g. obj.dat/idx
    By Eliminate in forum Models
    Replies: 7
    Last Post: 09-18-2012, 02:22 AM
  4. (647 i believe) obj.dat/idx with all examine info
    By owner blade in forum Selling
    Replies: 0
    Last Post: 08-10-2011, 01:24 AM
  5. 633 Items [Obj.dat/.idx]
    By Penor in forum Snippets
    Replies: 9
    Last Post: 01-06-2011, 08:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •