procedure IfFight;
var Fight: integer;
begin
If (FindFight) Then
begin
RunAway('N', False, 1, 1000 + Random(500));
Inc(Fight);
end;
im in rimmington cutting willows and it doesnt run away please help
procedure IfFight;
var Fight: integer;
begin
If (FindFight) Then
begin
RunAway('N', False, 1, 1000 + Random(500));
Inc(Fight);
end;
im in rimmington cutting willows and it doesnt run away please help
I am not completely sure about how you have whatever it may be setup... but I would suggest trying something more like this...
SCAR Code:Program RunawaySlice;
{.include srl/srl.scar}
var
InFight : Boolean;
procedure IfAttacked;
begin
If (InFight) Then
begin
RunAway('N', False, 1, 1000 + Random(500));
Inc(InFight);
end;
end;
Begin
SetupSRL;
IfAttacked;
end.
On vacation in NeverLand,
Code:typedef int bool; enum { false, true };
InFight only registers when you get hit for a red number, other than that - it should work
Project: Welcome To Rainbow
Well.... I am assuming that if he takes damage... then that would be equivalent to him being in a fight...
On vacation in NeverLand,
Code:typedef int bool; enum { false, true };
Change InFight to FindFight
like this:
SCAR Code:Program RunawaySlice;
{.include srl/srl.scar}
var
Fights: Integer;
procedure IfAttacked;
begin
If (FindFight) Then
begin
RunAway('N', False, 1, 1000 + Random(500));
Inc(Fights);
end;
end;
Begin
SetupSRL;
IfAttacked;
end.
Code:
- Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
- Solarwind: Dude, you are like... t3h s3x.
- Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
- benjaa: woah.... Jukka is the man Guildminer pwns all
- NaumanAkhlaQ: And JuKKa Is my Her0!
There are currently 1 users browsing this thread. (0 members and 1 guests)