Results 1 to 11 of 11

Thread: Fuctions just failing on me

  1. #1
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Fuctions just failing on me

    Hey guys

    Ok this is becomming a serious problem for me
    Several function just seem to be failing on me.
    The first function to stop working was InFight, then MakeCompass, and now RadialWalk. (Hence the topics i made on them)
    All these functions worked before, but after using them allot when making new scripts, they just stopped working.

    RadialWalk worked fine untill 5 minutes ago. That kinda sucks cause i am working on a flaxspinner, and now my main source of walking is gone.

    I tried reinstalling, redownloading SRL and all the works, but nothing worked, the functions still wont work.


    Does anyone know what might be the problem? And yes, i did select the client and setup scar correctly etc.


    Regards,
    SirPali

  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
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Show us code, how you setup srl/scar.

    Cut em2 it
    Formerly known as Cut em2 it

  4. #4
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    RadialRoadWalk will fail if you use static colors. That could be your problem. We can't help you more, post the script please.


  5. #5
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok like i said i got multiple functions who stopped working,

    The radialwalk is this one:

    SCAR Code:
    program ReFlax;


    {.include SRL/SRL.scar}

    Var
    X, Y : integer;

    procedure DeclarePlayers;
    begin
     HowManyPlayers :=1; //How many players to use in script
     NumberOfPlayers(HowManyPlayers);
     CurrentPlayer :=0;

     Players[0] .Name         := 'sirpali';
     Players[0] .Pass         := '';
     Players[0] .Nick         := 'ali';   //3/4 of the characters name (bobbey = bob)
     Players[0] .Active       := True; // True=yes, False=no//
     Players[0] .Booleans[1]  := False; // False for brightness Check Once. Just leave at false.
    end;

    procedure FindBankStairs;
    begin
    RadialWalk(473181,220,140,120,MMCX,MMCY);
    wait(3500 + random(500));
    If FindColorSpiral(x, y, 8160390, MSCX-100, MSCY-50, MSCX+100, MSCY+50) then
    Mouse(X,Y, 2, 2, false);
    ChooseOption('-down');
     end;
       
    procedure FindSpin;
     begin
     RadialWalk(213,0,80,90,MMCX,MMCY);
     end;

    {
    procedure FindSpinStairs;
     begin
        if FindColorSpiralTolerance(x, y, 5439, 602, 96, 614, 110, 2) then
       begin
        Mouse(x, y, 2, 2, true);
        wait(3500 + random(563));                        /// Change to radialwalk
        Mouse(170, 157, 25, 25, false);
        wait(500 + random(273));
        ChooseOption('limb-up');
    end;
    end;
      }

    procedure Setup;
    begin
    SetupSRL;
    DeclarePlayers;
    ClearDebug;
    ActivateClient;
    end;


    begin
    Setup;
    FindBankStairs;
    FindSpin;
    end.

    It worked perfectly, until suddenly it decided not too.


    Another one is InFight
    This one also worked perfectly, untill i tried a different script. After that i tried this one again to train my noob a bit, and it just went straight through the InFight check:


    SCAR Code:
    program PicknCook;

    {.include SRL/SRL.scar}


    Var
    x, y: Integer;
    InFight : Boolean;

    procedure AntiRandoms;
    begin
      if not LoggedIn then Exit;
      FindNormalRandoms;
    end;


    procedure AntiBan;
    begin
      if not LoggedIn then Exit;
      case (Random(50)) of
        1: RandomRClick;
        5: HoverSkill('Woodcutting', False);
        5: HoverSkill('Smithing', False);
        11: RandomMovement;
        15: BoredHuman;
        24: PickUpMouse;
        27: begin
             Gametab(1 + Random(12));
             Wait(3000 + Random(200));
             Gametab(4);
            end;
        30: SleepAndMoveMouse(3600);
      end;
    end;



    //->Declare Players<-//
    Procedure DeclarePlayers;
    begin
      Status('Loading Players')

      HowManyPlayers  := 1;
      NumberOfPlayers( HowManyPlayers );
      CurrentPlayer := 0;

         Players[0].Name      := '';
         Players[0].Pass      := '';
         Players[0].Nick      := ''; // 2-4 letters of username
         Players[0].Active    := True;

    {     Players[1].Name      := 'Username';
         Players[1].Pass      := 'Password';
         Players[1].Nick      := 'ern'; // 2-4 letters of username
         Players[1].Active    := True;

         Players[2].Name      := 'Username';
         Players[2].Pass      := 'Password';
         Players[2].Nick      := 'ern'; // 2-4 letters of username
         Players[2].Active    := True;

         Players[3].Name      := 'Username';
         Players[3].Pass      := 'Password';
         Players[3].Nick      := 'ame'; // 2-4 letters of username
         Players[3].Active    := True;    }

    end;

    procedure PickItUp;
    begin
    if not InFight then
    begin
    if FindColorSpiralTolerance(x, y, 8882603, 5, 5, 518, 339, 5) then
    begin
        Mouse(x, y, 0, 0, False);
        Wait(250 + Random(150));
        if ChooseOption('chicken') then
        begin
          Flag;
          AntiRandoms;
        end;
        end;
      end;
      end;


    procedure KillIt;
    begin
    if InFight then repeat
    wait (5000+random(200));
    until not InFight;
    if not InFight then
    begin
    if FindColorSpiralTolerance(x, y, 1055610, 5, 5, 518, 339, 5) then
    begin
        Mouse(x, y, 0, 0, False);
        Wait(250 + Random(150));
        if ChooseOption('ttack') then
        AntiRandoms;
        begin
          Flag;
          AntiRandoms;
        end;
      end;
    wait (500+random(200));
    end;
    end;

    procedure CheckFight;
    begin
    if InFight then repeat
    wait (5000+random(200));
    until not InFight;
    end;

    procedure Setup;
    begin
    ActivateClient;
    DeclarePlayers;
    end;

    begin
    SetupSRL;
    Setup;
    Begin
    repeat
    KillIt;
    PickItUp;
    Antiban;
    until (IsFKeyDown(12));
    end;
    end.



    The last one is MakeCompass, it worked about 3 times -for the same script as RadialWalk - when the makecompass failed, i tried radialwalk which resulted in the same wierdness after about 5 tries

    SCAR Code:
    procedure Setup;
    begin
    SetupSRL;
    DeclarePlayers;
    ClearDebug;
    ActivateClient;
    MakeCompass('172');
    MakeCompass('360');
    end;


    All these stopped working independently, in different scripts, while they all worked like 5 minutes before.

  6. #6
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Afaik, your radial walk is fucked.
    This is how it should be

    RadialWalk(colour, start, end, radius{max is 70!}, 1, 1);
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  7. #7
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm getting this, but for Gametab. It seems to think it's never actually in the gametab, while it actually is. Anyone know why? It's happening with any script I use.

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

    Default

    You're not using radialwalk properly:

    SCAR Code:
    RadialWalk(473181,220,140,120,MMCX,MMCY);

    This is how the function is defined:
    SCAR Code:
    function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;

    TheColor is the colour which you want to walk to. Thats easy enough except colours in runescape change everytime you load. So the colour that you have picked will not be the same colour when you reload RS. This means you'll have to either use a autocolour function or use RadialWalkEx which support colour tolerances.

    StartRadial is the angle which you want to start searching from. EndRadial is the angle you which to stop searching at. If start angle is larger than EndRadial the search will go anti-clockwise while if its smaller it will search clockwise.

    Radius is how far from the centre of the minimap you want to start searching from. This distance is in pixels and the minimap is 76 pixels in radius. This means your radius of 120 is inappropriate. Usually 50 - 60 Radius is fine.

    The last two params are mouse modifiers used in MFNF. What MFNF does is click at a point and wait for the flag. If it doesn't appear then it will add XMod and YMod to the coordinates of the point then try to click again. The modifers should be somewhere in the range of -5 to 5 for each one.

    I think the reason why your RadialWalk only works once is because the RS colour has changed. Your prepicked colour will change once RS reloads and so RadialWalk will fail.

  9. #9
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    AAAH so that's what's wrong
    Thanks man

    But which tolerance should i use for the RadialWalkEx?
    Im trying to walk to the stairs in the lumby castle, but i have seen color #7945 to 473181

    So, which tolerance should i pick?

  10. #10
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    FindLadderColor:integer;

    RadialWalk(FindLadderColor,220,140,120,MMCX,MMCY);
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  11. #11
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doh why didn't I think of that

    Thanks man, you gave me a great moral boost =D
    Cause of you i can now go from Bank to spin wheel, and spin.

    Working on way back and Banking =D
    After that's done, we will have a working flaxspinner again =D

    ++rep for you

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoColour is 100% failing.
    By HarryJames in forum OSR Help
    Replies: 12
    Last Post: 01-28-2009, 06:49 PM
  2. login failing?
    By zildjohn01 in forum OSR Help
    Replies: 8
    Last Post: 05-01-2008, 02:21 AM

Posting Permissions

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