Ok I am using a 718 source.
Base matrix/Cittelum I guess.
I started working on untradeable items kept on death.
I added all theese to itemconstants.java , and theyre not tradeable or anything anymore.
Code:
public static boolean isTradeable(Item item) {
if (item.getDefinitions().getName().toLowerCase()
.contains("flaming skull"))
return false;
String name = ItemDefinitions.getItemDefinitions(item.getId())
.getName().toLowerCase();
if (name.contains("lucky")
|| name.contains("arcane stream")
|| name.contains("quickfire")
|| name.contains("Boss Token")
|| name.contains("doomcore")
|| name.contains("rusty")
|| name.contains("chaotic")
|| name.contains("primal longsword")
|| name.contains("primal maul")
|| name.contains("primal rapier")
|| name.contains("defender"))
return false;
Then I edited my death metod in player.java
And added this thats meant to keep those items from itemconstants.java
Code:
}
keptItems.add(lastItem);
containedItems.remove(lastItem);
}
inventory.reset();
equipment.reset();
for (Item item : containedItems) {
if (ItemConstants.isTradeable(item)) {
getInventory().addItem(item);
}
World.addGroundItem(item, getLastWorldTile(), killer == null ? this
: killer, false, 180, true, true);
}
}
" for (Item item : containedItems) {
if (ItemConstants.isTradeable(item)) { <<< THAT IS THE PART I ADDED.
But the problem is, it does it the other way around.. It doesnt keep the untradeables, but keeps all of the tradeable items, and drops your tradeable items on the ground for the person that killed you.. So i started making untradeables kept on death but ended up making a dupe.. Anyone got anything to say about this?