Results 1 to 4 of 4

Thread: Tpoint help.

  1. #1
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Tpoint help.

    Okay, I am making a beta version of a firemaker for my willow chopper. And I need help with something.

    SCAR Code:
    program New;
    {.include srl/srl.scar}

    procedure Burn;
    var
      Item,Item2 : TPoint;
      i,z: integer;
    begin
      for i := 1 to 28 do
      begin
      Z := Z+1;
      item[I]:= itemCoords(1); //Makes all of OurVar's = there ItemCoords number
      Mouse(Item[i].x, Item[i].y,1,1,true);
      wait(500+random(600))
        If ExistsItem(Z) then
         begin
          Item2[Z] := ItemCoords(z);
          Mouse(Item2[z].x, Item[z].y,1,1,true)
          end;
      end;
    end;


    begin
    SetupSRL;
    Burn;
    end.
    I use that and i get this.
    SCAR Code:
    Failed when compiling
    Line 12: [Error] (12315:5): Semicolon (';') expected in script
    Any ideas?

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

    Default

    You can just use MMouseItem(slot: Integer) and MouseItem(slot: Integer; LeftClick: Boolean) instead of getting the co-ords etc.
    Anyway, TPoint isn't an array, so you don't have to do Item[i], just Item and that's why you get the error (just take out the i's or set item/2 as TPointArray).
    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.

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

    Default

    You forgot a ; there

  4. #4
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, Thanks guys!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. TPoint
    By Shuttleu in forum OSR Help
    Replies: 6
    Last Post: 08-07-2008, 05:38 PM
  2. Seperate Tpoint
    By 13om13e12 in forum OSR Help
    Replies: 2
    Last Post: 06-07-2008, 04:29 PM
  3. help with Tpoint error
    By stampede10343 in forum OSR Help
    Replies: 3
    Last Post: 02-09-2008, 09:34 PM
  4. Function():TPoint ?
    By A G E N T in forum OSR Help
    Replies: 9
    Last Post: 12-08-2007, 01:35 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
  •