This has probably been released before but it can't hurt to release again, the reason it's in snippets is because I'm not teaching you anything. You just put code in where I tell you and when you right click on an npc or object it will show the id and model id. Couldn't find this on rune-server so I'm sure this will help some of you out there who didn't know how to do this.

Getting the NPC model id on right click:

Client sided go to EntityDef.java

Under
Code:
entityDef.readValues(stream);
(Note it could be different for yours just look for readValues)

in
Code:
public static EntityDef forID(int i)
(Should be at the top of your EntityDef.java class)

add this code

Code:
entityDef.actions = new String[5];
entityDef.actions[0] = "id: " + i;
if(entityDef.anIntArray73 != null)
entityDef.actions[1] = "model: " + entityDef.anIntArray73[0];
Your anIntArray could be different just look through the class and you'll see it being used often, just use whatever it is in your class.

To turn off you can just comment out the code or make a boolean for it but I'm too lazy to add.


Getting the Object model id on right click:

Client sided go to ObjectDef.java

Under
Code:
objectDef.readValues(buffer);
in
Code:
public static ObjectDef forID(int i)
(Should be at the top of your ObjectDef.java class)

add this code

Code:
      
objectDef.hasActions = true;
objectDef.actions = new String[5];
objectDef.actions[0] = "id: " + i;
if(objectDef.anIntArray773 != null)
objectDef.actions[1] = "model: " + objectDef.anIntArray773[0];
In some clients the objectDef is class46 so those of you who have that put this

Code:
       
class46.hasActions = true;
class46.actions = new String[5];
class46.actions[0] = "id: " + i;
if(class46.anIntArray773 != null)
class46.actions[1] = "model: " + class46.anIntArray773[0];
Hope this helps you out. Helps out a lot when you are editing cache and working with models.