Gucci
2012-02-20 15:03:07
How could I implement a failsafe that's set up so that if a script leaves a certain area it will return to it?
Thanks in advance for any help and guidance.
Thanks in advance for any help and guidance.
2012-02-20 15:03:07
2012-02-20 15:05:15
2012-02-20 15:07:49
2012-02-20 15:12:53
Box := intToBox(x1,y1,x2,y2);2012-02-20 15:13:43
2012-02-20 15:31:25
procedure FailSafe2 (Reason:String);
var
GoblinArea: TBox;
begin
if not (GoblinArea) then <— Line 134
BoredHuman;
SPS_WalkToPos(Point(4830, 3700));
end;
procedure Location;
var
GoblinArea: TBox;
begin
GoblinArea := intToBox(4800, 3662, 4872, 3744);
end;
2012-02-20 16:31:21
procedure FailSafe2 (Reason:String);
var
GoblinArea: TBox;
begin
GoblinArea := intToBox(4800, 3662, 4872, 3744);
if not (GoblinArea) then <--- Line 134
BoredHuman;
SPS_WalkToPos(Point(4830, 3700));
end;
Function BDead: Variant;
Var
Z:TPoint;
Begin
Z:= SPS_GetMyPos;
if (Distance(Z.X, Z.Y, 489, 5082) < 7) or FindBlackChatMessage('you are dead!') then
Begin
Result := True;
end else if (Not (Distance(P.X, P.Y, 489, 5082) > 5)) or (Not FindBlackChatMessage('you are dead!')) then
Begin
Result := False;
end;
End;
procedure FailSafe2 (Reason:String);
var
Z:TPoint;
begin
Z:= SPS_GetMyPos;
if (Not (Distance(Z.X, Z.Y, 4830, 3700) < 25)) then//Change the 25 to whatever you want your distance checking to be.
Begin
BoredHuman;
SPS_WalkToPos(Point(4830, 3700));
end;
end;
2012-02-20 17:24:06