Sir R. M8gic1an
2009-07-11 16:49:28
Due to the recent GameTab changes we, the developers, have come to realize how often Runescape changes it's tabs and how it always breaks SRL for a few days.
The latest update completely broke all scripts, and therefore we have found a need to avoid this in the future.
This constants have been added to Gametab.scar; For future use, do not call Gametab(4); for the inventory, do Gametab(tab_inv); for that will allow us to fix things without your scripts breaking.
All scripters are advised to use these new constants to accompany GameTab() or TabExists(). If you wish to use the numbers themselves we cannot assure you that the tab numbers will remain constant in the future. The tab names however will remain the same unless the tab is removed completely from RS.
You may have also noticed the actual numbering of the tabs has changed. For example GameTab(4) which used to open the inventory now opens the Achievement diary. Due to this new system, the developers saw no need in keeping to the old numbers which were getting extremely confusing as new tabs were added and removed. The tabs are now numbered like this:
As you can see, Tab 9 currently does not relate to any tab. However through using the new constants there is no need to remember or even use these numbers. Just press Ctrl-Space in SCAR and start typing "tab" to get a list of all tab constants.
tl, dr:
Lots o' Love
The Development Team
The latest update completely broke all scripts, and therefore we have found a need to avoid this in the future.
const
tab_Combat = 1;
tab_Stats = 2;
tab_Quest = 3;
tab_Diary = 4;
tab_Inv = 5;
tab_Equip = 6;
tab_Prayer = 7;
tab_Magic = 8;
{Tab 9 doesn't not exist yet}
tab_Friends = 10;
tab_Ignore = 11;
tab_Clan = 12;
tab_Options = 13;
tab_Emotes = 14;
tab_Music = 15;
tab_Notes = 16;
tab_LogOut = 17;
This constants have been added to Gametab.scar; For future use, do not call Gametab(4); for the inventory, do Gametab(tab_inv); for that will allow us to fix things without your scripts breaking.
All scripters are advised to use these new constants to accompany GameTab() or TabExists(). If you wish to use the numbers themselves we cannot assure you that the tab numbers will remain constant in the future. The tab names however will remain the same unless the tab is removed completely from RS.
You may have also noticed the actual numbering of the tabs has changed. For example GameTab(4) which used to open the inventory now opens the Achievement diary. Due to this new system, the developers saw no need in keeping to the old numbers which were getting extremely confusing as new tabs were added and removed. The tabs are now numbered like this:
[FONT="Courier New"]
------
| 17 |
------
---------------------------------
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
---------------------------------
---------------------------------
| | 10| 11| 12| 13| 14| 15| 16|
---------------------------------[/FONT]
As you can see, Tab 9 currently does not relate to any tab. However through using the new constants there is no need to remember or even use these numbers. Just press Ctrl-Space in SCAR and start typing "tab" to get a list of all tab constants.
tl, dr:
- New GameTab numbering
- Use gametab name constants instead of numbers:
//From This -> To This
GameTab(1) -> GameTab(tab_Combat)
GameTab(2) -> GameTab(tab_Stats)
GameTab(3) -> GameTab(tab_Quest)
GameTab(4) -> GameTab(tab_Inv)
GameTab(5) -> GameTab(tab_Equip)
GameTab(6) -> GameTab(tab_Prayer)
GameTab(7) -> GameTab(tab_Magic)
GameTab(8) -> GameTab(tab_Friends)
GameTab(9) -> GameTab(tab_Ignore)
GameTab(10) -> GameTab(tab_Clan)
GameTab(11) -> GameTab(tab_Options)
GameTab(12) -> GameTab(tab_Emotes)
GameTab(13) -> GameTab(tab_Music)
GameTab(14) -> GameTab(tab_LogOut)
GameTab(15) removed.
Lots o' Love
The Development Team