Ok I have learned a lot in recent weeks. One thing that still eludes me is the understanding of spells formula
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3, -30, -3, 0)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -20, 0.9, 0)
can anyone step forward and explain the basic concept...