Change the CS data values; I modified frosties cache editor to do this by using the following code (itemeditor.java):
Code:
private void specialSave() {
try {
final int RENDER = 644, STYLE = 686, KEY = STYLE;
final String[] EQUIPMENT_GENERAL = {
//your material type here (bronze etc)
},
EQUIPMENT_SPECIFIC = {
//your item type here (scimitar etc)
};
final int[] VALUES = {
//your value here (String, integer, etc etc)
};
skip: for (int i = 0; i < 30000; i++) {
final ItemDefinitions definitions = ItemDefinitions.getItemDefinition(ItemSelection.STORE, i);
if (definitions != null && definitions.id != -1) {
for (int e = 0; e < EQUIPMENT_GENERAL.length; e++) {
if (definitions.name == null || definitions.name == "")
continue skip;
if (definitions.name.toLowerCase().contains(EQUIPMENT_GENERAL[e])) {
for (int v = 0; v < EQUIPMENT_SPECIFIC.length; v++) {
if (definitions.name.toLowerCase().contains(EQUIPMENT_SPECIFIC[v])) {
if (definitions.clientScriptData != null) {
if(definitions.clientScriptData.containsKey(KEY)) {
Object previous = definitions.clientScriptData.get(KEY);
definitions.clientScriptData.put(KEY, VALUES[v]);
Main.log("ItemDefinitions","Name: "+definitions.name+", Id: "+definitions.id+", Key: "+KEY+", Value: "+previous+" changed to "+definitions.clientScriptData.get(KEY));
if (this.is != null) {
definitions.write(ItemSelection.STORE);
final ItemSelection is = this.is;
is.updateItemDefs(definitions);
} else
Main.log("ERROR","ITEM_SELECTION EQUAL TO NULL");
}
}
}
}
}
}
}
}
} catch (Exception var201) {
Main.log("ItemEditor", "Cannot save. Please check for mistypes.");
}
}