This Include contains all Gametab Routines.
function TabExists(Tab: Integer): Boolean;
Returns True if the Tab exists.
Note
by Zephyrsfury & Icefire908
Example:
function GameTab(Tab: Integer): Boolean;
Returns True if the Tab exists.
Note
by Zephyrsfury
const
tab_Combat = 21;
tab_Stats = 22;
tab_Quest = 23;
tab_Diary = 24;
tab_Inv = 25;
tab_Equip = 26;
tab_Prayer = 27;
tab_Magic = 28;
tab_Objectives = 29;
tab_Friends = 30;
tab_Ignore = 31;
tab_Clan = 32;
tab_Options = 33;
tab_Emotes = 34;
tab_Music = 35;
tab_Notes = 36;
tab_LogOut = 37;
Note
The above may have to be placed somewhere else. Are they even valid?
Example:
Gametab 1 related functions.
function SetFightMode(oFightMode: Integer): Boolean;
Sets fight mode. Returns false if failed to set desired mode.
Note
by Nielsie95 & Nava2, fixed by Quickmarch
Example:
function SetCombatType(Kind : string): Boolean;
Sets Combat mode inputted into Kind, treat like UpText.
Note
by Narcle & Nava2
Example:
function GetCombatLevel: Integer;
Returns the players combat level.
Note
by Nielsie95
Example:
procedure Retaliate(RetTrue: Boolean);
Set’s Auto Retaliate ON of OFF.
Note
by WT-Fakawi & n3ss3s, slight mod by EvilChicken!
Example:
Gametab 2 related functions.
function SkillCoords(Row, Column: Integer): TPoint;
Returns Coords of Skill’s Row and Column (Used for GetSkill functions)
Note
by NaumanAkhlaQ
Example:
function SkillToCoords(Skill: Variant): TPoint;
Turns skill string into TPoint. If Scroll returns true then you must scroll down.
Note
by Masquerader et. al.
Example:
function GetSkillInfo(Skill: Variant; Amount : Boolean): Integer;
Gets the amount / level of a skill. E.G. 0/15 Amount = True will return 0. Amount = False will return 15 (The actual level). Returns -1 if the level couln’t be grabbed succesfully
Note
by Raymond
Example:
Function GetSkillLevel(skill: Variant): Integer;
Gets the max level for a particular skill.
Note
by Raymond
Example:
function IsResting: Boolean;
Returns True if you are currently resting.
Note
by Sabzi
Example:
Function GetMMLevels(LevelType : String;var ColorSign : String): integer;
Returns the level shown next to the minimap. Colorsign returns the color of the text (Green,Yellow,Orange,Red). Returns -1 if failed.
Note
by Raymond / Wizzup / Sabzi / NCDS
Example:
function GetXP(Skill: Variant): Integer;
Returns current xp for a skill. Returns -1 if failed.
Note
by Nielsie95
Example:
function XpTillNextLevel(Skill: Variant): Integer;
Returns current xp until you level up in a skill. Returns -1 if failed.
Note
by Nielsie95
Example:
function HpPercent: Integer;
Returns Hp left as a percentage. Does not switch tabs if Players[CurrentPlayer].Level[SKILL_HITPOINTS] (HP level) is set. Returns -1 if failed.
Note
by Wizzup?
Example:
procedure GetAllLevels;
Sets all 25 skilllevels to Players.Level[1..25]:
- 1 8 15
- 2 9 16
- 3 10 17
- 4 11 18
- 5 12 19
- 6 13 20
- 7 14 21
- 22 23 24
- 1 = attack
- 2 = strength
- 3 = defence
- 4 = range
- 5 = prayer
- 6 = magic
- 7 = runecrafting
- 8 = hitpoints
- 9 = agility
- 10 = herblore
- 11 = thieving
- 12 = crafting
- 13 = fletching
- 14 = slayer
- 15 = mining
- 16 = smithing
- 17 = fishing
- 18 = cooking
- 19 = firemaking
- 20 = woodcutting
- 21 = farming
- 22 = construction
- 23 = hunting
- 24 = summoning
- 25 = dungeoning
Note
by WT-Fakawi & ZephyrsFury
Example:
Gametab 4 related functions
Gametab 5 related functions
function EquipmentCoords(EquipSlot: Integer): TPoint;
Returns X and Y of the coordinates of the specified equipment item
Note
by RsN modded by WT-Fakawi and Nielsie95
Example:
function GetEquippedItemBounds(Which: String): TBox;
Returns TBox of eqquipped item in which.
Note
by Nava2
Example:
procedure MouseEquippedItem(Which : String; Left : Integer);
Mouses Equipped item like MouseItem.
Note
by Nava2
Example:
function WearingItem(i: Integer): Boolean;
Results True if an item is equipped at equpiment slot defined by I.
Note
by RsN
Example:
procedure TakeOffAllExcept(ExceptionSlots: TIntegerArray);
Takes off equipped items defined by StripSlots.
Note
by EvilChicken!
Example:
procedure TakeOffAllItems;
Takes off all equipped items.
Note
by EvilChicken!
Example:
function CountEquippedItems: Integer;
Counts the amount of equipped items. Results “-1” if failed.
Note
by EvilChicken!
Example:
Gametab 6 related functions
Gametab 7 related functions
Gametab 8 related functions
function CurrentWorld: Integer;
Returns the current world you are on.
Note
by Cheesehunk and Ron, fixed by ZephyrsFury
Example:
Gametab 9 related functions
function ObjectivePercent: Integer;
Returns (Roughly) Objective Completion in Percent. Results -1 if failed.
Note
by r!ch!e
Example:
function ObjectiveCoords(ObjSlot: Integer): TPoint;
Returns Coords of Random Objective Slot (ObjSlot : 1..6)
Note
by r!ch!e & Naum
Example:
function HasObjective: Boolean;
Returns True if an Objective is set.
Note
by r!ch!e
Example:
function ClearObjective: Boolean;
Returns True if an Objective is Cleared, or no Objective Exists.
Note
by r!ch!e
Example:
function SetObjective(Skill: String; Level: Integer): Boolean;
Sets Objective according to Skill and Level. Returns True if Objective is set.
Note
by r!ch!e
Example:
function SetRandomObjective(ObjectiveSlot: Integer; KeepOld: Boolean): Boolean;
Sets a Random Objective Slot (ObjSlot : 1..6). If an objective is already set KeepOld determines if it is overwritten. Returns True if Objective is set.
Note
by r!ch!e
Example:
Gametab 10 related functions
Gametab 11 related functions
function SetRun(Run: Boolean): Boolean;
Sets Run on or off.
Note
by Wizzup? & EvilChicken!
Example:
function RunEnergy(Min: Integer): Boolean;
Toggles run if energy is greater or equal to MinEnergy. Results true if energy is greater or equal to minimum.
Note
by lordsaturn & NCDS
Example:
function SetRest: Boolean;
Turns Rest on. Result True if successful.
Note
by ZephyrsFury, edited by NCDS
Example:
function RestUntil(Energy: Integer): Boolean;
Rests until your Run energy is above Energy. Results True if successful.
Note
by ZephyrsFury
Example:
function RestUntilHP(HPPerc: Integer): Boolean;
Rests until your Run energy is above the given HP percentage. Results True if successful.
Note
by Mama
Example:
procedure FixGraphics;
Fixes the Graphic Options if LoggedIn
Note
by Naum & Rasta Magician
Example:
procedure SetGraphics(Brightness: Integer; vl, rr, gd, td, id, fe, gt, cs: string);
Sets graphic options through the Graphics Screen in GameTab 11. Use: Enter the desired Setting for the desired Option. Leave as ‘’ for no change
Parameter Option Setting vl Visible Levels Current / All rr Remove Roofs Always / Selectively gd Ground Decoration Off / On td Texture Detail Low / High ia Idle Animations Few / Many fe Flickering Effects Off / On gt Ground Textures Few / Many cs Character Shadows Off / On
EG. SetGraphics(2, ‘current’, ‘’, ‘off’, ‘low’, ‘few’, ‘’, ‘few’, ‘off’); For Autoing: SetGraphics(4, ‘current’, ‘always’, ‘off’, ‘low’, ‘few’, ‘off’, ‘few’, ‘off’); OutDated since 02 Sep 09
Note
by ZephyrsFury
Example:
procedure SetAudio(Volume, SFX, Area: Integer; SMSetting: (Stereo, Mono, NoChange) );
Sets audio options through the Audio screen in GameTab 11 Use: Enter the desired Setting AS A POINT for the desired Option. Make option 0 for no change.
EG. SetAudio(1, 4, 0, Stereo);
Note
by ZephyrsFury
Example:
procedure SetBar(Brightness, Volume, SFX, Area: Integer);
Sets each bar to the specific point. 1-4 for Brightness, 1-5 for others. For no change in the value make the respective parameter 0.
Note
by ZephyrsFury
Example:
Gametab 12 related functions
procedure DoEmote(EmoteNumber: Integer);
Clicks on an emote specified by EmoteNumber (1 to 37)
Note
by NaumanAkhlaQ
Example:
function LobbyTab(Tab: Integer): Boolean;
Goes to the lobby tab specified by the integer ‘Tab’. Valid arguments are 1 through 5, as well as PlayerInfo, WorldSelect, FriendsList, ClanChat and Options.
Note
by Bionicle1800
Example: