Thread: [PI] Custom Model Help [PI]

Results 1 to 5 of 5
  1. #1 [PI] Custom Model Help [PI] 
    Registered Member capital's Avatar
    Join Date
    Mar 2013
    Posts
    29
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hey guys, so I downloaded, and added a few models to my server, and all the models I added come out the same way. There's a few things that are wrong and I need help fixing.
    [Only registered and activated users can see links. ]
    1.) At the handle, and outlining the sword, should be black, how can I get that in-game
    2.) The sword is offset, and not being "held in my hand".

    Please help meeee!!!

    Here is my Int for this weapon.

    Code:
    if(i == 19960)
            {
                itemdef.modelID = 70740;
                itemdef.name = "Black Demon Sword";
                itemdef.description = (new StringBuilder()).append("It's a ").append(itemdef.name).toString();
                itemdef.stackable = false;
                itemdef.modelZoom = 1755;
                itemdef.modelRotation1 = 431;
                itemdef.modelRotation2 = 545;
                itemdef.modelOffset1 = -2;
                itemdef.modelOffset2 = 3;
                itemdef.anInt165 = 70740;
                itemdef.anInt200 = 70741;
                itemdef.groundActions = new String[5];
                itemdef.groundActions[2] = "Take";
                itemdef.itemActions = new String[5];
                itemdef.itemActions[1] = "Wear";
                itemdef.itemActions[4] = "Destroy";
            }
    Reply With Quote  
     

  2. #2  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    26
    Posts
    1,426
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    try this:
    Code:
    		if(i == 19960)
            {
                itemdef.modelID = 70740;
                itemdef.name = "Black Demon Sword";
                itemdef.description = (new StringBuilder()).append("It's a ").append(itemdef.name).toString();
                itemdef.stackable = false;
                itemdef.modelZoom = 1755;
                itemdef.modelRotation1 = 431;
                itemdef.modelRotation2 = 545;
                itemdef.modelOffset1 = -2;
                itemdef.modelOffset2 = 3;
                itemdef.anInt165 = 70740;
                itemdef.anInt200 = 70741;
    			itemdef.aByte154 = 10;
    			itemdef.aByte205 = 10;
                itemdef.groundActions = new String[]{null, null, "Take", null, null};
                itemdef.itemActions = new String[]{null, "Wear", null, null, "Destroy"};
    			itemdef.originalModelColors = new int []{0};
    			itemdef.modifiedModelColors = new int []{1};
            }
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  3. #3  
    Registered Member capital's Avatar
    Join Date
    Mar 2013
    Posts
    29
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Ash Ketchum View Post
    try this:
    Code:
    		if(i == 19960)
            {
                itemdef.modelID = 70740;
                itemdef.name = "Black Demon Sword";
                itemdef.description = (new StringBuilder()).append("It's a ").append(itemdef.name).toString();
                itemdef.stackable = false;
                itemdef.modelZoom = 1755;
                itemdef.modelRotation1 = 431;
                itemdef.modelRotation2 = 545;
                itemdef.modelOffset1 = -2;
                itemdef.modelOffset2 = 3;
                itemdef.anInt165 = 70740;
                itemdef.anInt200 = 70741;
    			itemdef.aByte154 = 10;
    			itemdef.aByte205 = 10;
                itemdef.groundActions = new String[]{null, null, "Take", null, null};
                itemdef.itemActions = new String[]{null, "Wear", null, null, "Destroy"};
    			itemdef.originalModelColors = new int []{0};
    			itemdef.modifiedModelColors = new int []{1};
            }
    Fixed everything except filling in the invisible areas. But def thanks for you!
    Reply With Quote  
     

  4. #4  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    26
    Posts
    1,426
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    Quote Originally Posted by capital View Post
    Fixed everything except filling in the invisible areas. But def thanks for you!
    try this

    itemdef.java
    Add Into forID



    Code:
    
    	
    if (itemDef.editedModelColor != null) {
    			for (int i2 = 0; i2 < itemDef.editedModelColor.length; i2++) {
    				if (itemDef.newModelColor[i2] == 0) {
    					itemDef.newModelColor[i2] = 1;
    				}
    			}
    		}
    That fixes any models with a recolor of "0"

    Fixing Missing Black on Items


    credits to k4rn4g3
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  5. #5  
    Registered Member capital's Avatar
    Join Date
    Mar 2013
    Posts
    29
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Ash Ketchum View Post
    try this

    itemdef.java
    Add Into forID



    Code:
    
    	
    if (itemDef.editedModelColor != null) {
    			for (int i2 = 0; i2 < itemDef.editedModelColor.length; i2++) {
    				if (itemDef.newModelColor[i2] == 0) {
    					itemDef.newModelColor[i2] = 1;
    				}
    			}
    		}
    That fixes any models with a recolor of "0"

    Fixing Missing Black on Items


    credits to k4rn4g3
    I'm sure this will fix it, but I have no idea where to add this into my ItemDef.java
    [Only registered and activated users can see links. ]
    There's my ItemDef.java

    If you can fix it, please do, if not, can you give me a link to Karnage's tutorial? I couldn't find it. Thanks
    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: 1
    Last Post: 05-24-2014, 08:52 AM
  2. [PI] Custom NPC Help
    By No Mercy X in forum Help
    Replies: 6
    Last Post: 02-20-2011, 02:56 AM
  3. [PI] Inventory model (HELP) [PI] !
    By Preedz in forum Help
    Replies: 9
    Last Post: 01-31-2011, 03:46 PM
  4. [PI] Custom model
    By TGWCam in forum Requests
    Replies: 1
    Last Post: 12-31-2010, 11:40 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
  •