Thread: Necrotic/Ruse party hat help please

Results 1 to 7 of 7
  1. #1 Necrotic/Ruse party hat help please 
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    Hey guys say I have only 6 different colored party hats in game and I want like 10 how would I go about getting more so I can make some new ones with other colors..

    Will thanks and rep thanks guys!!!!

    Quote Originally Posted by KushKings View Post
    Hey guys say I have only 6 different colored party hats in game and I want like 10 how would I go about getting more so I can make some new ones with other colors..

    Will thanks and rep thanks guys!!!!
    I know how to change colors just need to know how to add more party hats
    Reply With Quote  
     

  2. #2  
    nice


    Join Date
    Jul 2014
    Posts
    665
    Thanks given
    288
    Thanks received
    341
    Discord
    View profile
    Rep Power
    2952
    Just add a new definition with phat modelid etc
    Reply With Quote  
     

  3. #3  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    Quote Originally Posted by Suic View Post
    Just add a new definition with phat modelid etc
    so if my id for my pat is 1038 I should make the new one a different number right like 1039 or something

    made a new black party hat and can wear it and looks fine but in invertroy it looks like a messed up party hat anyone know how to fix this problem
    Reply With Quote  
     

  4. #4  
    nice


    Join Date
    Jul 2014
    Posts
    665
    Thanks given
    288
    Thanks received
    341
    Discord
    View profile
    Rep Power
    2952
    Quote Originally Posted by KushKings View Post
    so if my id for my pat is 1038 I should make the new one a different number right like 1039 or something

    made a new black party hat and can wear it and looks fine but in invertroy it looks like a messed up party hat anyone know how to fix this problem
    no u shouldn't make a diff one like "1039" cuz that id is probably used already, use a ID that is not used currently.
    Also if i were u i would just simply create a method which takes 3 params,
    Code:
     int itemId, int[] originalColours, int[] newColours
    Quote Originally Posted by KushKings View Post
    so if my id for my pat is 1038 I should make the new one a different number right like 1039 or something

    made a new black party hat and can wear it and looks fine but in invertroy it looks like a messed up party hat anyone know how to fix this problem
    EG: i just wrote a simple method that copies all the defs of the item u want to copy from, and also allows u to change colors

    https://gyazo.com/d632d7e50555170985744e039830539b

    with
    Code:
    		case 19941:
    			recolorItem(itemDef, 1042, new int[] {926}, new int[] {3801});
    			break;
    Note: u can even make a method that doesn't even ask u for the originalcolors but gets em itself, and the only thing u gotta specify is the dest/new color u want it to have.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2016
    Posts
    275
    Thanks given
    66
    Thanks received
    54
    Rep Power
    119
    Quote Originally Posted by Suic View Post
    no u shouldn't make a diff one like "1039" cuz that id is probably used already, use a ID that is not used currently.
    Also if i were u i would just simply create a method which takes 3 params,
    Code:
     int itemId, int[] originalColours, int[] newColours


    EG: i just wrote a simple method that copies all the defs of the item u want to copy from, and also allows u to change colors

    [Only registered and activated users can see links. ]

    with
    Code:
    		case 19941:
    			recolorItem(itemDef, 1042, new int[] {926}, new int[] {3801});
    			break;
    Note: u can even make a method that doesn't even ask u for the originalcolors but gets em itself, and the only thing u gotta specify is the dest/new color u want it to have.
    This. however to fix the inventory icon, you must change the equip and inv models, not just the item id, for example. but this is only needed if the original model's inv icon is messed up.

    Code:
    case 0002: <----ID of model to spawn ingame via ::item 0002 1
    				itemDef.name = "Black Party Hat";//model name
    				itemDef.groundModel = 1000;//drop model/inv model 
    				itemDef.modelZoom = 900;
    				itemDef.modelRotationY = 165;
    				itemDef.modelRotationX = 99;
    				itemDef.offsetX = 3;
    				itemDef.offsetY =-7;
    				itemDef.maleModel = 71030;//equip model male <----change this model id (the raw dat file id number goes here)
    				itemDef.anInt200 = 71030;//equip model female  <----change this model id (the raw dat file id number goes here)
     				itemDef.actions = new String[5];
    				itemDef.actions[1] = "Wear";
    				break;
    This above is the old way, and not recommended unless you aren't a very good programmer, but you should still try and learn how to change models via colours, and not models.
    Reply With Quote  
     

  6. #6  
    nice


    Join Date
    Jul 2014
    Posts
    665
    Thanks given
    288
    Thanks received
    341
    Discord
    View profile
    Rep Power
    2952
    Quote Originally Posted by DevChaseblade View Post
    This. however to fix the inventory icon, you must change the equip and inv models, not just the item id, for example. but this is only needed if the original model's inv icon is messed up.

    Code:
    case 0002: <----ID of model to spawn ingame via ::item 0002 1
    				itemDef.name = "Black Party Hat";//model name
    				itemDef.groundModel = 1000;//drop model/inv model 
    				itemDef.modelZoom = 900;
    				itemDef.modelRotationY = 165;
    				itemDef.modelRotationX = 99;
    				itemDef.offsetX = 3;
    				itemDef.offsetY =-7;
    				itemDef.maleModel = 71030;//equip model male <----change this model id (the raw dat file id number goes here)
    				itemDef.anInt200 = 71030;//equip model female  <----change this model id (the raw dat file id number goes here)
     				itemDef.actions = new String[5];
    				itemDef.actions[1] = "Wear";
    				break;
    This above is the old way, and not recommended unless you aren't a very good programmer, but you should still try and learn how to change models via colours, and not models.
    The method i wrote completely copies defs of the target item which includes inv/drop models [modelID]

    heres the method i wrote in a few mins that i used for the above example @KushKings

    Code:
     	public static ItemDef copyAndRecolor(ItemDef itemDef, int id, int[] originalColor, int[] newColor) {
    		ItemDef target = ItemDef.forID(id);
    		itemDef.modelID = target.modelID;
    		itemDef.maleEquip1 = target.maleEquip1;
    		itemDef.femaleEquip1 = target.femaleEquip1;
    		itemDef.modelZoom = target.modelZoom;
    		itemDef.rotationX = target.rotationX;
    		itemDef.rotationY = target.rotationY;
    		itemDef.modelOffset1 = target.modelOffset1;
    		itemDef.modelOffsetX = target.modelOffsetX;
    		itemDef.modelOffsetY = target.modelOffsetY;
    		itemDef.actions = target.actions;
    		itemDef.maleEquip2 = target.maleEquip2;
    		itemDef.maleEquip3 = target.maleEquip3;
    		itemDef.femaleEquip2 = target.femaleEquip2;
    		itemDef.femaleEquip3 = target.femaleEquip3;
    		itemDef.maleXOffset = target.maleXOffset;
    		itemDef.maleYOffset = target.maleYOffset;
    		itemDef.femaleYOffset = target.femaleYOffset;
    		itemDef.maleDialogue = target.maleDialogue;
    		itemDef.maleDialogueModel = target.maleDialogueModel;
    		itemDef.femaleDialogueModel = target.femaleDialogueModel;
    		itemDef.editedModelColor = originalColor;
    		itemDef.newModelColor = newColor;
    		return itemDef;
    	}
    Reply With Quote  
     

  7. #7  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    thanks guys going to try this stuff out
    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. Necrotic/Ruse Virtus mask help please
    By KushKings in forum Help
    Replies: 2
    Last Post: 01-22-2019, 11:21 PM
  2. Necrotic/Ruse tax bag help please
    By KushKings in forum Help
    Replies: 16
    Last Post: 01-02-2019, 01:52 PM
  3. Necrotic/Ruse imp hunting help please
    By KushKings in forum Help
    Replies: 8
    Last Post: 12-18-2018, 07:18 AM
  4. Replies: 3
    Last Post: 02-19-2014, 11:57 AM
  5. Drop party command help:) please
    By FlawlessName in forum Help
    Replies: 3
    Last Post: 01-11-2011, 09:06 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
  •