Thread: Finding Model Id [718]

Results 1 to 4 of 4
  1. #1 Finding Model Id [718] 
    EradicationX Is Back!
    Sadie's Avatar
    Join Date
    Feb 2016
    Posts
    47
    Thanks given
    16
    Thanks received
    22
    Discord
    View profile
    Rep Power
    18
    Hey, quick question.

    Does anyone know the Model ID of this specific Fountain?

    Name: "Fountain".
    Object ID: "153".
    [Only registered and activated users can see links. ]
    Anyone able to find the Model ID?

    [718/742]
    Reply With Quote  
     

  2. #2  
    Registered Member Fallore's Avatar
    Join Date
    Jan 2019
    Posts
    41
    Thanks given
    2
    Thanks received
    10
    Discord
    View profile
    Rep Power
    15
    The model ID is 50136.
    You can easilly check it yourself in-game, dump it or via an editor etc.

    When you check it in-game just calling the objectdefinitions > the model ID wont work unless you print it into an array.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    177
    Thanks given
    97
    Thanks received
    217
    Rep Power
    241
    This is a command I made a long time ago for finding model ids of objects, I don't know how your source is formatted or much of anything about 718/742 so you'll probably have to adjust accordingly, but this should give you the general idea

    Code:
    @Override
    public String[] getCommands() {
    	return new String[] { "objectmodel", "objm" };
    }
    
    @Override
    public void execute(Player player) {
    	int id;
    
    	try {
    		id = Integer.parseInt(cmd[1]);
    	}
    	catch (Exception e) {
    		player.sendMessage("Failed to parse id");
    		return;
    	}
    
    	ObjectDefinitions defs = ObjectDefinitions.getObjectDefinitions(id);
    		
    	if (defs == null) {
    		player.getPackets().sendMessage(99,"Unable to load definitions for object: " + id, player);
    		return;
    	}
    	if (defs.modelIds == null) {
    		player.getPackets().sendMessage(99,"No models associated with object: " + id, player);
    		return;
    	}
    		
    	for (int i = 0; i < defs.modelIds.length; i++) {
    		for (int j = 0; j < defs.modelIds[i].length; j++) {
    			player.getPackets().sendMessage(99,"MODEL[" + i + "][" + j + "] = " + defs.modelIds[i][j], player);
    		}
    	}
    }
    INPUT :: objectmodel 153

    OUTPUT MODEL[0][0] = 50136
    Reply With Quote  
     

  4. #4  
    EradicationX Is Back!
    Sadie's Avatar
    Join Date
    Feb 2016
    Posts
    47
    Thanks given
    16
    Thanks received
    22
    Discord
    View profile
    Rep Power
    18
    Quote Originally Posted by Stugger View Post
    This is a command I made a long time ago for finding model ids of objects, I don't know how your source is formatted or much of anything about 718/742 so you'll probably have to adjust accordingly, but this should give you the general idea

    Code:
    @Override
    public String[] getCommands() {
    	return new String[] { "objectmodel", "objm" };
    }
    
    @Override
    public void execute(Player player) {
    	int id;
    
    	try {
    		id = Integer.parseInt(cmd[1]);
    	}
    	catch (Exception e) {
    		player.sendMessage("Failed to parse id");
    		return;
    	}
    
    	ObjectDefinitions defs = ObjectDefinitions.getObjectDefinitions(id);
    		
    	if (defs == null) {
    		player.getPackets().sendMessage(99,"Unable to load definitions for object: " + id, player);
    		return;
    	}
    	if (defs.modelIds == null) {
    		player.getPackets().sendMessage(99,"No models associated with object: " + id, player);
    		return;
    	}
    		
    	for (int i = 0; i < defs.modelIds.length; i++) {
    		for (int j = 0; j < defs.modelIds[i].length; j++) {
    			player.getPackets().sendMessage(99,"MODEL[" + i + "][" + j + "] = " + defs.modelIds[i][j], player);
    		}
    	}
    }
    INPUT :: objectmodel 153

    OUTPUT MODEL[0][0] = 50136
    Thanks for the help, will be sure to update my server with these.
    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. Finding Model IDs
    By Classy Penguin in forum Help
    Replies: 1
    Last Post: 04-26-2015, 04:31 PM
  2. In regards to finding model ID's for Objects ...
    By Tira of TOTA in forum Help
    Replies: 4
    Last Post: 02-18-2015, 12:23 AM
  3. Replies: 4
    Last Post: 07-20-2014, 06:13 PM
  4. Finding model ids on Obj/Items[Easy]
    By NICKname in forum Snippets
    Replies: 6
    Last Post: 11-29-2011, 11:59 PM
  5. Replies: 3
    Last Post: 08-06-2009, 05:06 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
  •