trojan
2009-01-17 11:00:32
In the srl/srl/skill/Magic.scar file shouldnt
be
and
become
because then you would be able to cast a spell on multiple monsters in the area or if certain monsters are different colors it would attack all of them. This could be made as a new function called CastOnCustom or something.
If there is another way of doing then please may someone tell me.
function CastOn(Spell, Monster: string; MonsterColor: Integer; Tolerance:
Integer): Boolean;be
function CastOn(Spell, Monster: TStringArray; MonsterColor: TIntegerArray; Tolerance:
Integer): Boolean;and
if (FindObj(x, y, Monster, MonsterColor, Tolerance)) thenbecome
if (FindObjCustom(x, y, Monsters, MonsterColors, Tolerance)) thenbecause then you would be able to cast a spell on multiple monsters in the area or if certain monsters are different colors it would attack all of them. This could be made as a new function called CastOnCustom or something.
If there is another way of doing then please may someone tell me.