Anyone know how to add level requirements to items? Not sure where to add or find the code. I’ve check in ItemDefinitions.java & ItemConstants.java tried adding a few different methods in but never got it to compile and then work. Any suggestions or help is appreciated, unfortunately google has been extremely limited on information about this… and so have most websites.
It’s the Rune Evo V3 server base…
Tried this in ItemConstants.java only
if ((item.getId() == #####)) {
if (player.getSkills().getLevel(Skills.ATTACK) < 99) {
player.getPackets().sendGameMessage(
“You don’t have the requeriments to equip this item.”);
return false;
Looking to add 2 skill reqs per item for a couple weapons and then attempt to do reqs for armor sets.