Jump to content
Ranqers

317 (Oldschool gameframe) ReadSkill help

Recommended Posts

If you use OSI, you can try using the GetSkillLevel function.

 

[scar]

function GetSkillLevelEx(Skill: Integer; BottomNumber, CheckST: Boolean): Integer;

[/scar]

 

CheckST will check if the skills game tab is even open, and if its not it will switch to it.

 

I guess BottomNumber is a Boolean, so you can choose for it to return the bottom or top number there on the skill.

 

Skill is the number of the skill you want to check. But you should use the constants:

 

[scar]

{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

const Skill_ Indexes

Contributors: Wanted

Description: Index handles for various RS2 skills.

Date Created: November 3rd, 2011. By Wanted. RS2 Build 674.

Last Modified: November 3rd, 2011. By Wanted. RS2 Build 674.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}

 

const

Skill_Count = 25;

Skill_Attack = 0;

Skill_Hitpoints = 1;

Skill_HP = 1;

Skill_Constitution = 1;

Skill_Mining = 2;

Skill_Strength = 3;

Skill_Agility = 4;

Skill_Run = 4;

Skill_Energy = 4;

Skill_Smithing = 5;

Skill_Defense = 6;

Skill_Defence = 6;

Skill_Herblore = 7;

Skill_Fishing = 8;

Skill_Range = 9;

Skill_Thieving = 10;

Skill_Cooking = 11;

Skill_Prayer = 12;

Skill_Crafting = 13;

Skill_Firemaking = 14;

Skill_Magic = 15;

Skill_Fletching = 16;

Skill_Woodcutting = 17;

Skill_Runecrafting = 18;

Skill_Slayer = 19;

Skill_Farming = 20;

Skill_Construction = 21;

Skill_Hunter = 22;

Skill_Summoning = 23;

Skill_Dungeoneering = 24;

[/scar]

Edited by LordJashin
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...