Patch:
Simba Code:
Index: quiz.scar
===================================================================
--- quiz.scar (revision 692)
+++ quiz.scar (working copy)
@@ -34,7 +34,9 @@
function InQuizRandom : Boolean;
begin
if (InBlack) then
- Result := (PercentBlackMM > 95);
+ Result := (PercentBlackMM > 95) and
+ InRange(CountColorTolerance(13882589, MSx1, MSy1, MSx2, MSy2, 13), 2700, 4200) and
+ (Length(GetMiniMapDotsIn('npc', MMx1, MMy1, MMx2, MMy2)) = 1);
end;
When running...
Simba Code:
writeln(IntToStr(CountColorTolerance(13882589, MSx1, MSy1, MSx2, MSy2, 13)));
every output was between 3000 and 4000, but I added the extra to each end just to be safe.
Has been tested many times with this:
Simba Code:
begin
SetupSRL;
ActivateClient;
if InQuizRandom then
begin
Writeln('in quiz');
SolveQuiz;
end;
if InCerterRandom then
Writeln('in certer');
end.
The certer stuff is in there to make sure there are no false positives as I'm working on that too. This has also been tested in the certer random a few times to check for the same thing. All attempts successful.
Output:
Progress Report:
Compiled succesfully in 609 ms.
SRL Compiled in 15 msec
in quiz
Trout Fish Small, with a score of 9
Tuna Fish Big, with a score of 9
BattleAxe Small, with a score of 9
Use: Edible, Count: 2
Use: Weapon, Count: 1
We need to pick BattleAxe Small, and it's use is Weapon and located at slot 3
Tuna Fish Small, with a score of 9
Trout Fish Big, with a score of 9
Ring Small, with a score of 9
Use: Edible, Count: 2
Use: Jewelry, Count: 1
We need to pick Ring Small, and it's use is Jewelry and located at slot 3
Helmet Small, with a score of 9
Tuna Fish Big, with a score of 7
Trout Fish Small, with a score of 7
Use: Weapon, Count: 1
Use: Edible, Count: 2
We need to pick Helmet Small, and it's use is Weapon and located at slot 1
Sword Small, with a score of 7
Tuna Fish Big, with a score of 7
Trout Fish Small, with a score of 7
Use: Weapon, Count: 1
Use: Edible, Count: 2
We need to pick Sword Small, and it's use is Weapon and located at slot 1
Successfully executed.
Certer fix should be coming soon as well.