Jump to content
Wanted

[OSI2][RS07] Tab11-Options.scar complete

Recommended Posts

https://github.com/OfficialSCARInclude/OSI2/commit/ad1bb1239ce4f90f1eebb064ed84aa91f5c65521

 

[sCAR]{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Official SCAR Include

Runescape 07

Options Tab 11 Routines

--------------------------------------------------------------------------------

* function GetBrightness: LongInt;

By: Wanted

* function ToggleBrightness(Brightness: Integer; CheckOT: Boolean): Boolean;

By: Wanted

* function GetMusicVolume: LongInt;

By: Wanted

* function ToggleMusicVolume(Volume: Integer; CheckOT: Boolean): Boolean;

By: Wanted

* function GetEffectsVolume: LongInt;

By: Wanted

* function ToggleEffectsVolume(Volume: Integer; CheckOT: Boolean): Boolean;

By: Wanted

* function GetAreaEffectsVolume: LongInt;

By: Wanted

* function ToggleAreaEffectsVolume(Volume: Integer; CheckOT: Boolean): Boolean;

By: Wanted

* function TwoMouseButtonsEnabled: Boolean;

By: Wanted

* function ToggleTwoMouseButtons(Enable, CheckOT: Boolean): Boolean;

By: Wanted

* function ChatEffectsEnabled: Boolean;

By: Wanted

* function ToggleChatEffects(Enable, CheckOT: Boolean): Boolean;

By: Wanted

* function SplitChatEnabled: Boolean;

By: Wanted

* function ToggleSplitChat(Enable, CheckOT: Boolean): Boolean;

By: Wanted

* function AidEnabled: Boolean;

By: Wanted

* function ToggleAid(Enable, CheckOT: Boolean): Boolean;

By: Wanted

* function GetRunEnergy: LongInt;

By: Wanted

* function RunEnabled: Boolean;

By: Wanted

* function ToggleRun(Enable, CheckOT: Boolean): Boolean;

By: Wanted

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}[/sCAR]

 

Should all be in perfect working order. I don't see how it wouldn't be... test it all myself... everything is timed well. There's nothing left to do with the options tab other than the House button but that will be in \Skill\Construction.scar and I believe Jagex has yet to enable construction on RS07/Old School Runescape.

 

Controls are simple, read the description. It's in \Core\ no need for any extra including packed with {$DEFINE RS07}

 

Left is 0 right is (3 for bright, 4 for loud).

 

More OSI updates soon to follow

 

-Wanted

Edited by Wanted
Link to comment
Share on other sites

The Toggle functions return False if the setting is already at the desired setting.

 

[sCAR]{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

function ToggleTwoMouseButtons(Enable, CheckOT: Boolean): Boolean;

Contributors: Wanted

Description: Sets TwoMouseButtons to desired state. Returns true if changed.

Exits if CheckOT true and can't get to Tab_Options.

Date Created: March 20th, 2013. By Wanted. RS07 Build ???.

Last Modified: March 20th, 2013. By Wanted. RS07 Build ???.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}[/sCAR]

 

That's how every toggle function since OSI 1 has worked. It only returns true if it toggles anything.

Link to comment
Share on other sites

That's how every toggle function since OSI 1 has worked. It only returns true if it toggles anything.

My bad. Makes it more difficult for the scripter tho. So much easier if it behaves as SetGameTab and returns True if setting is correct or gets set to correct setting. The end result is what you care about; not whether it actually got toggled.

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