2013-08-07

Is there a way to do this.

Quote:

public void handleCraftingClick(int clickId) {

switch (clickId) {

case 34193: //bodys x1

switch (c.hideId) {

case 1741:

craftLeather(1129); //Leather body

break;

case 1745:

craftLeather(1135); //Green d'hide body

break;

case 2505:

craftLeather(2499); //Blue d'hide body

break;

case 2507:

craftLeather(2501); //Red d'hide body

break;

case 2509:

craftLeather(2503); //Black d'hide body

break;

}

break;

case 34192: //bodys x5

switch (c.hideId) {

case 2509:

craftLeather(2503);

craftLeather(2503);

craftLeather(2503);

craftLeather(2503);

craftLeather(2503);

break;

}

break;

}

}

Quote:

//id,cost,many

public int[][] buttons = {{34185,1,1},{34184,1,5},{34183,1,10},{34182,1,27} ,{34189,2,1},{34188,2,5},{34187,2,10},{34186,2,27} ,{34193,3,1},{34192,3,5},{34191,3,10},{34190,3,27} };

By doing something like this?

I have seen this done in other codes, but when I try to implement it to my crafting.java it doesn't work... Anyone know?

Show more