Results 1 to 5 of 5

Thread: easier way to do this?

  1. #1
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default easier way to do this?

    this is the section of my script:
    SCAR Code:
    if LTAstep = 1 then
        begin
          for i:= 0 to 3 do
          begin
            if RadialRoadWalk(FindRoadColor, 110 + (i*5), 70, 70, -1, 0) then
            begin
              DebugIt('Did Walk on try ' + inttostr(i + 1));
              LTAstep:= 2;
              Exit;
            end else
            DebugIt('Did not Walk on try ' + inttostr(i + 1));
          end
          if EndsWith('4', GetDebugText) then
          begin
            if (length(between('Did', 'Walk', GetDebugText) > 1) then
            begin
              DebugIt('Couldnt walk from the start in varrock along the road.');
              Players[CurrentPlayer].active := False;
            end;
          end;
        end;

    this part:
    SCAR Code:
    if EndsWith('4', GetDebugText) then
          begin
            if (length(between('Did', 'Walk', GetDebugText) > 1) then
            begin
              DebugIt('Couldnt walk from the start in varrock along the road.');
              Players[CurrentPlayer].active := False;
            end;
          end;

    is what i think can be done easier.. it should work for what i want it to do.. but for the sake of time and simplicity i was wondering if there was an easier way to do it.

    thanks

    EDIT:

    oh plus.. DebugIt only Writeln's if you want to "HelpME" (haha).. so this will only work if they do wanna help me.. of coarse i could use it as punishment for not helping... just kidding i dont want to haha

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    maybe with count?
    and it looks very neat nice work i thought you was yet learning scripting
    ~Hermen

  3. #3
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    maybe with count?
    and it looks very neat nice work i thought you was yet learning scripting
    everyone is learning

    its just what people are learning that is diferent haha.

    what do you mean with count?

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i though its was with numbers so
    in a repeat thingy

    after doing somthing
    count := count + 1

    until (count<5)

    or osmthing like that and where is this all about

    get on msn!
    ~Hermen

  5. #5
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    i though its was with numbers so
    in a repeat thingy

    after doing somthing
    count := count + 1

    until (count<5)

    or osmthing like that and where is this all about

    get on msn!
    alright.. ill try to work something out like that.. ill get on in like 20 mins.. gotta take a shower

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. easier way to set x,y?
    By lemonfuzz in forum OSR Help
    Replies: 3
    Last Post: 05-31-2008, 01:58 PM
  2. Making Science Easier
    By Distort in forum News and General
    Replies: 0
    Last Post: 08-29-2007, 10:44 PM
  3. This post need help but is easier one!!!!i know
    By alfonso1024 in forum OSR Help
    Replies: 6
    Last Post: 08-04-2007, 07:39 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
  •