Java return error? im so confused : <p>Im notsure what im doing wrong at all im probably missing something stupid getting a return error 
 someone please help heres the console error im getting...</p>

<p>starting...
src\com\rs\game\npc\combat\impl\ChaosElemental.java:59: error: missing return statement 
        }
1 error 
Press any key to continue...</p>

<pre><code>    package com.rs.game.npc.combat.impl;

    import java.util.ArrayList;

    import com.rs.game.player.Player;
    import com.rs.game.Entity;
    import com.rs.game.ForceTalk;
    import com.rs.game.World;
    import com.rs.game.Animation;
    import com.rs.game.Graphics;
    import com.rs.game.Hit;
    import com.rs.game.Hit.HitLook;
    import com.rs.game.npc.NPC;
    import com.rs.game.npc.combat.CombatScript;
    import com.rs.game.npc.combat.NPCCombatDefinitions;
    import com.rs.game.tasks.WorldTask;
    import com.rs.game.tasks.WorldTasksManager;
    import com.rs.utils.Utils;

    public class ChaosElemental extends CombatScript {

@Override
public Object[] getKeys() {
    return new Object[] { 3200 };
}

@Override
public int attack(NPC npc, Entity target) {
            NPCCombatDefinitions cdefs = npc.getCombatDefinitions();
    if (Utils.random(7) == 2) {
            if (target instanceof Player) {
                delayHit(npc, 2, target, getRangeHit(npc, getRandomMaxHit(npc, 2000, NPCCombatDefinitions.RANGE, target)));
                World.sendProjectile(npc, target, 552, 18, 18, 50, 50, 0, 0);
                npc.setNextForceTalk(new ForceTalk("Charging a powerful attack..."));
            }
        } else {
    int rand = Utils.random(10);
            if (rand &lt;= 3) {
                delayHit(npc, 2, target, getRangeHit(npc, getRandomMaxHit(npc, 650, NPCCombatDefinitions.RANGE, target)));
                World.sendProjectile(npc, target, 552, 18, 18, 50, 50, 0, 0);
            } else if (rand &gt;= 7) {
                delayHit(npc,0,target,getMeleeHit(npc, getRandomMaxHit(npc, 800, NPCCombatDefinitions.MELEE, target)));
            } else {
                int damage = getRandomMaxHit(npc, 750, NPCCombatDefinitions.MAGE, target);
                if (damage &gt; 0) {
                    delayHit(npc, 1, target, getMagicHit(npc, damage));
                }
                npc.setNextForceTalk(new ForceTalk("Your gon get rekt nerd"));
            }
        }
}
</code></pre>

<p>}</p>
