Thread: Custom items not equipable?

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Custom items not equipable? 
    Salty
    Guest
    I successfully got my custom items into the game itself, but they aren't equipable!

    Is there something I'm forgetting to do? I put the items in my model folder, put the ids in the app and model loader!
    Reply With Quote  
     

  2. #2  
    Registered Member
    X Mercy X's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    1,336
    Thanks given
    3
    Thanks received
    41
    Rep Power
    301
    you haven't made them equipable Serversided - search up fixing unsupported items

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2009
    Posts
    1,312
    Thanks given
    148
    Thanks received
    161
    Rep Power
    33
    Equipment.java
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2010
    Age
    31
    Posts
    129
    Thanks given
    12
    Thanks received
    8
    Rep Power
    0
    X Mercy X is correct.
    Reply With Quote  
     

  5. #5  
    Salty
    Guest
    I couldn't find anything on fixing unsupported items, is there something more specific I can type in?

    Or is it in the equipment java? Do I just type in the name of the armor?
    Reply With Quote  
     

  6. #6  
    st0n3r
    Guest
    This is what u need 2 do...Go in2 your class8.java file in your CLIENT not your source..then use this..

    if(i == ####)
    {
    itemDef.actions = new String[5];
    itemDef.actions[1] = "Wield";
    itemDef.modifiedModelColors = new int[2];
    itemDef.originalModelColors = new int[2];
    itemDef.modifiedModelColors[0] = ###; //color of the model
    itemDef.originalModelColors[0] = #####; //color of the model
    itemDef.modifiedModelColors[1] = ####; //color of the model
    itemDef.originalModelColors[1] = #####; //color of the model
    itemDef.modelID = #####; //the model id
    itemDef.modelOffset1 = 1;
    itemDef.modelZoom = 724;
    itemDef.modelRotation1 = 69;
    itemDef.modelRotation2 = 194;
    itemDef.modelOffset2 = -1;
    itemDef.anInt204 = 0;
    itemDef.femaleID = #####; // Model ID for female
    itemDef.maleID = #####; // Model ID for male
    itemDef.stackable = false;
    itemDef.name = "item name";
    itemDef.description = "examine infogetBytes();
    }

    copy and paste that but just change all the #### to the correct id's..
    after that go into your item.java in your source and add the item id to watever your trying 2 equip it to
    if it still doesn't work then that means your model isn't compatible with your client
    Reply With Quote  
     

  7. #7  
    Thekyles
    Guest
    @Stoner

    Ive created a custom item server side, But i cant figure out how to make it client side. Heres my code for my item in the server side:

    Items.java
    Code:
    item = 13659	Saradomin_God_Armor	The_armor_worn_by_Saradomin_herself	566670	566670	850000	0	0	0	-30	0	109	107	97	-6	106	5	5
    Equipment.dat (Idk what this is but i just added the item id to the bottom of the list)
    Code:
    13658:3120
    136859:3121
    Equipment.java
    Code:
    /* Fullbody is an item that covers your arms. */
        private String[] fullbody = {
            "top", "Granite body", "plate", "blouse", "shirt", "platebody", "Zamorak d'hide", "Zamorak dragonhide", "Saradomin dragonhide", "Guthix dragnohide", "Ahrims robetop", "Karils leathertop",
            "brassard", "Robe top", "robetop", "platebody (t)", "platebody (g)",
            "chestplate", "torso", "chainbody", "Varrock armour", "Guthix d'hide", "Saradomin d'hide", "Prince tunic", "Wizard robe (g)", "Wizard robe (t)", "Runecrafter robe", "Dragon platebody", "Saradomin God Armor"};
    But when i go into the client and type ::item 13659 1 and i get the item then it says null, and has the icon of a dwarf head icon, but if i examine it says my server side discription.

    Where do i add that code in class8.java stoner? My class8.java looks like this:

    Code:
    /* Class8 - Decompiled by JODE
     * Visit http://jode.sourceforge.net/
     */
    
    public class Class8
    {
        public int anInt138;
        public int anInt139;
        public static Class16 aClass16_140 = new Class16();
        public int anInt141;
        public int anInt142;
        public int anInt143;
        public int anInt144;
        public int anInt145;
        public int anInt146;
        public int anInt147;
        public int anInt148;
        public int anInt149;
        public int anInt150;
        public static int anInt151;
        public int anInt152;
        public int anInt153;
        public static int anInt154;
        public static int anInt155;
        public int anInt156;
        public int anInt157;
        public static int anInt158;
        public int anInt159;
        public static int anInt160 = 0;
        public static int anInt161;
        public int anInt162;
        public static int anInt163 = 0;
        public static Class21 aClass21_164;
        public static RSString aRSString_165
    	= Class112.method1668(43, ":chalreq:");
        
        public static void method202(boolean bool) {
    	anInt151++;
    	int i = 0;
    	for (int i_0_ = 0; (i_0_ ^ 0xffffffff) > -105; i_0_++) {
    	    for (int i_1_ = 0; i_1_ < 104; i_1_++) {
    		if (Class75_Sub1_Sub1.method1391
    		    (true, Class22.aClass68_Sub1ArrayArrayArray484, i_1_, i_0_,
    		     i, (byte) 95))
    		    i++;
    		if (i >= 512)
    		    return;
    	    }
    	}
    	if (bool != true)
    	    method203(true, null, null, null, 106);
        }
        
        public static void method203(boolean bool, RSString class100,
    				 RSString class100_2_, RSString class100_3_,
    				 int i) {
    	try {
    	    if (bool != false)
    		aClass16_140 = null;
    	    anInt155++;
    	    Class25.method386(class100_3_, -19596, class100, -1, i,
    			      class100_2_);
    	} catch (RuntimeException runtimeexception) {
    	    throw Class107.method1652(runtimeexception,
    				      ("ba.B(" + bool + ','
    				       + (class100 != null ? "{...}" : "null")
    				       + ','
    				       + (class100_2_ != null ? "{...}"
    					  : "null")
    				       + ','
    				       + (class100_3_ != null ? "{...}"
    					  : "null")
    				       + ',' + i + ')'));
    	}
        }
        
        public static RSString method204(int i, Class45 class45) {
    	anInt158++;
    	if (i == Class1_Sub6_Sub2.method164(118, client.method41(class45)))
    	    return null;
    	if (class45.aRSString_884 == null
    	    || (class45.aRSString_884.method1585(true).method1590((byte) -125)
    		== 0)) {
    	    if (Class68_Sub20.aBoolean3094)
    		return Class97.aRSString_1705;
    	    return null;
    	}
    	return class45.aRSString_884;
        }
        
        public static void method205(int i, int i_4_, int i_5_, boolean bool,
    				 int i_6_, int i_7_, int i_8_) {
    	Class60.method587(-1, i);
    	int i_9_ = -i_4_ + i;
    	int i_10_ = 0;
    	if (i_9_ < 0)
    	    i_9_ = 0;
    	int i_11_ = -i;
    	int i_12_ = i;
    	anInt154++;
    	int i_13_ = i_9_;
    	int i_14_ = -i_9_;
    	int i_15_ = -1;
    	int[] is = Class68_Sub22.anIntArrayArray3132[i_8_];
    	int i_16_ = -1;
    	int i_17_ = i_5_ + -i_9_;
    	Class34.method416(i_5_ - i, (byte) -17, i_7_, is, i_17_);
    	int i_18_ = i_5_ + i_9_;
    	Class34.method416(i_17_, (byte) -17, i_6_, is, i_18_);
    	Class34.method416(i_18_, (byte) -17, i_7_, is, i + i_5_);
    	if (bool != true)
    	    anInt161 = -97;
    	while (i_10_ < i_12_) {
    	    i_15_ += 2;
    	    i_16_ += 2;
    	    i_11_ += i_15_;
    	    i_14_ += i_16_;
    	    if (i_14_ >= 0 && (i_13_ ^ 0xffffffff) <= -2) {
    		Class71_Sub1.anIntArray3255[i_13_] = i_10_;
    		i_13_--;
    		i_14_ -= i_13_ << 1629697313;
    	    }
    	    i_10_++;
    	    if (i_11_ >= 0) {
    		i_12_--;
    		i_11_ -= i_12_ << -163046623;
    		if ((i_9_ ^ 0xffffffff) >= (i_12_ ^ 0xffffffff)) {
    		    int[] is_19_
    			= Class68_Sub22.anIntArrayArray3132[i_12_ + i_8_];
    		    int[] is_20_
    			= Class68_Sub22.anIntArrayArray3132[i_8_ + -i_12_];
    		    int i_21_ = i_10_ + i_5_;
    		    int i_22_ = i_5_ - i_10_;
    		    Class34.method416(i_22_, (byte) -17, i_7_, is_19_, i_21_);
    		    Class34.method416(i_22_, (byte) -17, i_7_, is_20_, i_21_);
    		} else {
    		    int i_23_ = Class71_Sub1.anIntArray3255[i_12_];
    		    int[] is_24_
    			= Class68_Sub22.anIntArrayArray3132[i_12_ + i_8_];
    		    int i_25_ = i_5_ - i_10_;
    		    int[] is_26_
    			= Class68_Sub22.anIntArrayArray3132[i_8_ + -i_12_];
    		    int i_27_ = i_23_ + i_5_;
    		    int i_28_ = i_5_ + i_10_;
    		    int i_29_ = i_5_ - i_23_;
    		    Class34.method416(i_25_, (byte) -17, i_7_, is_24_, i_29_);
    		    Class34.method416(i_29_, (byte) -17, i_6_, is_24_, i_27_);
    		    Class34.method416(i_27_, (byte) -17, i_7_, is_24_, i_28_);
    		    Class34.method416(i_25_, (byte) -17, i_7_, is_26_, i_29_);
    		    Class34.method416(i_29_, (byte) -17, i_6_, is_26_, i_27_);
    		    Class34.method416(i_27_, (byte) -17, i_7_, is_26_, i_28_);
    		}
    	    }
    	    int[] is_30_ = Class68_Sub22.anIntArrayArray3132[i_8_ - i_10_];
    	    int[] is_31_ = Class68_Sub22.anIntArrayArray3132[i_8_ + i_10_];
    	    int i_32_ = i_12_ + i_5_;
    	    int i_33_ = i_5_ - i_12_;
    	    if (i_10_ >= i_9_) {
    		Class34.method416(i_33_, (byte) -17, i_7_, is_31_, i_32_);
    		Class34.method416(i_33_, (byte) -17, i_7_, is_30_, i_32_);
    	    } else {
    		int i_34_ = ((i_13_ ^ 0xffffffff) > (i_10_ ^ 0xffffffff)
    			     ? Class71_Sub1.anIntArray3255[i_10_] : i_13_);
    		int i_35_ = i_34_ + i_5_;
    		int i_36_ = i_5_ + -i_34_;
    		Class34.method416(i_33_, (byte) -17, i_7_, is_31_, i_36_);
    		Class34.method416(i_36_, (byte) -17, i_6_, is_31_, i_35_);
    		Class34.method416(i_35_, (byte) -17, i_7_, is_31_, i_32_);
    		Class34.method416(i_33_, (byte) -17, i_7_, is_30_, i_36_);
    		Class34.method416(i_36_, (byte) -17, i_6_, is_30_, i_35_);
    		Class34.method416(i_35_, (byte) -17, i_7_, is_30_, i_32_);
    	    }
    	}
        }
        
        public static void method206(byte i) {
    	aRSString_165 = null;
    	aClass21_164 = null;
    	aClass16_140 = null;
    	if (i != -9)
    	    aRSString_165 = null;
        }
    }
    and where would i find the model id for Saradomin rune plate body?
    Reply With Quote  
     

  8. #8  
    Salty
    Guest
    Thanks stoner, but where is the code suppose to be in my class 8?
    Reply With Quote  
     

  9. #9  
    Registered Member owner jacob's Avatar
    Join Date
    Nov 2009
    Posts
    230
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by st0n3r View Post
    This is what u need 2 do...Go in2 your class8.java file in your CLIENT not your source..then use this..

    if(i == ####)
    {
    itemDef.actions = new String[5];
    itemDef.actions[1] = "Wield";
    itemDef.modifiedModelColors = new int[2];
    itemDef.originalModelColors = new int[2];
    itemDef.modifiedModelColors[0] = ###; //color of the model
    itemDef.originalModelColors[0] = #####; //color of the model
    itemDef.modifiedModelColors[1] = ####; //color of the model
    itemDef.originalModelColors[1] = #####; //color of the model
    itemDef.modelID = #####; //the model id
    itemDef.modelOffset1 = 1;
    itemDef.modelZoom = 724;
    itemDef.modelRotation1 = 69;
    itemDef.modelRotation2 = 194;
    itemDef.modelOffset2 = -1;
    itemDef.anInt204 = 0;
    itemDef.femaleID = #####; // Model ID for female
    itemDef.maleID = #####; // Model ID for male
    itemDef.stackable = false;
    itemDef.name = "item name";
    itemDef.description = "examine infogetBytes();
    }

    copy and paste that but just change all the #### to the correct id's..
    after that go into your item.java in your source and add the item id to watever your trying 2 equip it to
    if it still doesn't work then that means your model isn't compatible with your client

    stoner that is for a 317 client not a 508 and it should be in equipment.java in

    io/packets/equipment.java
    Reply With Quote  
     

  10. #10  
    Salty
    Guest
    Ok, now I'm confused.

    I put the stats into the into the item.cfg and I put the exact name inside the list public class Equipment implements Packet in the area it should be in. Am I still missing something?
    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
  •