Check your equipment packet, then add a check for it in there. If you cant find it try using an ide like eclipse and make it look throw all the files after the itemId.
|
Hey guys, i'm getting pretty annoyed with this certain problem, and that is i can't find the file used to edit item requirements.. i've seen people mention 'Itemdefinition', 'Itemassistant' ect and neither of them exist on this source.
The simple thing i want to change is the requirements of Master capes within the server to have 200m exp needed to wear them compared to level 99 which you apparently need atm, is there a way to do this on Future718 source?
Check your equipment packet, then add a check for it in there. If you cant find it try using an ide like eclipse and make it look throw all the files after the itemId.
i dont have anything under the name 'Equiptment' pal. confusing as anything
Should be in Itemdefinitions, my code for the completionist cape is:
Code:if (name.contains("Completionist") || name.contains("Max")) { itemRequiriments.put(Skills.ATTACK, 99); itemRequiriments.put(Skills.STRENGTH, 99); itemRequiriments.put(Skills.DEFENCE, 99); itemRequiriments.put(Skills.HITPOINTS, 99); itemRequiriments.put(Skills.RANGE, 99); itemRequiriments.put(Skills.MAGIC, 99); itemRequiriments.put(Skills.PRAYER, 99); itemRequiriments.put(Skills.RUNECRAFTING, 99); itemRequiriments.put(Skills.AGILITY, 99); itemRequiriments.put(Skills.HERBLORE, 99); itemRequiriments.put(Skills.THIEVING, 99); itemRequiriments.put(Skills.CRAFTING, 99); itemRequiriments.put(Skills.FLETCHING, 99); itemRequiriments.put(Skills.SLAYER, 99); itemRequiriments.put(Skills.HUNTER, 99); itemRequiriments.put(Skills.MINING, 99); itemRequiriments.put(Skills.SMITHING, 99); itemRequiriments.put(Skills.FISHING, 99); itemRequiriments.put(Skills.COOKING, 99); itemRequiriments.put(Skills.FIREMAKING, 99); itemRequiriments.put(Skills.WOODCUTTING, 99); itemRequiriments.put(Skills.FARMING, 99); itemRequiriments.put(Skills.SUMMONING, 99); itemRequiriments.put(Skills.DUNGEONEERING, name.contains("Max") ? 99 : 120); }
If you're just wanting one check, use this but if you're wanting all capes to require 200m in their respected skill you should handle it better. In ButtonHandler class you should have two sendWear methods (sendWear and sendWear2), add this just after itemName string is declared:
Code:if(itemId == CAPE_ID && player.getSkills().getXp(Skills.DUNGEONEERING) < 200000000) { player.getPackets().sendGameMessage("You need 200m dung xp to wear this cape."); return false; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |