I take no credit for this as it should be already in everyones source, this is just a tutorial to show you how to actually use it or change it.
[This is tested on a dragonkk 614 base]
First open up Player.java
Look for
Code:
public boolean playerMuted = false;
Under that add
Code:
public boolean Resetitems = false;
Next go on Frames.java
Find
Code:
public void sendOtherLoginPackets() {
Under that add
1042 and 1043 are the blue party hat and the noted version - the items.
Code:
int[] resetthem = { 1042, 1043 };
Under that add
Code:
if (!this.player.Resetitems) {
for (int item = 0; item < resetthem.length; item++) {
if (player.getBank().bank.contains(new Item(resetthem[item]))) {
player.getBank().deleteItem(resetthem[item], 1000000000);
}
if(player.getInventory().contains(resetthem[item])) {
player.getInventory().deleteAll(resetthem[item]);
}
if(player.getEquipment().contains(resetthem[item])) {
player.getEquipment().getEquipment().removeAll(new Item(resetthem[item]));
}
}
this.player.Resetitems = true;
}
Compile and then restart your server and done