hi im using the original whitescape and im having trouble using ints and booleans from my client class in a new class i made for crafting
methods such as sendmessage work fine, and for some reason, the boolean addItem works but no deleteItem.
here is my crafting class
Code:
package src.content.skills;
import src.client;
public class Crafting {
public static int gem[] = {1617, 1619, 1621, 1623, 1631};
public static void cutGem(client c) {
if((c.itemUsed == 1755) && (c.useWith == gem)){
c.deleteItem(gem, 1);
c.addItem(995, 100);
}else{
c.sendMessage("You need a chisel to cut this.");
}
}
}
errors
Code:
compiling...
.\src\content\skills\Crafting.java:10: cannot find symbol
symbol : variable itemUsed
location: class src.client
if((c.itemUsed == 1755) && (c.useWith == gem)){
^
.\src\content\skills\Crafting.java:10: cannot find symbol
symbol : variable useWith
location: class src.client
if((c.itemUsed == 1755) && (c.useWith == gem)){
^
.\src\content\skills\Crafting.java:11: cannot find symbol
symbol : method deleteItem(int[],int)
location: class src.client
c.deleteItem(gem, 1);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
Finished!
Press any key to continue . . .
as you can see addItem works fine but deleteItem doesnt. and then the ints in the if statement just plain out dont work