Results 1 to 4 of 4

Thread: Close round expected in script

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

    Default Close round expected in script

    PLEASE READ THIRD POST AND SKIP THIS ONE!




    Error is

    Line 50: [Error] (12714:7): Close round expected in script C:\Documents and Settings\**************.scar

    The whole procedure where the line with errors is

    SCAR Code:
    Procedure Withdrawfrombank;
    begin
     if (i := 1) then;     {THIS IS THE LINE WITH THE PROBLEM}
     end;
     else
     i:=1 ;
    Woad := DTMFromString('78DA637CC7C4C050CEC8800CE4932AC1344C9' +
           '4F107504D06AA1A982C5CCD7BA09A02026ABE01D5341050F31DA8' +
           'A686809A0F40358D04D4BC20C2AEFB4035B504D43CC50C1F0C35A' +
           'F806A4A88089F5C026A7E01D5E410A1A68C809A3F84E30200AF4A' +
           '14E8');

           FindDTM(Woad,x, y,1, 1, 800, 600);
           wait(1000+random(2000));

           

    end;


    Do I have something wrong with my if thens?
    [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]

  2. #2
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    here yo go if u dont understand anything that i did just ask and il try to explain to to u
    SCAR Code:
    Procedure Withdrawfrombank;
    var i,Woad : integer;
    begin
     if i = 1 then;
     else      //  removed extra end
     begin
     i:=1 ;
     Woad := DTMFromString('78DA637CC7C4C050CEC8800CE4932AC1344C9' +
           '4F107504D06AA1A982C5CCD7BA09A02026ABE01D5341050F31DA8' +
           'A686809A0F40358D04D4BC20C2AEFB4035B504D43CC50C1F0C35A' +
           'F806A4A88089F5C026A7E01D5E410A1A68C809A3F84E30200AF4A' +
           '14E8');

           FindDTM(Woad,x, y,1, 1, 800, 600);
           wait(1000+random(2000));
     end;
    end;



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

    Default

    Thanks so much. Anyway, another question. On the minimap, do the colours of the walls (The white line) Or the doors (The red line) Change? Because I am planning to use a DTMRotated procedure to walk. Or should I use a Radial Walk function? I am trying to walk from the draynor bank to aggie's house.

    Edit:
    I tried using RadialWalkEx, but it keeps evading me
    SCAR Code:
    (RadialWalkEx(tpa,Aggiex, Aggiey, 7171958, 150, 340, 20, 70)

    I have
    SCAR Code:
    var
    tpa:TPointarray;
    Aggiex, Aggiey:integer;

    I have no errors, but it just wont click the square of grey next to Aggie the witch's house!!!

    Am I correct in saying that radialwalkex will try to look for the colour 7171958 in the distance of 70 in the minimap, looking from angle 340 to 20, with a tolerance of 150?

    Edit No.2

    Okay. I downloaded the radialwalking aid, and discovered the problem. It was going to LOOOONG way from angle 340 to 20, instead of the short way which goes from angle 0. Get me? Is there any method of getting it to use the short way?

    Edit No.3
    Hope this thread is still alive.

    Anyway, I understood how to get past it after rereading wizzup?'s guide. Especially the pretty pictures . Anyway, now I got this.

    SCAR Code:
    RadialWalkEx(tpa,aggiex, aggiey, 5855840, 150, 380, 340, 70);

    Still does not work though, anybody know why?
    [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]

  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    The white color does change, but you can set tolerance for DTMs...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Close Round Expected Error
    By xminimanx in forum OSR Help
    Replies: 19
    Last Post: 04-25-2008, 06:36 AM
  2. Close Round Expected?
    By Raskolnikov in forum OSR Help
    Replies: 3
    Last Post: 02-12-2008, 06:59 AM
  3. Close round expected in script
    By Dunceiam in forum OSR Help
    Replies: 6
    Last Post: 05-04-2007, 08:37 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
  •