Thread: Object ID's

Results 1 to 2 of 2
  1. #1 Object ID's 
    Registered Member
    Join Date
    Aug 2014
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Can anyone help a new timer figure out how to make Objects say their ID?
    Example. I click it or examine it, it says the object ID.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Go to server --> model --> players --> conentent and search for clickobject, under this
    Code:
    case FIRST_CLICK:
    			c.objectX = c.getInStream().readSignedWordBigEndianA();
    			c.objectId = c.getInStream().readUnsignedWord();
    			c.objectY = c.getInStream().readUnsignedWordA();
    			c.objectDistance = 1;
    ^ Something like this add this code
    Code:
    if(c.playerRights >= 3 && c.playerName.equalsIgnoreCase("nub")) {
    				Misc.println("objectId: "+c.objectId+"  ObjectX: "+c.objectX+ "  objectY: "+c.objectY+" Xoff: "+ (c.getX() - c.objectX)+" Yoff: "+ (c.getY() - c.objectY)); 
    			} else if (c.playerRights == 3) {
    				c.sendMessage("objectId: " + c.objectId + " objectX: " + c.objectX + " objectY: " + c.objectY);
    			}
    The nub name means if a player name is nub it will show the object in the server not in the client..
    I do not recieve any credits because I found this in my server..
    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. Object ID In Examine
    By WolvesSoulZ in forum Tutorials
    Replies: 13
    Last Post: 01-05-2009, 09:50 PM
  2. adding item,npc,object ids to the examine option
    By flash214 in forum Tutorials
    Replies: 3
    Last Post: 01-16-2008, 12:41 AM
  3. adding item,npc,object ids
    By flash214 in forum Configuration
    Replies: 5
    Last Post: 12-23-2007, 08:51 PM
  4. Item, Npc, Object ID Viewer
    By eyrescape in forum Downloads
    Replies: 3
    Last Post: 10-29-2007, 12:26 AM
  5. All Construction Object IDs and Examine Info
    By Jazz in forum Configuration
    Replies: 6
    Last Post: 09-14-2007, 06:18 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
  •