Results 1 to 16 of 16

Thread: Magic.scar FixSpells;

  1. #1
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Magic.scar FixSpells;

    Do you think we should add FixSpells; for the new runescape update that makes sure the spells are sorted by level. Im not a very good scripted so i couldnt get it to work but this was what I had

    SCAR Code:
    {*******************************************************************************
    procedure FixSpells;
    By: ????
    Description: Returns the spell order to sort by level.
    *******************************************************************************}


    procedure FixSpells;
    begin
      Gametab(7);
      if not FindColor(677, 449, 2765882)then
      begin
        Mouse(683, 450, 5, 5);
        repeat
          Wait(200)
        until(FindColor(677, 449, 2765882))
      end;
    end

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    not sure but I was just pretty much saying someone should make one lol but I couldnt get it to work to test it. and i thought stuff in the gametabs had a constant color.

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    SCAR Code:
    procedure FixSpells;
    var
      Color: Integer;
    begin
       Color:= GetColor(682, 453);
       if (Color <> 4938596) then
         Mouse(677, 444, 13, 13, True);
    end;
    there you go

    ~shut

    EDIT:
    Quote Originally Posted by trojan View Post
    not sure but I was just pretty much saying someone should make one lol but I couldnt get it to work to test it. and i thought stuff in the gametabs had a constant color.
    well when i chose one spot the color kept changing so i had to choose another spot

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

    Default

    yes it's constant..

    I could make this up really quick

    >.>

    darn you shut.

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    you can't use colors.. you have have to use MouseBox or DTMs..

    because if you have the runes, it will be the same color as a spell..

  8. #8
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by 99_ View Post
    you can't use colors.. you have have to use MouseBox or DTMs..

    because if you have the runes, it will be the same color as a spell..
    which is why i used GetColor so it only picks the color from a certain spot
    SCAR Code:
    {*******************************************************************************
    procedure SortSpellsBy(Which: string);
    By: Shuttleu
    Description: Changes the order of spells depending on what is put for Which
    Arguments for Which are:
    level
    combat
    tele
    *******************************************************************************}

    procedure SortSpellsBy(Which: string);
    var
      Color: Integer;
    begin
      case Lowercase(Which) of
      'level': begin
                 Color:= GetColor(682, 453);
                 if (Color <> 4938596) then
                   Mouse(677, 444, 13, 13, True);
               end;
      'combat': begin
                 Color:= GetColor(699, 449);
                 if (Color <> 7243153) then
                   Mouse(695, 444, 13, 13, True);
               end;
      'tele': begin
                 Color:= GetColor(716, 446);
                 if (Color <> 6518915) then
                   Mouse(714, 444, 13, 13, True);
               end;
      end;
    end;
    anyway here you are

    ~shut

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

    Default

    narb.

    and it's not very useful IMO, just use Cast( );

  10. #10
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    crap i made a small mistake
    give me a min

    ~shut

    EDIT: here we go
    shorter and it works properly
    SCAR Code:
    {*******************************************************************************
    procedure SortSpellsBy(Which: string);
    By: Shuttleu
    Description: Changes the order of spells depending on what is put for Which
    Arguments for Which are:
    level
    combat
    tele
    *******************************************************************************}

    procedure SortSpellsBy(Which: string);
    begin
      case Lowercase(Which) of
      'level': if (GetColor(682, 453) <> 4938596) then
                 Mouse(677, 444, 13, 13, True);
      'combat': if (GetColor(699, 449) <> 4871777) then
                  Mouse(695, 444, 13, 13, True);
      'tele': if (GetColor(716, 446) <> 2765882) then
                Mouse(714, 444, 13, 13, True);
      end;
    end;

  11. #11
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Might wanna switch to GameTab 7 first..

  12. #12
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by lordsaturn View Post
    Might wanna switch to GameTab 7 first..
    oh yea thanks for pointing that out
    SCAR Code:
    {*******************************************************************************
    procedure SortSpellsBy(Which: string);
    By: Shuttleu
    Description: Changes the order of spells depending on what is put for Which
    Arguments for Which are:
    level
    combat
    tele
    *******************************************************************************}

    procedure SortSpellsBy(Which: string);
    begin
      GameTab(7);
      case Lowercase(Which) of
      'level': if (GetColor(682, 453) <> 4938596) then
                 Mouse(677, 444, 13, 13, True);
      'combat': if (GetColor(699, 449) <> 4871777) then
                  Mouse(695, 444, 13, 13, True);
      'tele': if (GetColor(716, 446) <> 2765882) then
                Mouse(714, 444, 13, 13, True);
      end;
    end;

  13. #13
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you wouldnt use sort by anything else would you though as in the magic.scar file the cast spell function only works on sort by level that why i just had fixspells.

  14. #14
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by trojan View Post
    you wouldnt use sort by anything else would you though as in the magic.scar file the cast spell function only works on sort by level that why i just had fixspells.
    It actually works on bitmaps so really you wouldn't need anything as it would just find the spell no matter where it is.

  15. #15
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, so this function would just be for scripts that used coordinates for spells.

  16. #16
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    It actually works on bitmaps so really you wouldn't need anything as it would just find the spell no matter where it is.
    just wondering but arent some of the bitmaps for the spells outdated?
    because whenever i want to use a spell i have to remake it before i can use a script (after the first time it is fine)

    ~shut

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
  •