Thread: Gano And Poly!

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Gano And Poly! 
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    I've added gano and polypor to my server but i only have the use option


    If you can help me ill rep!
    Reply With Quote  
     

  2. #2  
    Registered Member Skarlett's Avatar
    Join Date
    Apr 2013
    Posts
    405
    Thanks given
    47
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by anthonyslegion View Post
    I've added gano and polypor to my server but i only have the use option


    If you can help me ill rep!
    Add the wear, in itemdef.

    Code:
    itemDef.itemActions[1] = "Wear";

    Code:
    itemDef.modelid = 10919;
    		itemDef.name = "Gandodermic Poncho";
    		itemDef.description = "It's a Gandodermic Poncho";
    		itemDef.modelZoom = 1513;
    		itemDef.modelRotationY = 384;
    		itemDef.modelRotationX = 0;
    		itemDef.modelOffset1 = 0;
    		itemDef.modelOffset2 = 0;
    		itemDef.anInt165 = 10490;
    		itemDef.anInt200 = 10490;
    		itemDef.groundActions = new String[5];
    		itemDef.groundActions[2] = "Take";
    		itemDef.itemActions = new String[5];
    		itemDef.itemActions[1] = "Wear";
    		itemDef.itemActions[4] = "Drop";
    For polypore:

    Code:
    case 20051:
    	itemDef.name = "Polypore staff";
    	itemDef.description = "It's a Polypore staff";
    	itemDef.itemActions = new String[] { null, "Wield", "Check", "Clean", "drop"};
    	itemDef.groundActions = new String[] { null, null, "take", null, null};
    	itemDef.modelid = 13426;
    	itemDef.anInt165 = 13417;
    	itemDef.anInt200 = 13417;
    	itemDef.modelZoom = 3750;
    	itemDef.modelRotationY = 1454;
    	itemDef.modelRotationX = 997;
    	itemDef.modelOffset1 = 0;
    	itemDef.modelOffset2 = 8;
    break;

    Code:
    	itemDef.itemActions = new String[] { null, "Wield", "Check", "Clean", "drop"};
    ♡Lovvveeee♡
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    still cant wear gano
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by AinProds View Post
    Add the wear, in itemdef.

    Code:
    itemDef.itemActions[1] = "Wear";

    Code:
    itemDef.modelid = 10919;
    		itemDef.name = "Gandodermic Poncho";
    		itemDef.description = "It's a Gandodermic Poncho";
    		itemDef.modelZoom = 1513;
    		itemDef.modelRotationY = 384;
    		itemDef.modelRotationX = 0;
    		itemDef.modelOffset1 = 0;
    		itemDef.modelOffset2 = 0;
    		itemDef.anInt165 = 10490;
    		itemDef.anInt200 = 10490;
    		itemDef.groundActions = new String[5];
    		itemDef.groundActions[2] = "Take";
    		itemDef.itemActions = new String[5];
    		itemDef.itemActions[1] = "Wear";
    		itemDef.itemActions[4] = "Drop";
    For polypore:

    Code:
    case 20051:
    	itemDef.name = "Polypore staff";
    	itemDef.description = "It's a Polypore staff";
    	itemDef.itemActions = new String[] { null, "Wield", "Check", "Clean", "drop"};
    	itemDef.groundActions = new String[] { null, null, "take", null, null};
    	itemDef.modelid = 13426;
    	itemDef.anInt165 = 13417;
    	itemDef.anInt200 = 13417;
    	itemDef.modelZoom = 3750;
    	itemDef.modelRotationY = 1454;
    	itemDef.modelRotationX = 997;
    	itemDef.modelOffset1 = 0;
    	itemDef.modelOffset2 = 8;
    break;

    Code:
    	itemDef.itemActions = new String[] { null, "Wield", "Check", "Clean", "drop"};


    Still cant wear gano but the options there
    Reply With Quote  
     

  5. #5  
    Registered Member Skarlett's Avatar
    Join Date
    Apr 2013
    Posts
    405
    Thanks given
    47
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by anthonyslegion View Post
    Still cant wear gano but the options there
    Add them to your item.java.

    Server-side.

    Example:

    Code:
    private static String[] fullbody = {
    		"top", "chestplate", "shirt","platebody","Ahrims robetop",
    		"Karils leathertop","brassard","Robe top","robetop",
    		"platebody (t)","platebody (g)","chestplate",
    		"torso", "hauberk", "Dragon chainbody", "blouse", "jacket", "Poncho",

    Code:
    private static String[] fullbody = {
    Code:
    private static String[] fullhat = {
    Code:
    public static boolean playerLegs(int itemId) {
    ♡Lovvveeee♡
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by AinProds View Post
    Add them to your item.java.

    Server-side.

    Give meh a rough idea?
    Reply With Quote  
     

  7. #7  
    Registered Member Skarlett's Avatar
    Join Date
    Apr 2013
    Posts
    405
    Thanks given
    47
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by anthonyslegion View Post
    Give meh a rough idea?
    I edit the post.
    ♡Lovvveeee♡
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by AinProds View Post
    I edit the post.
    could u do the rest
    Reply With Quote  
     

  9. #9  
    Registered Member Skarlett's Avatar
    Join Date
    Apr 2013
    Posts
    405
    Thanks given
    47
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by anthonyslegion View Post
    what do i add under here please


    Code:
    if(c.duelRule[11] && targetSlot == 0) {
    					c.sendMessage("Wearing hats has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[12] && targetSlot == 1) {
    					c.sendMessage("Wearing capes has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[13]  && targetSlot == 2) {
    					c.sendMessage("Wearing amulets has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[14]  && targetSlot == 3) {
    					c.sendMessage("Wielding weapons has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[15]  && targetSlot == 4) {
    					c.sendMessage("Wearing bodies has been disabled in this duel!");
    					return false;
    				}
    				if((c.duelRule[16] && targetSlot == 5) || (c.duelRule[16] && is2handed(getItemName(wearID).toLowerCase(), wearID))) {
    					c.sendMessage("Wearing shield has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[17]  && targetSlot == 7) {
    					c.sendMessage("Wearing legs has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[18]  && targetSlot == 9) {
    					c.sendMessage("Wearing gloves has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[19]  && targetSlot == 10) {
    					c.sendMessage("Wearing boots has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[20]  && targetSlot == 12) {
    					c.sendMessage("Wearing rings has been disabled in this duel!");
    					return false;
    				}
    				if(c.duelRule[21]  && targetSlot == 13) {
    					c.sendMessage("Wearing arrows has been disabled in this duel!");
    					return false;
    				}
    You don't put it there. >.> post your item.java.
    ♡Lovvveeee♡
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Apr 2013
    Posts
    245
    Thanks given
    9
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by AinProds View Post
    You don't put it there. >.> post your item.java.
    Code:
    package server.model.items;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import server.Config;
    import server.Server;
    public class Item {
    
    	
    	public static int capes[] = {2731,2677,2683,2680,2701,2686,2689,2692,2737,2734,2716,2728,2695,2713,2725,2722,2707,2704,2710,2719,2737,2698,14590,2701,8102, 8075, 8044, 8045, 8042, 8043, 8037, 8038, 8025, 8026, 8018, 7858, 7994, 7983, 7984, 7985, 7986, 7987, 7982, 7978, 3781, 3783, 3785, 3787, 3789, 3777, 3779, 3759, 3761, 3763, 3765, 6111, 6570, 6568, 1007, 1019, 1021, 1023, 1027, 1029, 1031, 1052, 2412, 2413, 2414, 4304, 4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413, 4514, 4516, 6070, 6568, 6570};
        public static int boots[] = {7596, 8029, 6619, 8017, 7159, 7991, 6666, 6061, 6106, 88, 89, 626, 628, 630, 632, 634, 1061, 1837, 1846, 2577, 2579, 2894, 2904, 2914, 2924, 2934, 3061, 3105, 3107, 3791, 4097, 4107, 4117, 4119, 4121, 4123, 4125, 4127, 4129, 4131, 4310, 5064, 5345, 5557, 6069, 6106, 6143, 6145, 6147, 6328, 6920, 6349, 6357, 3393};
        public static int gloves[] = {7595, 6629, 8021, 8016, 7964, 2491, 1065, 2487, 2489, 3060, 1495, 775, 777, 778, 6708, 1059, 1063, 1065, 1580, 2487, 2489, 2491, 2902, 2912, 2922, 2932, 2942, 3060, 3799, 4095, 4105, 4115, 4308, 5556, 6068, 6110, 6149, 6151, 6153, 6922, 7454, 7455, 7456, 7457, 7458, 7459, 7460, 7461, 7462, 6330, 3391};
        public static int shields[] = {7676,7342, 7348, 7354, 7360, 7334, 7340, 7347, 7352, 7358, 7356, 7350, 7344, 8087, 8058, 8059, 8060, 8061, 8062, 8063, 6633, 7977, 7976, 7972, 7959, 6591, 7332, 7338, 7336, 7360, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1540, 2589, 2597, 2603, 2611, 2621, 2629, 2659, 2667, 2675, 2890, 3122, 3488, 3758, 3839, 3840, 3841, 3842, 3843, 3844, 4072, 4156, 4224, 4225, 4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4302, 4507, 4512, 6215, 6217, 6219, 6221, 6223, 6225, 6227, 6229, 6231, 6233, 6235, 6237, 6239, 6241, 6243, 6245, 6247, 6249, 6251, 6253, 6255, 6257, 6259, 6261, 6263, 6265, 6267, 6269, 6271, 6273, 6275, 6277, 6279, 6524, 6889};
        public static int hats[] = {2679,2685,2682,2703,2688,2691,2691,2733,2736,2718,2730,2697,2715,2727,2724,2709,2706,2712,2721,2739,2700,2518,2524,2526,7319, 7321, 7323, 7325, 7327, 1167, 8077, 8076, 8074, 4168, 1169, 8034, 8035, 8036, 8030, 6623, 8024, 8023, 8022, 8013, 1169, 7594, 7995, 7996, 7997, 7998, 7999, 8000, 8001, 7992, 7990, 7975, 7973, 7971, 7967, 7963, 6665, 6665, 7321, 6886, 6547, 6548, 2645, 2647, 2649, 4856, 4857, 4858, 4859, 4880, 4881, 4882, 4883, 4904, 4905, 4906, 4907, 4928, 4929, 4930, 4931, 4952, 4953, 4954, 4955, 4976, 4977, 4978, 4979, 4732, 4753, 4611, 6188, 6182, 4511, 4056, 4071, 4724, 2639, 2641, 2643, 2665, 6109, 5525, 5527, 5529, 5531, 5533, 5535, 5537, 5539, 5541, 5543, 5545, 5547, 5549, 5551, 74, 579, 656, 658, 660, 662, 664, 740, 1017, 1037, 1040, 1042, 1044, 1046, 1038,1048, 1050, 1053, 1055, 1057, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151, 1153, 1155, 1157, 1159, 1161, 1163, 1165, 1506, 1949, 2422, 2581, 2587, 2595, 2605, 2613, 2619, 2627, 2631, 2633, 2635, 2637, 2651, 2657, 2673, 2900, 2910, 2920, 2930, 2940, 2978, 2979, 2980, 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 2994, 2995, 3057, 3385, 3486, 3748, 3749, 3751, 3753, 3797, 4041, 4042, 4071, 4089, 3755, 4099, 4109, 4164, 4302, 4506, 4511, 4513, 4515, 4551, 4567, 4708, 4716, 4724, 4745, 4753, 4857, 4858, 4859, 4880, 4881, 4882, 4883, 4904, 4905, 4906, 4907, 4952, 4953, 4954, 4955, 4976, 4977, 4978, 4979, 5013, 5014, 5554, 5574, 6109, 6128, 6131, 6137, 6182, 6188, 6335, 6337, 6339, 6345, 6355, 6365, 6375, 6382, 6392, 6400, 6918, 6656, 2581, 7539, 7394, 7396, 7534, 5574, 6885, 6858, 6860, 6862, 6856, 6326, 6128, 6137, 7400, 7323, 7325, 7327, 7003};
        public static int amulets[] = {1654, 1656, 1658, 1660, 1662, 1664, 8081, 8033, 7968, 6585, 86, 87, 295, 421, 552, 589, 1478, 1692, 1694, 1696, 1698, 1700, 1702, 1704, 1706, 1708, 1710, 1712, 1725, 1727, 1729, 1731, 4021, 4081, 4250, 4677, 6040, 6041, 6208, 1718, 1722, 6859, 6863, 6857};
        public static int arrows[] = {11212,8052,9211,9010,9209,9208,9207,9206,9205,9203,9301, 8065, 7919, 7906, 7988, 7989, 78, 598, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 942, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2866, 4160, 4172, 4173, 4174, 4175, 4740, 5616, 5617, 5618, 5619, 5620, 5621, 5622, 5623, 5624, 5625, 5626, 5627, 6061, 6062};
        public static int rings[] = {8082, 773, 1635, 1637, 1639, 1641, 1643, 1645, 2550, 2552, 2554, 2556, 2558, 2560, 2562, 2564, 2566, 2568, 2570, 2572, 4202, 4657, 6465, 6737, 6731, 6735, 6735, 6583, 6733};
        public static int body[] = {7608,2520,430,7362, 7364, 636, 638, 640, 642, 644, 8064, 426, 1005, 1757, 7592, 8031, 8027, 6617, 8019, 8014, 8002, 7376, 544, 7372, 7370, 577, 7974, 7970, 7965, 7961, 7960, 3793, 3775, 3773, 3771, 3769, 3767, 6139, 1135, 2499, 2501, 1035, 540, 5553, 4757, 1833, 6388, 6384, 4111, 4101, 4091, 6186, 6184, 6180, 3058, 4509, 4504, 4069, 4728, 4736, 4712, 6107, 2661, 3140, 1101, 1103, 1105, 1107, 1109, 1111, 1113, 1115, 1117, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 2583, 2591, 2599, 2607, 2615, 2623, 2653, 2669, 3481, 4712, 4720, 4728, 4749, 4892, 4893, 4894, 4895, 4916, 4917, 4918, 4919, 4964, 4965, 4966, 4967, 6107, 6133, 6322, 6322, 6129, 75, 6916, 6916, 4111, 6654, 6654, 75, 7399, 7390, 7374, 5575, 2503, 6341, 6351, 3387, 5030, 5032, 5034, 5030, 5032, 5034, 7392, 546};
        public static int legs[] = {7609,2522,7378, 7380, 7382, 7368, 7366, 7388, 646, 648, 650, 652, 654, 428, 1097, 1095, 7593, 8032, 8028, 6625, 8020, 8015, 7384, 7969, 7966, 7962, 6141, 1835, 538, 1033, 5555, 4759, 6386, 6390, 2497, 2495, 2493, 1099, 4113, 4103, 4093, 6924, 6187, 6185, 6181, 3059, 4510, 4505, 4070, 6108, 538, 542, 548, 1011, 1013, 1015, 1067, 1069, 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085, 1087, 1089, 1091, 1093, 2585, 2593, 2601, 2609, 2617, 2625, 2655, 2663, 2671, 3059, 3389, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3483, 3485, 3795, 4087, 4585, 4712, 4714, 4722, 4730, 4738, 4751, 4759, 4874, 4875, 4876, 4877, 4898, 4899, 4900, 4901, 4922, 4923, 4924, 4925, 4946, 4947, 4948, 4949, 4970, 4971, 4972, 4973, 4994, 4995, 4996, 4997, 5048, 5050, 5052, 5576, 6107, 6130, 6187, 6390, 6386, 6390, 6396, 6404, 6135, 6809, 6916, 4091, 4111, 6655, 6654, 7398, 7398, 7386, 6324, 6343, 6353, 3387, 5036, 5038, 5040};
        public static int platebody[] = {13944,13911,10338,7608,2520,430,636, 638, 640, 642, 644, 426, 8031, 8027, 6617, 8019, 8014, 8002, 544, 577, 7974, 7970, 7965, 7961, 7960, 3793, 3773, 3775, 3771, 3769, 3767, 6139, 1035, 540, 5553, 4757, 1833, 1835, 6388, 6384, 4111, 4101, 4868, 4869, 4870, 4871, 4892, 4893, 4894, 4895, 4916, 4917, 4918, 4919, 4940, 4941, 4942, 4943, 4964, 4965, 4966, 4967, 4988, 4989, 4990, 0x2f9a0eb, 6186, 6184, 6180, 3058, 4509, 4504, 4069, 4728, 4736, 4712, 6107, 2661, 3140, 1115, 1117, 1119, 1121, 1123, 1125, 1127, 2583, 2591, 2599, 2607, 2615, 6322, 2623, 2653, 2669, 3481, 4720, 4728, 4749, 2661, 6129, 6916, 4091, 6654, 6133, 75, 7399, 7390, 5575, 6341, 6351, 3387, 5030, 5032, 5034, 7392};
        
    	/* Fullbody is an item that covers your arms. */
        private static String[] fullbody = {"vesta's chainbody", "top", "shirt", "platebody", "ahrims robetop","karils leathertop"," brassard", "robe top", "robetop", "platebody (t)",
    										"platebody (g)", "chestplate"," torso", "hauberk", "dragon chainbody", "pernix", "morrigan", "Poncho",};
        /* Fullhat covers your head but not your beard. */
        private static String[] fullhat = {"med helm", "coif", "dharok's helm", "hood", "tnitiate helm", "coif", "helm of neitiznot", "armadyl helmet", "berserker helm", 
    										"archer helm", "farseer helm", "warrior helm", "mage hat", "pernix"};
        /* Fullmask covers your entire head. */
        private static String[] fullmask = {"full helm", "mask", "verac's helm", "guthan's helm", "karil's coif", "mask", "torag's helm", "void", "sallet", "Visor",};
    	
    	
    	
    	public static boolean isFullBody(int itemId) {
            String weapon = getItemName(itemId);
    		if (weapon == null)
    			return false;
    			if(itemId ==12750)
    			return true;
            for (int i = 0; i < fullbody.length; i++) {
                if (weapon.toLowerCase().contains(fullbody[i])) {
                    return true;
                }
            }
            return false;
        }
    
        public static boolean isFullHelm(int itemId) {
            String weapon = getItemName(itemId);
    		if (weapon == null)
    			return false;
            for (int i = 0; i < fullhat.length; i++) {
                if (weapon.toLowerCase().contains(fullhat[i]) && !weapon.contains("hood hat")) {
                    return true;
                }
    			if(itemId == 15492)
    			return true;
            }
            return false;
        }
    
        public static boolean isFullMask(int itemId) {
            String weapon = getItemName(itemId);
    		if (weapon == null)
    			return false;
    			if(itemId ==12749)
    			return true;
            for (int i = 0; i < fullmask.length; i++) {
                if (weapon.toLowerCase().contains(fullmask[i]) && !weapon.contains("hood hat")) {
                    return true;
                }
            }
            return false;
        }
    	
    	public static String getItemName(int id) {
    		for (int j = 0; j < Server.itemHandler.ItemList.length; j++) {
    			if (Server.itemHandler.ItemList[j] != null)
    				if (Server.itemHandler.ItemList[j].itemId == id)
    					return Server.itemHandler.ItemList[j].itemName;	
    		}
    		return null;
    	}
    	
    	
    	public static boolean[] itemStackable = new boolean[Config.ITEM_LIMIT];
    	public static boolean[] itemIsNote = new boolean[Config.ITEM_LIMIT];
    	public static int[] targetSlots = new int[Config.ITEM_LIMIT];
    	static {
    		int counter = 0;
    		int c;
    		
    		int otherStacks[] = {13883,13879,15273,18831,18832,15487,14485,13888,13894,13900,13906,14491,14493,14495,13735,13737,13739,
    							13741,13743,13745,13885,13891,13897,13903,13859,13862,13865,13867,13871,13874,13877,14498,
    							14500,14502,19294,15242,15243};
    		for (int i = 0; i < otherStacks.length; i++)
    			itemStackable[otherStacks[i]] = true;
    			
    		int otherNotes[] = {15273,18831,18832,15487,14485,13888,13894,13900,13906,14491,14493,14495,13735,13737,13739,
    							13741,13743,13745,13885,13891,13897,13903,13859,13862,13865,13867,13871,13874,13877,14498,
    							14500,14502,15242,19294};
    		for (int i = 0; i < otherNotes.length; i++)
    			itemIsNote[otherNotes[i]] = true;
    		
    		try {
    			FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat"));
    			while ((c = dataIn.read()) != -1) {
    				if (c == 0) {
    					itemStackable[counter] = false;
    				} else {
    					itemStackable[counter] = true;
    				}
    				counter++;
    			}
    			dataIn.close();
    		} catch (IOException e) {
    			System.out.println("Critical error while loading stackabledata! Trace:");
    			e.printStackTrace();
    		}
    
    		counter = 0;
    		
    		try {
    			FileInputStream dataIn = new FileInputStream(new File("./Data/data/notes.dat"));
    			while ((c = dataIn.read()) != -1) {
    				if (c == 0) {
    					itemIsNote[counter] = true;
    				} else {
    					itemIsNote[counter] = false;
    				}
    				counter++;
    			}
    			dataIn.close();
    		} catch (IOException e) {
    			System.out.println("Critical error while loading notedata! Trace:");
    			e.printStackTrace();
    		}
    		
    		counter = 0;
    		try {
    			FileInputStream dataIn = new FileInputStream(new File("./Data/data/equipment.dat"));
    			while ((c = dataIn.read()) != -1) {
    				targetSlots[counter++] = c;
    			}
    			dataIn.close();
    		} catch (IOException e) {
    			System.out.println("Critical error while loading notedata! Trace:");
    			e.printStackTrace();
    		}
    		
    		/*try {
                BufferedReader in = new BufferedReader(new FileReader("./data/data/equipment.dat"));
    			String name = null;
                while ((name = in.readLine()) != null) {
                    int itemId = Integer.parseInt(name.substring(0, name.indexOf(":")));
                    int equipId = Integer.parseInt(name.substring(name.indexOf(":") + 1));
                    targetSlots[itemId] = equipId;
                }
                in.close();
                in = null;
            } catch (Exception e) {
                System.out.println("Error loading equipment list.");
            }*/
    
    	}
    
    
    	
    	
    
    }

    Not working
    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

Similar Threads

  1. my latest sigs :D and random GFX
    By Oblak Lol in forum Showcase
    Replies: 10
    Last Post: 03-31-2007, 10:41 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
  •