What server? PI, delta what?
|
Currently in my server you can wield skill capes at any level. How do I make it so you most be 99? Thanks!
What server? PI, delta what?
Sorry pi
if(player.getSkills().getLevelForExperience(SKILL HERE) >= 99) {
player.getEquipment().add(item);
} else {
player.getActionSender().sendMessage("You need to be level 99 to wear this cape");
}
Something along those lines should do it.
SERVER\src\server\model\items\itemassistant.java
Well that above code is for hyperion, as I have never looked into Project Insanity... Basically what that above code could be used for is in equipment if they are trying to equip a skillcape.
Or you could just edit the skillcapes in with the other weapon or Armour requirements.
any body?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |