Wanted Posted March 20, 2013 Share Posted March 20, 2013 (edited) 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 March 20, 2013 by Wanted Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted March 22, 2013 Share Posted March 22, 2013 The Toggle functions return False if the setting is already at the desired setting. Quote Link to comment Share on other sites More sharing options...
Wanted Posted March 22, 2013 Author Share Posted March 22, 2013 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. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted March 22, 2013 Share Posted March 22, 2013 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. Quote Link to comment Share on other sites More sharing options...