Thread: Adding NPC/Object/Item ID's to 'Examine'

Results 1 to 7 of 7
  1. #1 Adding NPC/Object/Item ID's to 'Examine' 
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Title pretty much says it all. I'm wondering how I can get the Examine option to display Object/Item/NPC Id's for convenience. The examines are pulled from a packedExamines file so unpacking, adding each individual ID and repacking is a no go. I thought about commenting out the retrieval method and using a general string for all examines with the ID incorporated but I'm scared to mess something up lol.

    Thanks for reading

    Im using ARROW Rs3 Updated


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Hm you could like 317 rsps and go in change in the client. Go in the item/npc/object defs inside the client and change the player where it says:

    Code:
    name = stream.readString();
    to something like:

    Code:
    name = stream.readString();
    name = name + " (" + id + ")"
    Project thread
    Reply With Quote  
     

  3. #3  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by clem585 View Post
    Hm you could like 317 rsps and go in change in the client. Go in the item/npc/object defs inside the client and change the player where it says:

    Code:
    name = stream.readString();
    to something like:

    Code:
    name = stream.readString();
    name = name + " (" + id + ")"
    Oh nice didn't know that was possible Thanks Clem!

    -edit-
    The definitions classes are all mumbo jumbo


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by xRokku_Ri View Post
    Oh nice didn't know that was possible Thanks Clem!

    -edit-
    The definitions classes are all mumbo jumbo
    The opcode for name is #3 in all 3 cases. So just look for:

    Code:
    if (i == 2) {
        aString5000 = aClass300_50.readString();
    }
    and add that:

    Code:
    aString5000 = aString5000  + " (" + id + ")";
    Project thread
    Reply With Quote  
     

  5. #5  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by clem585 View Post
    The opcode for name is #3 in all 3 cases. So just look for:

    Code:
    if (i == 2) {
        aString5000 = aClass300_50.readString();
    }
    and add that:

    Code:
    aString5000 = aString5000  + " (" + id + ")";
    This is what I've found that's similar I suppose

    Code:
    else if (2 == i)
    			name = class572_sub15.readString(1295706626).intern();
    Other than that The other readString's all have the .intern() at the end and no matter where I add the id code it's unrecognized.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  6. #6  
    Registered Member Latvian's Avatar
    Join Date
    Mar 2016
    Posts
    14
    Thanks given
    0
    Thanks received
    7
    Rep Power
    11
    For Objects simply go to ObjectHandler.java and under
    Code:
    public static void handleOption(final Player player, InputStream stream, int option) {
    , add something like this
    Code:
    		player.getPackets().sendGameMessage("Clicked object id " + object.getId() + " at " + object.getX() + ", " + object.getY() + ".");
    You can do this for NPCs and items as well (just add to ItemHandler, NPCHandler.
    Reply With Quote  
     

  7. #7  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by xRokku_Ri View Post
    This is what I've found that's similar I suppose

    Code:
    else if (2 == i)
    			name = class572_sub15.readString(1295706626).intern();
    Other than that The other readString's all have the .intern() at the end and no matter where I add the id code it's unrecognized.
    It should work. Are you sure you're editing the defs in the client, not in the server?

    Quote Originally Posted by Latvian View Post
    For Objects simply go to ObjectHandler.java and under
    Code:
    public static void handleOption(final Player player, InputStream stream, int option) {
    , add something like this
    Code:
    		player.getPackets().sendGameMessage("Clicked object id " + object.getId() + " at " + object.getX() + ", " + object.getY() + ".");
    You can do this for NPCs and items as well (just add to ItemHandler, NPCHandler.
    I don't think the object/npc interaction packets are indentified.
    Project thread
    Reply With Quote  
     


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. [Release] Runescape Object, NPC, and Item ID Searcher! [Source included]
    By Patar3214 in forum Application Development
    Replies: 9
    Last Post: 08-10-2013, 05:30 AM
  2. Npc/object/item ids client based
    By rockarocka in forum Help
    Replies: 0
    Last Post: 11-08-2011, 01:58 AM
  3. Replies: 0
    Last Post: 11-07-2010, 01:01 PM
  4. Item ID, Name and Examine List
    By _aLfa_ in forum Configuration
    Replies: 4
    Last Post: 08-23-2010, 04:31 PM
  5. Npc,Object,Item
    By Stewie in forum Requests
    Replies: 0
    Last Post: 02-28-2009, 01:19 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
  •