- When i am unskulled and or using protect item prayer and my inventory has 4 coins (anything stackable), then when i die, i will only keep 1
I'm pretty sure it is like that on runescape also? What is wrong with that?
- Ignore list does not save on client restart
This is very easy, here's a fix.
Replace what you originally had in playersave with these things:
Code:
characterfile.write("[IGNORES]", 0, 9);
characterfile.newLine();
for (int i = 0; i < player.ignores.length; i++) {
if (player.ignores[i] > 0) {
characterfile.write("character-ignore = ", 0, 19);
characterfile.write(Integer.toString(i), 0, Integer.toString(i).length());
characterfile.write(" ", 0, 1);
characterfile.write(Long.toString(player.ignores[i]), 0, Long.toString(player.ignores[i]).length());
characterfile.newLine();
}
}
characterfile.newLine();
Add this under case 8:
Code:
case 9:
if (token.equals("character-ignore")) {
player.ignores[Integer.parseInt(token3[0])] = Long.parseLong(token3[1]);
}
break;
Also you may need to add this to your player class:
Code:
ignores[] = new long[200];
I can help with more if I get time, but I'm not asking for any payment.