Jump to content
Wanted

[OSI2][RS07] Map done. MMDotFunctions. Other minor revisions.

Recommended Posts

https://github.com/OfficialSCARInclude/OSI2/commit/78582da9b3fcebf72eebed8bfe49428f0d2f10d2

 

[sCAR]cldWhiteDot = 1907997; // December 8, 2011 Wanted 688

cldYellowDot = 4369; // December 8, 2011 Wanted 688

cldRedDot = 29; // March 14, 2013 Wanted ???

cldGreenDot = 4352; // March 14, 2013 Wanted ???

cldBlueDot = 3412992; // March 15, 2013 Wanted ???[/sCAR]

 

White and yellow have been the same forever lol, updated those other 3. Those are all I know of. Purple/Orange (clan dots?) aren't in RS07 AFIAK.

 

[sCAR] * function FindMMDotsEx(ColorDiffs: TIntArray): T2DPointArray;

By: Wanted

* function FindMMDots(cldDot: Integer): TPointArray;

By: Wanted

* function CountMMDotsEx2(ColorDiffs: TIntArray): TIntArray;

By: Wanted

* function CountMMDotsEx(ColorDiffs: TIntArray): Integer;

By: Wanted

* function CountMMDots(cldDot: Integer): Integer;

By: Wanted[/sCAR]

 

[sCAR]{$DEFINE RS07}

//{$DEFINE SMART}

{$DEFINE OSI_RS07_Color_Anti_Randoms}

 

{$I OSI\OSI.scar}

{$I OSI\Divi\Misc\Debug.scar}

 

procedure ScriptTerminate;

begin

FreeOSI;

end;

 

var

T: LongInt;

ATPA: T2DPointArray;

 

begin

SetUpOSI;

T := GetSystemTime;

ATPA := FindMMDotsEx([cldWhiteDot, cldYellowDot, cldRedDot]); // 47 ms

WriteLn(GetSystemTime - T);

DebugATPA(ATPA);

end.[/sCAR]

 

14396446.png

 

It uses the new function in bitmap.scar

 

[sCAR] * function FindBitmapColorTPAEx(var TPA: TPointArray; Color: LongInt; bmp: TSCARBitmap; SearchTPA: TPointArray): Boolean;

By: Wanted[/sCAR]

 

Also new Login template

 

[sCAR]program New;

 

{$DEFINE RS07} // V - Bright Settings

{$DEFINE SMART} // Comment out to use normal browser

{$DEFINE OSI_RS07_Color_Anti_Randoms}

 

{$I OSI\OSI.scar}

 

procedure DeclarePlayers;

var

I, H: LongInt;

begin

SetLength(Players, 2);

H := High(Players);

for I := 0 to H do

begin

SetLength(Players.Booleans, 1);

SetLength(Players.Integers, 1);

end;

with Players[0] do

begin

Name := 'Zezima'; // Username

Pass := 'runescape4life'; // Password

Pin := '0000'; // Bank pin

Loc := 'Not logged in yet';

LampSkill := Skill_Runecrafting; // Genie Lamp

World := 11; // World to use

Integers[0] := 1000; // How many trips?

Booleans[0] := True; // Use pickaxe?

Active := True; // Player enabled?

end;

with Players[1] do

begin

Name := 'Sumoi'; // Username

Pass := 'frunescape'; // Password

Pin := '0911'; // Bank pin

Loc := 'Not logged in yet';

LampSkill := Skill_Smithing; // Genie Lamp

World := 11; // World to use

Integers[0] := 1000; // How many trips?

Booleans[0] := False; // Use pickaxe?

Active := True; // Player enabled?

end;

end;

 

procedure ScriptTerminate;

begin

FreeOSI;

end;

 

begin

SetUpOSI;

DeclarePlayers;

Login;

SetCompassAngleAndHeight(Dir_North, True);

end.[/sCAR]

 

Updates will probably be small and more frequent now. If you want me to consider something for RS07 suggesting it will help raise it's priority in my todo list.

 

Thanks again

Edited by Wanted
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...