From: Ollybest
Weird.. il take a look at it soon, currently looking to see if i can get a decent xp at gnome advanced.
I would believe the problem to result from somewhere in this block of text, considering it is the function where the script shutdown, but right now it is still running fine again.
function ClimbBranchUp: Boolean;
var
area: Tbox;
i, CTS, oldxp, H: integer;
TPA, Branch: TPointArray;
ATPA: T2DPointArray;
Hue, Sat: TExtendedArray;
Col, Tol: TIntegerArray;
p: tpoint;
begin
if not LoggedIn then
Exit;
Smart_ClearScreen;
CurrObstacle := 'Branch Up';
UpdateStatus;
NextAction := 'balance rope';
OldXP := GetXpBarTotal;
Result := False;
Area := ProjectPlatform;
CTS := GetColorToleranceSpeed;
Hue := [0.21, 0.08, 0.11, 0.04, 0.13, 0.04, 0.05];
Sat := [2.36, 0.19, 2.31, 0.33, 0.42, 0.13, 0.76];
Col := [3227984, 4215136, 3228241, 3227209, 3293002, 3556690, 3886944];
Tol := [2, 4, 2, 2, 3, 7, 6];
for i := 0 to High(Hue) do
begin
with Area do
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(Hue, Sat);
FindColorsTolerance(TPA, Col, X1, Y1, X2, Y2, Tol);
CombineTPAWrap(TPA, Branch, Branch);
end;
end;
if SMART_Debug Then
SMART_DrawDotsEx(False, Branch, clAqua);
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
SplitTPAWrap(Branch, 5, ATPA);
SetMinTPALength(ATPA, 15);
SortATPAFromFirstPoint(ATPA, MidPlat);
if GetArrayLength(ATPA) < 1 then
begin
O_Debug(CurrObstacle, 'Found no colours');
Exit;
end;
H := High(ATPA);
for i := 0 to H do
begin
If SMART_Debug Then
SMART_DrawBoxEx(False, False, GetTPABounds(ATPA), clRed);
P := ATPA[Random(Length(ATPA))];
HumanMMouse(P.X, P.Y, 0, 0);
if WaitUpTextMulti(ObstacleText, RandomRange(400, 500)) then
begin
O_Debug(CurrObstacle, '"' + BeforeStr(' / ', getuptext) + '" Intracting with obstacle');
Click;
if not (O_DidYellowClick) then
begin
O_Debug(CurrObstacle, 'Did click (red) on the obstacle…. ');
PredictObstacle;
Smart_ClearScreen;
if (WaitXpGain(OldXP)) then
begin
Result := True;
Exit;
end else
Exit;
end else
Exit;
end;
end;
end;
EDIT:
[============================]
[ Time Ran : 02:32:28 ]
[ Total Laps : 156 ]
[ Laps P/H : 61 ]
[ XP Gained : 13534 ]
[ XP P/H : 5326 ]
[ Antibans : 28 ]
[ Next Break : False ]
[============================]
[ Basic Gnome Agility V.1.00 ]
[============================]
[02:32:29] - [LOG BALANCE] > "Walk-across Log balance" Intracting With Obstacle
[02:32:30] - [LOG BALANCE] > Did click (red) on the obstacle….
[02:32:37] - [LOG BALANCE] > XP GAIN! Sucesfully completed obstacle: Log Balance in 7005ms
[02:32:38] - [OBSTACLE NET 1] > "Climb-over Obstacle net" Intracting With Obstacle
[02:32:38] - [OBSTACLE NET 1] > Did click (red) on the obstacle….
[02:32:42] - [OBSTACLE NET 1] > XP GAIN! Sucesfully completed obstacle: Obstacle Net 1 in 3244ms
[02:32:44] - [BRANCH UP] > "Climb Tree branch" Intracting with obstacle
[02:32:44] - [BRANCH UP] > Did click (red) on the obstacle….
[02:32:45] - [BRANCH UP] > XP GAIN! Sucesfully completed obstacle: Branch Up in 1045ms
[02:32:46] - [RELOACTE] > Attempting to reloacte.. our current obstacle is: Branch Up
[02:32:48] - [RELOACTE] > Attempting to reloacte.. our current obstacle is: Branch Up
[02:32:50] - [RELOACTE] > Attempting to reloacte.. our current obstacle is: Branch Up
[02:32:52] - [RELOACTE] > Attempting to reloacte.. our current obstacle is: Branch Up
[02:32:54] - [RELOACTE] > Attempting to reloacte.. our current obstacle is: Branch Up
- - - - - - - - - - - - - - - - - - - - -
– Script ShutDown! –
Reason: Must be stuck in a loop, tried to relocate 5 times in 10mins got suck on Branch Up
- - - - - - - - - - - - - - - - - - - - -
Happened again.
RE-EDIT:

It seems the character gets stuck in the corner, and the branch is no longer visible; thus, no color is being detected; however, this time it was stuck on "Obstacle Net 1" instead of "Branch Up"?