Thread: is there possible?

Results 1 to 8 of 8
  1. #1 is there possible? 
    Donator

    LionLF's Avatar
    Join Date
    Aug 2017
    Posts
    234
    Thanks given
    76
    Thanks received
    76
    Rep Power
    115
    is there possible to recolor npc models? etc similar way to items :
    itemDef.editedModelColor = new int[1];
    itemDef.newModelColor = new int[1];
    itemDef.editedModelColor[0] = 959;
    itemDef.newModelColor[0] = 47023;

    `?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Pwned901's Avatar
    Join Date
    Nov 2013
    Posts
    596
    Thanks given
    29
    Thanks received
    99
    Rep Power
    101
    if u want pm i can do it for u model sided
    Reply With Quote  
     

  3. #3  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by zukke View Post
    is there possible to recolor npc models? etc similar way to items :
    itemDef.editedModelColor = new int[1];
    itemDef.newModelColor = new int[1];
    itemDef.editedModelColor[0] = 959;
    itemDef.newModelColor[0] = 47023;

    `?
    Yes completely possible, doing it via models means you'd have to have a separate model for each colour, doing it via definitions means you can use the same model multiple times over for items with different colours.
    Code:
    itemDef.editedModelColor = new int[] { 959, originalColour };
    itemDef.newModelColor = new int[] { 47023, newColour };
    Bit tricky to get the original model colour that you want to change, would have to use some modelling tool for that, also worth learning what arrays are in java and how they work.
    Attached imageAttached image
    Reply With Quote  
     

  4. Thankful user:

    Community VeteranSub

  5. #4  
    Donator

    LionLF's Avatar
    Join Date
    Aug 2017
    Posts
    234
    Thanks given
    76
    Thanks received
    76
    Rep Power
    115
    Quote Originally Posted by Greg View Post
    Yes completely possible, doing it via models means you'd have to have a separate model for each colour, doing it via definitions means you can use the same model multiple times over for items with different colours.
    Code:
    itemDef.editedModelColor = new int[] { 959, originalColour };
    itemDef.newModelColor = new int[] { 47023, newColour };
    Bit tricky to get the original model colour that you want to change, would have to use some modelling tool for that, also worth learning what arrays are in java and how they work.
    im familiar with recoloring items but my point was if there is way to add recoloring system for npc models as well , i would give it try but i feel like it doesnt work
    Reply With Quote  
     

  6. #5  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by zukke View Post
    im familiar with recoloring items but my point was if there is way to add recoloring system for npc models as well , i would give it try but i feel like it doesnt work
    Oh okay, yeah there's an identical system for npc definitions too, opcode 40 Attached image
    Attached imageAttached image
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Items, objects, npcs, graphics, identity kits.. they all support recolouring/retexturizing the model. It's always opcode 40(recol)/41(retex).
    Attached image
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    Donator

    LionLF's Avatar
    Join Date
    Aug 2017
    Posts
    234
    Thanks given
    76
    Thanks received
    76
    Rep Power
    115
    Quote Originally Posted by Greg View Post
    Oh okay, yeah there's an identical system for npc definitions too, opcode 40 Attached image
    Quote Originally Posted by Kris View Post
    Items, objects, npcs, graphics, identity kits.. they all support recolouring/retexturizing the model. It's always opcode 40(recol)/41(retex).
    ay thanks for info
    Reply With Quote  
     

  11. #8  
    Registered Member
    Join Date
    Apr 2018
    Posts
    15
    Thanks given
    8
    Thanks received
    0
    Rep Power
    12
    Awesome thread I was just looking for this. I want to colour an npc so just want to know how it works.
    Code:
    itemDef.editedModelColor = new int[] { 959, originalColour };
    itemDef.newModelColor = new int[] { 47023, newColour };
    What do the numbers here represent? Why do we need them?
    I'm guessing you need to find the model colours that it currently uses so it can search through them and replace them, so temDef.editedModelColor and itemDef.newModelColor will be arrays of the same length right? You might have like {100, 200} as editedModelColor and {105, 200} as newModelColor. That would keep the 200 colour on the npc the same and the parts of npc that were colour 100 will change to 105. Is this correct? Also what colour system is this, cause these numbers mean nothing to me, just give me a name and I can google it.
    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. Is there a Kotlin Client Possibility?
    By The_Salient94 in forum Help
    Replies: 0
    Last Post: 06-17-2017, 04:14 PM
  2. [667] is there any possible way
    By scoping in forum Help
    Replies: 5
    Last Post: 11-19-2013, 12:07 AM
  3. Is there a possible way to Convert 508 to 554?
    By NeW0rldL0rd in forum Help
    Replies: 5
    Last Post: 07-23-2010, 08:21 AM
  4. Replies: 8
    Last Post: 08-09-2007, 06:06 PM
  5. Sotm IV Entrie?(is there?)
    By Bl00dr4g3 in forum Showcase
    Replies: 0
    Last Post: 04-07-2007, 02:16 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
  •