I am working on a autofighter and was wondering if this would work.
I am trying to get it to stop after a cetain number of kills.
I have this so far, do you think it would work?
SCAR Code:const
monsterstokill=1000; //Number of monsters you want to fight before stopping.
My fighting procedure is this.
SCAR Code:procedure Fighting;
begin if not InFight then begin
FindMonster(MColor1, MColor2, MColor3,tolerance,MonsterName);
KAttackMonster(MColor1,MColor2,MColor3,tolerance,MonsterName);
end;
and finally, my main question is how to make it stop after a certain number of kills, is it right?
SCAR Code:begin
Startup;
SetFightMode(FightMode);
repeat
ABan;
MonsterColors;
FindNormalRandoms;
progressreport;
Fighting;
a=a+1;
until(a=monsterstokill);
Logout;
Writein('Finished Fighting, Logout')
end.
I saw something like this in a tutorial and didnt kniw if I was doing it right.
