Thread: Invisible items

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Registered Member Nuno555's Avatar
    Join Date
    Sep 2011
    Posts
    330
    Thanks given
    40
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by Zerikoth View Post
    You have to extend the data by like 1000 ids for custom items:

    Code:
    public static void init(Archive archive) {
            data_buffer = new Buffer(
                    ClientConstants.LOAD_OSRS_DATA_FROM_CACHE_DIR ?
                    FileUtils.read(ClientConstants.DATA_DIR+"items/obj.dat")
                    : archive.get("obj.dat"));
    
            Buffer index_buffer = new Buffer(
                    ClientConstants.LOAD_OSRS_DATA_FROM_CACHE_DIR ?
                    FileUtils.read(ClientConstants.DATA_DIR+"items/obj.idx")
                    : archive.get("obj.idx"));
    
            length = index_buffer.readUShort();
            pos = new int[length + 7000];
    
            int offset = 2;
            for (int index = 0; index < length; index++) {
                pos[index] = offset;
                offset += index_buffer.readUShort();
            }
            cache = new ItemDefinition[10];
            for (int index = 0; index < 10; index++)
                cache[index] = new ItemDefinition();
    
            System.out.println(String.format("Loaded %d items loading OSRS version %d and SUB version %d", length, ClientConstants.OSRS_DATA_VERSION, ClientConstants.OSRS_DATA_SUB_VERSION));
    
        }
    Bro ur not getting the problem... That is done but its not reading it for some reason
    Quote Originally Posted by soccerchamp149 View Post
    whats eclipse lol
    Reply With Quote  
     

  2. #12  
    Banned

    Join Date
    Jun 2019
    Posts
    203
    Thanks given
    99
    Thanks received
    44
    Rep Power
    0
    Quote Originally Posted by Nuno555 View Post
    Bro ur not getting the problem... That is done but its not reading it for some reason
    Show ur code then of ur "custom" item. Because if the model is not read correctly its most likely not correctly packed in index1.
    Reply With Quote  
     

  3. #13  
    Banned

    Join Date
    Sep 2018
    Posts
    65
    Thanks given
    27
    Thanks received
    46
    Rep Power
    0
    Quote Originally Posted by Nuno555 View Post
    Bro ur not getting the problem... That is done but its not reading it for some reason
    Please show the code of your custom item and your forid method.
    Reply With Quote  
     

  4. #14  
    Registered Member Nuno555's Avatar
    Join Date
    Sep 2011
    Posts
    330
    Thanks given
    40
    Thanks received
    14
    Rep Power
    0
    lmaooo, index1 etc. you guys high? read what i said in other posts and dont waste my time thanks

    update:

    if i change this:
    http://prntscr.com/p6xdo0

    to:
    http://prntscr.com/p6xdyq

    all items turn invisible, but i tested a clean client and doesnt do this
    Quote Originally Posted by soccerchamp149 View Post
    whats eclipse lol
    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Mar 2021
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Nuno555 View Post
    lmaooo, index1 etc. you guys high? read what i said in other posts and dont waste my time thanks

    update:

    if i change this:
    http://prntscr.com/p6xdo0

    to:
    http://prntscr.com/p6xdyq

    all items turn invisible, but i tested a clean client and doesnt do this
    NUNO ainda jogas osrs , sou o bruno da dual brother... adiciona ai no discord kardaswp#2190
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Invisible item
    By wolfenzi in forum Help
    Replies: 1
    Last Post: 10-07-2010, 05:06 PM
  2. Invisible Items
    By Ventrix in forum Help
    Replies: 2
    Last Post: 09-11-2010, 05:02 AM
  3. Invisible items
    By thenolifer in forum Help
    Replies: 5
    Last Post: 08-27-2010, 02:43 PM
  4. Invisible Items (rep)
    By Neekage in forum Help
    Replies: 4
    Last Post: 05-09-2010, 10:10 AM
  5. Invisible items?
    By TGWCam in forum Help
    Replies: 2
    Last Post: 07-24-2009, 09:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •