Jump to content
Wanted

OSI ported with optional SMART

Recommended Posts

Rev 41+

 

These scripts all show you different proper ways to use SMART with OSI.

 

Edit: Updated way to use SMART with OSI http://wiki.scar-divi.com/osi/index.php?title=Using_SMART_with_OSI

 

Each different way serves a different purpose.

 

Test script 1

 

[sCAR]{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

begin

SetUpOSI;

FreeOSI;

end.[/sCAR]

 

Test script 2

 

[sCAR]{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

begin

SMART_Server := 1;

SMART_Members := False;

SMART_Signed := True;

SMART_SuperDetail := False;

SetUpOSI;

FreeOSI;

end.[/sCAR]

 

Test script 3

 

[sCAR]{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

begin

NonAutomaticSMART := True;

SetUpOSI;

//SomeStuff

InitiateSMART;

FreeOSI;

end.[/sCAR]

 

Test Script 4

 

[sCAR]{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

begin

NonAutomaticSMART := True;

SMART_Server := 1;

SMART_Members := False;

SMART_Signed := True;

SMART_SuperDetail := False;

SetUpOSI;

//SomeStuff

InitiateSMART;

FreeOSI;

end.[/sCAR]

 

Test Script 5

 

[sCAR]{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

begin

NonAutomaticSMART := True;

SetUpOSI;

//SomeStuff

SmartSetupEx(1, False, True, False);

FreeOSI;

end.[/sCAR]

Link to comment
Share on other sites

I thought it was pretty obvious but I guess I am going to write the documentation for it on the wiki manual anyways.

 

Script 1 is standard usage. Define SMART, SMART opens when you call SetupOSI. Yes I solved the stupid SRL problem where SMART closes when you stop and rerun a script. Why SRL hasn't solved that I have no idea.

Script 2 is for people who for some reason like to mess with SMART_Server etc. SMART opens when you call SetupOSI;

Script 3 demonstrates the use of NonAutomaticSMART where if you want to do something after SetUpOSI but before SMART comes up you can.

Script 4 combines the idea of Script 2 and Script 3

Script 5 is the same as Script 4 but you can use SmartSetupEx directly.

 

 

Useful to this thread.... Does anyone know any details about SMART not using safemode?

Link to comment
Share on other sites

Useful to this thread.... Does anyone know any details about SMART not using safemode?

Well what are you wondering about?

The last param in SmartSetup (the 's' one) tells SMART to hold down the key 's' during runescape is setting up, which causes it to go into safemode. To disable this just remove the param.

 

SMART should work just fine with other game modes, but AFAIK you'll still have to be in 'Fixed' game mode

 

E: Nice @ Explanations :) Maybe combine them with the OP?

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...