bump
|
Hello ,
I have checked my smithing.java and it support only 2 ores
Which means it req from you maximum 2 ores to smelt a bar...
The problem is that for steel bar it should be 3 ores ( 2 coal + 1 iron )
How can i make it support more than 2 ores?
public class Smithing {
private Client c;
private final int[] SMELT_BARS = {2349,2351,2355,2353,2357,2359,2361,2363};
private final int[] SMELT_FRAME = {2405,2406,2407,2409,2410,2411,2412,2413};
private final int[] BAR_REQS = {1,15,20,30,40,50,70,85};
private final int[] ORE_1 = {438,440,442,440,444,447,449,451};
private final int[] ORE_2 = {436,-1,-1,453,-1,453,453,453};
private final int[] SMELT_EXP = {6,13,15,18,23,30,38,50};
public int item;
public int xp;
public int remove;
public int removeamount;
public int maketimes;
private int exp;
private int oreId;
private int oreId2;
private int barId;
bump
I would suggest to just re-write the smelting because the PI smelting is just ugly.
Code:protected int getOre2(int barType) { for (int j = 0; j < FRAME_BARS.length; j++) { if (barType == FRAME_BARS[j]) { return ORE_2[j][0]; } } return 0; } protected int getOre2Amount(int barType) { for (int j = 0; j < FRAME_BARS.length; j++) { if (barType == FRAME_BARS[j]) { return ORE_2[j][1]; } } return 0; }Code:protected final int ORE_2[][] = { { 436, 1 }, { -1, 0 }, { -1, 0 }, { 453, 2 }, { -1, 0 }, { 453, 4 }, { 453, 6 }, { 453, 8 }, };
private final int[] ORE_3 = {};
protected int getOre3(int barType) {
bump still need help
Jesus christ. Why the fuck are you so cocky, people are trying to help you out. They are not trying to be 'Smart' they are trying to fucking help you.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |