Results 1 to 6 of 6

Thread: [Yet The UnSolvable] Walking In Camelot Roads.

  1. #1
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default [Yet The UnSolvable] Walking In Camelot Roads.

    SCAR Code:
    function LightingPoint: Boolean;
    var
      RoadDTM, x, y : Integer;
    begin
      RoadDTM := RoadDDTM;
      if DTMRotated(RoadDTM, x, y, MMX1,MMY1,MMX2,MMY2) then
      begin
        Mouse(x, y, 1, 1, True);
        FFlag(1);
        Writeln('DDTM Walk Method Worked!');
        Wait(350 + Random(440));
        Result := True;
      end else
      if (RadialRoadWalk(5921120, 160, 190, 62, 1, 1)) then
      begin
        Result := True;
        FFlag(1);
        Wait(330 + Random(290));
        Writeln('Failed to walk using DDTM, but Radial Road Walk worked.');
      end else
      begin
        Result := False;
        FreeDTM(RoadDTM);
        if (not (Result)) then
        begin
          LogOut;
        end;
      end;
    end;
     
    function WalkBackToPoint : Boolean;
    var
      sx, sy : Integer;
    begin
      if (not (LoggedIn)) then Exit;
      RoadColor := FindRoadColor;
      RadialRoadWalk(RoadColor, 80, 100, 73, 1, 1);
      FFlag(1);
      Wait(330 + Random(275));
      RadialRoadWalk(RoadColor, 55, 75, 73, 1, 1);
      FFlag(1);
      Wait(1350 + Random(665));
      Writeln('Successfully moved near the Maple Trees. Now finding the Tree Symbol');
      FindSymbolIn(sx, sy, 'Tree', 558, 53, 610, 83);
      Mouse(sx, sy, 3, 3, True);
      FFlag(1);
      Result := True;
      if (RoadColor = 0) then LogOut;
    end;

    These functions you see here are from my Maple Forest Fire/Maple Stock. Right now I'm having troubles with my FireMaking procedure. Mainly it is the walking part. Im trying to make the Player walk to the Camelot Road and set fire on the Maples. Apparently... It didn't turn out good... FindRoadColor; fails to find the road, 5 times in a row in fact. (It Logs out and in 5 times, the script). I tried other methods such as the new TAutoColor made by the SRL Devs.

    SCAR Code:
    function WalkBackToPoint : Boolean;
    var
      FindTreeSymbol, sx, sy, x, y : Integer;
      NewColorRecord : TAutoColorInfo;
      SymbolFound : Boolean;
    begin
      if (not (LoggedIn)) then Exit;
      with NewColorRecord do
      begin
        Name := 'New Camelot Path';
        MinCount := 100;
        Color := 7368825;
        HueMod := 0.00;
        SatMod := 0.00;
        LumTol := 0;
        MinR := 120; MaxR := 122;
        MinG := 111; MaxG := 113;
        MinB := 111; MaxB := 113;
        MinX := 16.58; MaxX := 16.62;
        MinY := 16.80; MaxY := 16.84;
        MinZ := 17.68; MaxZ := 17.72;
      end;
      Writeln(IntToStr(FindColorRecord(x, y, NewColorRecord)));
      RoadColor := FindColorRecord(x, y, NewColorRecord);

    Yet that failed to find the Road Color, i even added tolerance by spreading the MinColor and the MaxColor, and adding more LumTol... BUT nothing worked

    So now i beg to the SRL Members, Mods, and...apparently th3 s3x (Someone ranked himself that and i can not remember who ) and of course the SRL Jr. Members could help would be appreciated. I hope you can find a solution to my problems and many thanks and reputations.

    I remember someone's signature who said he enjoyed doing walking functions/procedures... So who ever your are, i think now is the best time you can come in my aid

    Thanks guys! I hope to release my super awesome script! It really owns

    Oh and BTW! Does anyone know of a tutorial that teaches how to make games in SCAR. I saw RS_Monkey (I forgot how you spell) made this super awesome game called Stalingrad and i would delightfully like to learn how to do that. THAT GAME WAS AWESOME!

  2. #2
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Give me a few colors from the road, and I'll make you an autocolor.
    Please add me on pvh@live.nl on msn

    PvH

  3. #3
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    About the games: I believe there's a tutorial in the Advanced section of Tutorial Island (not sure what rank you need to access it though - may be SRL Member's only or maybe Jr. Member's).

    About the actual walking, isn't it currently quite a light colour, so should be easy enough to find it without having to use any semi-advanced techniques and just increasing tolerance in FindColourSpiralTolerance? If not, the in-game map has the same road colours, so you could use a DTM on that to get the colour using a DTM with a main point in the middle of the road, thus giving you a point where the colour is that you can transfer into walking using GetColor(x, y: Integer): Integer;
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  4. #4
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    About the games: I believe there's a tutorial in the Advanced section of Tutorial Island (not sure what rank you need to access it though - may be SRL Member's only or maybe Jr. Member's).

    About the actual walking, isn't it currently quite a light colour, so should be easy enough to find it without having to use any semi-advanced techniques and just increasing tolerance in FindColourSpiralTolerance? If not, the in-game map has the same road colours, so you could use a DTM on that to get the colour using a DTM with a main point in the middle of the road, thus giving you a point where the colour is that you can transfer into walking using GetColor(x, y: Integer): Integer;
    Mixter, IMO you should ALWAYS use autocolors for MM walking, often the things which you said fail (well, at least for me and some others).
    I always make my own autocolors if I can't find a working one for it in srl

    PvH

  5. #5
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I forgot that they updated the Camelot colours - they used to be quite light and similar to white so very easily distinguishable from everything else, but they're darkened it. There is no reason FindRoadColor should be failing though, because it sues a similar colour to Varrok and Falador and the same as Catherby (Camelot Castle is slightly different though), so chances are it's being used incorrectly rather than not working
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  6. #6
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Ok PVh, ill add you

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Walking without roads?
    By Ultra in forum OSR Help
    Replies: 5
    Last Post: 02-28-2009, 03:16 PM
  2. Best way to autocolour roads?
    By Ruski in forum OSR Help
    Replies: 2
    Last Post: 07-31-2008, 06:03 PM

Posting Permissions

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