SRL Archive - Test corner

Possible solution for autofighters fightrandoms.


DaWu

2007-01-12 09:43:19

procedure OutFightO;
var
i: integer;
begin
FFlag(1);
for i:= 1 to 5 do
begin
MarkTime(ChickenSwarmer)
if(InFightAtO(247,164))then
begin
repeat
wait(50);
until(not(InFightAtO(247,164)));
exit;
end else
wait(300);
If(TimeFromMark(ChickenSwarmer)>90000) Then
begin
FindFight;
wait(10000+random(200));
writeln('Fighting timed out, we possibly got a evil chicken or Swarm.')
end;
end;
end;

Shall the "Timing out" do the trick ?

If theres better solution for this, please tell me.

Killerdou

2007-01-12 11:07:58

what about, just run away when your hp gets low:)

DaWu

2007-01-12 11:36:34

From: iloveit8
what about, just run away when your hp gets low:)



I don't think that it would work too well on autofighters.

I think this works pretty good, even better if you take the timeout time down to 40 secs or something + its really hard to make it check hp while its infight etc.

So I think this is the best solution for it.

Killerdou

2007-01-12 11:46:14

well… i remember that the evil chicken says some text, so that one could be easily solved…

DaWu

2007-01-12 11:47:49

From: iloveit8
well… i remember that the evil chicken says some text, so that one could be easily solved…


Well, this is two flys at one hit :P
I think that this is only way for swarms atleast.