Dear Rune-server Members: I know this was from a year ago but i fount this when i googled 'custom item equip in wrong spot' so i answered the quest for following member that google this question will find this thread with it's answer.
The answer to this post:
File: src\server\model\items\ItemAssistant.java
Find:
Code:
if(Config.itemRequirements) {
You will see something like this:
Code:
if(Config.itemRequirements) {
if(targetSlot == 10 || targetSlot == 7 || targetSlot == 5 || targetSlot == 4 || targetSlot == 0 || targetSlot == 9 || targetSlot == 10) {
if(c.defenceLevelReq > 0) {
if(c.getPA().getLevelForXP(c.playerXP[1]) < c.defenceLevelReq) {
c.sendMessage("You need a defence level of "+c.defenceLevelReq+" to wear this item.");
canWearItem = false;
}
}
Above it add this:
Code:
if (wearID == 12742 || wearID == 12743 || wearID == 12744 || wearID == 12745 || wearID == 12746 || wearID == 12747 || wearID == 12748){
targetSlot = 1;
}
'trageslot = 1;' Targets the cape slot.