Thread: PI Recolouring ints and models, not working?

Results 1 to 3 of 3
  1. #1 PI Recolouring ints and models, not working? 
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Hi there,

    I've added this code:

    Code:
    case 16635:
    itemDef.actions = new String[5];
    itemDef.modifiedModelColors = new int[1];
    itemDef.originalModelColors = new int[1];
    itemDef.actions[1] = "Wield";
    itemDef.modelID = 5412;
    itemDef.maleEquip1 = 5409;
    itemDef.femaleEquip1 = 5409;
    itemDef.modelZoom = 840;
    itemDef.modelRotation1 = 280;
    itemDef.modelRotation2 = 0;
    itemDef.modelOffset1 = -2;
    itemDef.modelOffset2 = 56;
    itemDef.anInt204 = 0;
    itemDef.name = "Yellow whip";
    itemDef.description = "Whip from the abyss.".getBytes();
    itemDef.modifiedModelColors[0] = 76770;//100
    itemDef.originalModelColors[0] = 528;
    break;
    to my client's itemDef.java in order to recolour the whip, but when I try and spawn the item id 16635 nothing happens..?

    I've always used recoloured models in the past and haven't tried this before - have I missed a step?

    Edit: This doesn't actually have much to do with models, so it might be in the wrong section. Sorry!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    221
    Thanks given
    30
    Thanks received
    32
    Rep Power
    54
    1. Yes this is in the wrong section.

    2. PI is completely unrelated to the client.

    3. "Nothing happens" is not very descriptive. Do you mean the item does not spawn at all, or is it still the default color?

    4. What revision is your whip model?

    5. The go-to fix for the colors, if you're sure you have the right ones, is to switch the ints you used for modifiedModelColors and originalModelColors.
    Reply With Quote  
     

  3. #3  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    Have you added the item in item.cfg?
    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. Replies: 3
    Last Post: 12-18-2012, 03:45 AM
  2. i need correct ints and models of listed items for pi
    By OodlesOfNoodles in forum Requests
    Replies: 5
    Last Post: 11-18-2011, 02:15 PM
  3. add model not working [PI]
    By stickywicky in forum Help
    Replies: 9
    Last Post: 01-07-2011, 10:47 PM
  4. [req] Animator ints and models
    By R0cky 0wnz in forum Requests
    Replies: 0
    Last Post: 07-03-2008, 01:01 PM
  5. [REQ]Shadow sword ints, and models[REQ]
    By Livinglife in forum Models
    Replies: 0
    Last Post: 03-28-2008, 07:10 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •