Results 1 to 7 of 7

Thread: Gametab switching to wrong tab

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Gametab switching to wrong tab

    When I use this is in a script:
    Simba Code:
    6..8: begin writeln('Antiban: Checking crafting XP'); gametab(22); wait(randomrange(200, 600)); mmouse(632, 409 - Yoff, 4, 4); wait(randomrange(2000, 10000)); Gametab(25); wait(randomrange(200, 450)); end;
    It switches to the task gametab instead of the skills gametab. The inventory gametab works fine for me, just not this one. Could someone look into this, and see if its on SRL's side? Thanks
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Its better not to use the numbers because they are subject to change...not sure this is a bug. It says the numbers could be wrong in the include.


    Simba Code:
    (*

    GameTab
    ~~~~~~~

    .. code-block:: pascal

        function GameTab(Tab: Integer): Boolean;

    Returns True if the Tab exists.

    .. note::

        by Zephyrsfury

    .. code-block:: pascal

        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::
        Please use the constants and not the numbers! They may change any interface update.
    Last edited by Element17; 08-04-2012 at 08:30 PM.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  3. #3
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Gametab(tab_skills)

    EDIT: My Bad, Gametab(tab_stats) psh

  4. #4
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    As stated by the two above it is much better to use the constants as they won't change, this is also true for other functions like Mouse(x,y,0,0,mouse_left) instead of 0/1/True/False

  5. #5
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys, it works perfectly now. Ill try to use mouse_right and mouse_left in future scripts!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  6. #6
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Should use the built in antiban for checking skills :P

  7. #7
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I could, but I prefer making my own procedures and functions, Ill likely write my own little include, because it makes it much simpler to edit and change, rather then waiting for SRL's include to be fixed.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •