Table Of Contents

Previous topic

Flag

Next topic

Inventory

This Page

Gametab

This Include contains all Gametab Routines.

GetCurrentTab

function GetCurrentTab: Integer;

Returns current tab.

Note

by Zephyrsfury

Example:

TabExists

function TabExists(Tab: Integer): Boolean;

Returns True if the Tab exists.

Note

by Zephyrsfury & Icefire908

Example:

GameTab

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

Gametab 1 related functions.

SetFightMode

function SetFightMode(oFightMode: Integer): Boolean;

Sets fight mode. Returns false if failed to set desired mode.

Note

by Nielsie95 & Nava2, fixed by Quickmarch

Example:

SetCombatType

function SetCombatType(Kind : string): Boolean;

Sets Combat mode inputted into Kind, treat like UpText.

Note

by Narcle & Nava2

Example:

GetCombatLevel

function GetCombatLevel: Integer;

Returns the players combat level.

Note

by Nielsie95

Example:

Retaliate

procedure Retaliate(RetTrue: Boolean);

Set’s Auto Retaliate ON of OFF.

Note

by WT-Fakawi & n3ss3s, slight mod by EvilChicken!

Example:

Gametab 2

Gametab 2 related functions.

SkillCoords

function SkillCoords(Row, Column: Integer): TPoint;

Returns Coords of Skill’s Row and Column (Used for GetSkill functions)

Note

by NaumanAkhlaQ

Example:

SkillCoords

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:

GetSkillInfo

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:

GetSkillLevel

Function GetSkillLevel(skill: Variant): Integer;

Gets the max level for a particular skill.

Note

by Raymond

Example:

IsResting

function IsResting: Boolean;

Returns True if you are currently resting.

Note

by Sabzi

Example:

GetMMLevels

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:

GetXP

function GetXP(Skill: Variant): Integer;

Returns current xp for a skill. Returns -1 if failed.

Note

by Nielsie95

Example:

XPTillNextLevel

function XpTillNextLevel(Skill: Variant): Integer;

Returns current xp until you level up in a skill. Returns -1 if failed.

Note

by Nielsie95

Example:

HPPercent

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:

GetAllLevels

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

Gametab 4 related functions

Gametab 5

Gametab 5 related functions

EquipmentCoords

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:

GetEquippedItemBounds

function GetEquippedItemBounds(Which: String): TBox;

Returns TBox of eqquipped item in which.

Note

by Nava2

Example:

MouseEquippedItem

procedure MouseEquippedItem(Which : String; Left : Integer);

Mouses Equipped item like MouseItem.

Note

by Nava2

Example:

WearingItem

function WearingItem(i: Integer): Boolean;

Results True if an item is equipped at equpiment slot defined by I.

Note

by RsN

Example:

TakeOff

procedure TakeOff(I: Integer);

UnEquips Item specified in i.

Note

by RsN

Example:

TakeOffAllExcept

procedure TakeOffAllExcept(ExceptionSlots: TIntegerArray);

Takes off equipped items defined by StripSlots.

Note

by EvilChicken!

Example:

TakeOffAllItems

procedure TakeOffAllItems;

Takes off all equipped items.

Note

by EvilChicken!

Example:

CountEquippedItems

function CountEquippedItems: Integer;

Counts the amount of equipped items. Results “-1” if failed.

Note

by EvilChicken!

Example:

Gametab 6

Gametab 6 related functions

Gametab 7

Gametab 7 related functions

Gametab 8

Gametab 8 related functions

CurrentWorld

function CurrentWorld: Integer;

Returns the current world you are on.

Note

by Cheesehunk and Ron, fixed by ZephyrsFury

Example:

Gametab 9

Gametab 9 related functions

ObjectivePercent

function ObjectivePercent: Integer;

Returns (Roughly) Objective Completion in Percent. Results -1 if failed.

Note

by r!ch!e

Example:

ObjectiveCoords

function ObjectiveCoords(ObjSlot: Integer): TPoint;

Returns Coords of Random Objective Slot (ObjSlot : 1..6)

Note

by r!ch!e & Naum

Example:

HasObjective

function HasObjective: Boolean;

Returns True if an Objective is set.

Note

by r!ch!e

Example:

ClearObjective

function ClearObjective: Boolean;

Returns True if an Objective is Cleared, or no Objective Exists.

Note

by r!ch!e

Example:

SetObjective

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:

SetRandomObjective

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

Gametab 10 related functions

Gametab 11

Gametab 11 related functions

SetRun

function SetRun(Run: Boolean): Boolean;

Sets Run on or off.

Note

by Wizzup? & EvilChicken!

Example:

RunEnergy

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:

SetRest

function SetRest: Boolean;

Turns Rest on. Result True if successful.

Note

by ZephyrsFury, edited by NCDS

Example:

RestUntil

function RestUntil(Energy: Integer): Boolean;

Rests until your Run energy is above Energy. Results True if successful.

Note

by ZephyrsFury

Example:

RestUntilHP

function RestUntilHP(HPPerc: Integer): Boolean;

Rests until your Run energy is above the given HP percentage. Results True if successful.

Note

by Mama

Example:

FixGraphics

procedure FixGraphics;

Fixes the Graphic Options if LoggedIn

Note

by Naum & Rasta Magician

Example:

SetGraphics

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

1 2 3 4
Brightness: <—o—o—o—o—>

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:

SetAudio

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.

1 2 3 4 5
Volume, SFX, Area: <–o—o—o—o—o–>

EG. SetAudio(1, 4, 0, Stereo);

Note

by ZephyrsFury

Example:

SetBar

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

Gametab 12 related functions

DoEmote

procedure DoEmote(EmoteNumber: Integer);

Clicks on an emote specified by EmoteNumber (1 to 37)

Note

by NaumanAkhlaQ

Example:

GetLobbyTab

function GetLobbyTab: Integer;

Gets current lobby tab.

Note

by Bionicle1800

Example:

LobbyTab

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: