Results 1 to 9 of 9

Thread: Help the newbie pls!! (me)

  1. #1
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help the newbie pls!! (me)

    Ok, so in the example below when a color is selected the mouse2 button will be activated, but how would the script look so that I could activate mouse3 or one of the function keys like F3 when a particular color is selected?

    Mouse(x, y, 3, 3, false);
    wait(100+random(100));
    Chooseoption('ttack');

    Thx Now Byebye Then

  2. #2
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    like..

    SCAR Code:
    if(FindColor(params))then
      case color of
        134134: DoSomething;
        451432: DoSomethingElse;
      end
    else
      DoSomethingElseElse;

    ?

  3. #3
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok that works, but would replacing "DOSOMETHING" with F7 alone activate the key?

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    umm.. theres a list somewhere.. it's like.. one second I'll find it

    F1 - 112
    F2 - 113
    F3 - 114
    F4 - 115
    F5 - 116
    F6 - 117
    F7 - 118
    F8 - 119
    F9 - 120
    F10 - 121
    F11 - 122
    F12 - 123
    //in case you have 15 of them
    F13 - 124
    F14 - 125
    F15 - 126
    might wanna save this if you have more keys

    http://www.moparisthebest.com/smf/in...p?topic=2894.0

  5. #5
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Greatness, thanks 99

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    your welcome

  7. #7
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok it compiled successfully. Time to test it out.. ok it worked, when f1 came up it changed my inventory like I wanted. thanks again 99

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There are already functions in SRL to do with gametab, check SRL\core\Gametab.scar for them all.

    To change the gametab to inventory simply do this:
    SCAR Code:
    Gametab(4);

    Here is the list off gametabs which can be found in the script mentioned above:
    SCAR Code:
    // * GameTab 1  = Fightmode
    // * GameTab 2  = Statistic
    // * GameTab 3  = Quest
    // * GameTab 4  = Inventory
    // * GameTab 5  = Wield
    // * GameTab 6  = Prayer
    // * GameTab 7  = Mage
    // * GameTab 8  = Add Friend
    // * GameTab 9  = Del Friend
    // * GameTab 10 = ClanChat
    // * GameTab 11 = Run/Tools
    // * GameTab 12 = Emotes
    // * GameTab 13 = Music
    // * GameTab 14 = LogOut
    // * GameTab 15 = Summoning
    Hope this helps!
    SCAR Code:
    if (YourActivity = 'ReadingThis') then
        Inc(ViewCount);

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default



    any time

    you can find a lot of this stuff by googling it or searching for it on this site ^^

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
  •