Wrong.
Healing spell is a primary spell. (Unless you're trapped)
if (this.usehealingspell.Checked && this.hpspellnumeric_val >= Client.getPercent(getPlayer().currenthp, getPlayer().maxhp) && getPlayer().currentmp >= (int)this.hpspellManaVal.Value && BotControlsN.isGood())
getPlayer().useItem((int)this.hpspellslot.Value, 4);
else if (this.usebuff.Checked && getPlayer().isMonstersAround(false, 3) && getPlayer().currentmp >= (int)this.buffmp.Value)
getPlayer().useItem((int)this.buffslot.Value, 3);
else if (this.usespell.Checked && getPlayer().currentmp >= (int)this.spellManaVal.Value)
{}