Results 1 to 6 of 6

Thread: ShopSwitchTab

  1. #1
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default ShopSwitchTab

    SCAR Code:
    {*******************************************************************************
    procedure ShopSwitchTab(name:string);
    By: Rasta Magician
    Description: Switchs the shop tab to the one you want, only moves mouse
                 if neccessary
                  ShopSwitchTab('main') or ShopSwitchTab('player')
    *******************************************************************************}

    procedure ShopSwitchTab(name:string);
    begin
      if ShopScreen then
        if (lowercase(name)='main')and(GetColor(56, 73)=1930687) then
          Mouse(57, 73, 20, 6, True)
        else
          if (lowercase(name)='player')and(GetColor(175, 77)=1930687) then
            Mouse(185, 73, 40, 6, True);
    end;

    just something useful for amount.scar, switches the shop tab according to what is needed, only moves mouse if necessary.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    SCAR Code:
    Procedure ShopSwitchTab(Main: Boolean);
    Begin
      If ShopScreen Then
        If Main Xor (GetColor(65, 76) = 2070783) Then
          If Main Then
            Mouse(64, 74, 15, 5, True)
          Else
            Mouse(185, 72, 15, 5, True);
    End;

    Much cooler and shorter

  3. #3
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WTF!??!?! XOr?

  4. #4
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by Timer View Post
    WTF!??!?! XOr?
    Google it noob.

    -----

    I like n3ss3s'esesesss's'sss'ss'.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  5. #5
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Timer View Post
    WTF!??!?! XOr?
    I'll save you the trouble, it means If Main or (GetColor(65, 76) = 2070783) but not both


  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    (True Xor False) = True
    (False Xor True) = True
    (False Xor False) = False
    (True Xor True) = False

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
  •