Results 1 to 5 of 5

Thread: Walking/AutoColoring problem ughh

  1. #1
    Join Date
    Jul 2007
    Location
    California
    Posts
    252
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walking/AutoColoring problem ughh

    I haven been able to do radial walking just fine when I inputed my own color.

    I have also been able to get my AutoColoring to work fine too.

    But now when I put them together they don't seem to want to work. The mouse doesn't move but it tells me that it got the right color. Ughhh

    My AutoColoring procedure
    SCAR Code:
    Procedure FloorAutoColor;
     var
       Floor: Integer;
       FloorColor: Integer;
       
     begin
       Floor := BitmapFromString(4, 3, 'beNpb3btpde9/CHr3CsiG' +
           'oBdI7E0A2pMZVg==')
           
       FloorColor :=AutoColorThis(Floor,100,MMX1, MMY1, MMX2, MMY2);
       WriteLn('Floor Color = ' + IntToStr(FloorColor))
     end;

    My 2 walking procedures
    SCAR Code:
    Procedure WalkToBar;
     var
       FloorColor: Integer;
     
     begin;
       FloorAutoColor;
       RadialWalk((FloorColor) , 59, 74, 45, 0, 0);
       Flag;
     end;

    Procedure WalkToBank;
     var
       FloorColor: Integer;

     begin;
       FloorAutoColor;
       RadialWalk((FloorColor) , 248, 53, 53, 0, 0);
       Flag;
     end;


    Any suggestions? Thank You.

    My Full script is attached just in case this isn't enough.

  2. #2
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    I have to say i am impressed for a first scripter using RadialWalk and AutoColouring. Excellent use of Standards and the Main Loop looks great.

    Well Done!
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  3. #3
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    But that doesn't really help his problem.

    If you're trying to make a script for the members worlds, I have found out that the roadcolor changes color. Not very much, but something corresponding to tolerance 7. And also, the colors change value the further you are from the Minimap centre, if your game is not on Highest Brightness and Low Detail.

    -Knives

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program walk
    var floorcolor:integer;

    Procedure FloorAutoColor;
     var
       Floor: Integer;
       
     begin
       Floor := BitmapFromString(4, 3, 'beNpb3btpde9/CHr3CsiG' +
           'oBdI7E0A2pMZVg==')
           
       FloorColor :=AutoColorThis(Floor,100,MMX1, MMY1, MMX2, MMY2);
       WriteLn('Floor Color = ' + IntToStr(FloorColor))
     end;
    Procedure WalkToBar;
     
     begin;
       FloorAutoColor;
       RadialWalk(FloorColor , 59, 74, 45, 0, 0);
       Flag;
     end;
     
    Procedure WalkToBank;
     
     begin;
       FloorAutoColor;
       RadialWalk(FloorColor , 248, 53, 53, 0, 0);
       Flag;
     end;

  5. #5
    Join Date
    Jul 2007
    Location
    California
    Posts
    252
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright thank you, I understand what I did wrong now, the color was not being "stored" as a global var.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Walking Problem
    By D1zl3 in forum OSR Help
    Replies: 5
    Last Post: 11-23-2008, 02:02 AM
  2. Problem Walking
    By gamer 5 in forum OSR Help
    Replies: 9
    Last Post: 10-15-2007, 03:23 AM
  3. Walking + Other problem
    By Tails111 in forum OSR Help
    Replies: 8
    Last Post: 08-23-2007, 07:39 PM
  4. Radial walking problem
    By Fearlesssss in forum OSR Help
    Replies: 4
    Last Post: 06-10-2007, 06:45 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
  •