Results 1 to 7 of 7

Thread: Cursing weridness

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Cursing weridness

    SCAR Code:
    program Curser;
    {.include SRL\SRL\misc\SMART.SCAR}
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\Magic.scar}
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
      Players[0].Pin := '';
    end;

    Procedure curse;
    var mc, mx, my:integer;
    begin
      if not loggedin the logingplayer;
      Cast('curse', false);
      mx:=mscx;
      my:=mscy;
      case random (2) of
        0:mc:=5432145;
        1:mc:=5432145;
      end;
      if FindColorSpiralTolerance( mx, my, mc, msx1,msy1,msx2,msy2, 15) then
      begin
        Disguise('Found Color');
        case random(2) of
          0:Mousespeed:=15-random(5)+random(5);
          1:Wait(1);
        end;
        Wait(100+random(400));
        Mouse(mx, my, 0, 0, true);
       end;
    end;

    begin
      ClearDebug;
      Disguise('Hello');
      Smart_Server := 2;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
      SetupSpells;
      DeclarePlayers;
      mousespeed:=15;
      repeat curse;
      until(false);
    end.
    Note; This is a very small portion of my script, i've removed everything else. The cursing where i get some problem.

    The mouse clicks in the minimap very often, when the boundary for the color is between msx1,msy1,msx2,msy2.

    Whats wrong?

    I think the procedures..etc is ok but I think its either scar is bugged or SRL has wrong coordinates for msx2 ,msy2.

    Can any one just try this ? mc= monstercolor.
    Last edited by Main; 01-01-2010 at 12:33 AM.
    Oh Hai Dar

  2. #2
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Sure you colors are good? When I just started Learning about SCAR and all this stuff, I used to practice a lot. One big problem sometimes was if the Color was not usable most of the time, the script would stray off. I guess thats not the problem anyway lol, but for me it could click anywere regardless of manipulation.
    Last edited by Heavenguard; 01-01-2010 at 01:49 PM.
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Yeah, but even if it doesn't find color, it shouldn't go to minimap. since mx,my is at mscx and mscy.

    you guys can try this your self.
    Oh Hai Dar

  4. #4
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    hmm. did you move your cross hairs?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    I am using smart, Half of the time it clicks on the color, half of the time it goes to the minimap
    Oh Hai Dar

  6. #6
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Do you have fixed screen ?

  7. #7
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Had this problem once, it just keep'd clicking on it, i just removed the whole scar + SRL, and it worked. I'm not sure if it works but give it a try.

    GL.
    Hi

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
  •