Assuming that you have integers declaring whether you finished quest or not, do this.
Go to go to itemassistant.java search
under it add thisCode:public boolean wearItem(int wearID, int slot) {
For the red part, add your quest method whether its a boolean or integer.Code:if ((wearID == 9813) && (c.questMethod = 1)) { c.sendMessage("You must complete all quests before wearing this cape"); return false; }