Thread: My npcs recolor is not working

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 My npcs recolor is not working 
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,501
    Thanks given
    204
    Thanks received
    322
    Rep Power
    588
    Ok well im trying to add metal dragons for non-renamed and there not recoloring here is my iron dragon code

    Code:
    		if(i == 1591) {
                aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
                class5.method165(true, aClass30_Sub2_Sub2_60);
    			class5.aStringArray66 = new String[5];
    			class5.aStringArray66[1] = "Attack";
    			class5.anIntArray94 = new int[3];
    			class5.anIntArray94[0] = 24577;
    			class5.anIntArray94[1] = 24586;
    			class5.anIntArray94[2] = 24582;
    			class5.anInt67 = 79;
    			class5.anInt77 = 90;
    	                byte byte9 = 6;
                            class5.anIntArray76 = new int[byte9];
                            class5.anIntArray70 = new int[byte9];
                            class5.anIntArray76[0] = 20;
                            class5.anIntArray70[0] = -22256;
                            class5.anIntArray76[1] = 24;
                            class5.anIntArray70[1] = -27364;
                            class5.anIntArray76[2] = 28;
                            class5.anIntArray70[2] = -27359;
                            class5.anIntArray76[3] = 33;
                            class5.anIntArray70[3] = -27479;
                            class5.anIntArray76[4] = 37;
                            class5.anIntArray70[4] = -27471;
                            class5.anIntArray76[5] = 41;
                            class5.anIntArray70[5] = -27446;
    			class5.aString65 = "Iron Dragon";
    			class5.anInt61 = 189;
    			class5.aByteArray89 =  "Scales Seem to be made of Iron".getBytes();
    		}
    im not too sure whats wrong here but its just not working

    If someone could tell me how to fix this thank you.

    Just live life at its fullest.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2009
    Posts
    2,918
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    what the fuck
    Reply With Quote  
     

  3. #3  
    Registered Member Ryan Rebelle's Avatar
    Join Date
    Nov 2009
    Age
    26
    Posts
    1,149
    Thanks given
    108
    Thanks received
    57
    Rep Power
    41
    I'm pretty sure you don't do "byte9", just "9", and there are only 6 recolors their so make it 6


    Reply With Quote  
     

  4. #4  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,501
    Thanks given
    204
    Thanks received
    322
    Rep Power
    588




    Code:
    		if(i == 1591) {
                aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
                class5.method165(true, aClass30_Sub2_Sub2_60);
    			class5.aStringArray66 = new String[5];
    			class5.aStringArray66[1] = "Attack";
    			class5.anIntArray94 = new int[3];
    			class5.anIntArray94[0] = 24577;
    			class5.anIntArray94[1] = 24586;
    			class5.anIntArray94[2] = 24582;
    			class5.anInt67 = 79;
    			class5.anInt77 = 90;
    	byte byte6 = 6;
                class5.anIntArray76 = new int[byte6];
                class5.anIntArray70 = new int[byte6];
                class5.anIntArray76[0] = 20;
                class5.anIntArray70[0] = -22256;
                class5.anIntArray76[1] = 24;
                class5.anIntArray70[1] = -27364;
                class5.anIntArray76[2] = 28;
                class5.anIntArray70[2] = -27359;
                class5.anIntArray76[3] = 33;
                class5.anIntArray70[3] = -27479;
                class5.anIntArray76[4] = 37;
                class5.anIntArray70[4] = -27471;
                class5.anIntArray76[5] = 41;
                class5.anIntArray70[5] = -27446;
    			class5.aString65 = "Iron Dragon";
    			class5.anInt61 = 189;
    			class5.aByteArray89 =  "Scales Seem to be made of Iron".getBytes();
    		}

    Just live life at its fullest.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    u sure, that the original model colors are correct?
    ...
    Reply With Quote  
     

  6. #6  
    Whatchu talkin bout willis?

    Gary's Avatar
    Join Date
    Sep 2008
    Posts
    4,165
    Thanks given
    690
    Thanks received
    646
    Rep Power
    3462
    lol'd. for a start your using the wrong colours lol and secondly use this layout or mige's layout lol

    Code:
    int changedColors = 6;//change this depending on how many colours you use
                class5.anIntArray76 = new int[changedColors];
                class5.anIntArray70 = new int[changedColors];
                class5.anIntArray76[0] = ***;
                class5.anIntArray70[0] = ***;
    Ellie
    Sadly lost my beautiful ellie in july 2018 always going to miss you my girl
    Spoiler for sig too big:


    Reply With Quote  
     

  7. #7  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,501
    Thanks given
    204
    Thanks received
    322
    Rep Power
    588
    Yeah still nothing happens ffs

    Just live life at its fullest.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member Hexagon's Avatar
    Join Date
    May 2008
    Posts
    672
    Thanks given
    28
    Thanks received
    18
    Rep Power
    33
    sorry for not renaming, i have no time i'm late for football hope it helps
    Code:
    ID = 1591
    npcDefinition.name = "Iron dragon";
    npcDefinition.floorTileSize = 4;
    npcDefinition.standAnimation = 90;
    npcDefinition.walkAnimation = 79;
    npcDefinition.standTurnAnimation = -1;
    npcDefinition.turn90CCAnimation = -1;
    npcDefinition.turn90Animation = -1;
    npcDefinition.turn180Animation = -1;
    npcDefinition.combatLevel = 189;
    npcDefinition.headIcon = -1;
    npcDefinition.getDegreeseToTurn = 32;
    npcDefinition.modelLighting = 15;
    npcDefinition.modelShadowing = 75;
    npcDefinition.scaleModelWidth = 128;
    npcDefinition.scaleModelHeight = 128;
    npcDefinition.allowRightClickMenu = true;
    npcDefinition.unkownBoolean1 = true;
    npcDefinition.unkownInt1 = -1;
    npcDefinition.unkownBoolean2 = true;
    npcDefinition.isVisible = false;
    npcDefinition.varBitChild = -1;
    npcDefinition.configChild = -1;
    npcDefinition.ComponentModels = new int[4];
    npcDefinition.ComponentModels[0] = 24577;
    npcDefinition.ComponentModels[1] = 24586;
    npcDefinition.ComponentModels[2] = 24582;
    npcDefinition.ComponentModels[3] = 17423;
    npcDefinition.colour1 = new int[6];
    npcDefinition.colour1[0] = -22256;
    npcDefinition.colour1[1] = -27364;
    npcDefinition.colour1[2] = -27359;
    npcDefinition.colour1[3] = -27479;
    npcDefinition.colour1[4] = -27471;
    npcDefinition.colour1[5] = -27446;
    npcDefinition.menuActions = new int[5];
    npcDefinition.menuActions[0] = null;
    npcDefinition.menuActions[1] = Attack;
    npcDefinition.menuActions[2] = null;
    npcDefinition.menuActions[3] = null;
    npcDefinition.menuActions[4] = null;
    npcDefinition.colour2 = new int[6];
    npcDefinition.colour2[0] = 20;
    npcDefinition.colour2[1] = 24;
    npcDefinition.colour2[2] = 28;
    npcDefinition.colour2[3] = 33;
    npcDefinition.colour2[4] = 37;
    npcDefinition.colour2[5] = 41;
    Reply With Quote  
     

  9. #9  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,501
    Thanks given
    204
    Thanks received
    322
    Rep Power
    588
    Yeah they match up but still its not recolord

    Just live life at its fullest.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #10  
    Whatchu talkin bout willis?

    Gary's Avatar
    Join Date
    Sep 2008
    Posts
    4,165
    Thanks given
    690
    Thanks received
    646
    Rep Power
    3462
    how many times do i have to say it???!??!?!??!?!?!?

    YOUR USING THE WRONG COLOURS!

    does that make it clearer? ...
    Ellie
    Sadly lost my beautiful ellie in july 2018 always going to miss you my girl
    Spoiler for sig too big:


    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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