Results 1 to 3 of 3

Thread: Help

  1. #1
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Help

    SCAR Code:
    Procedure InvtFull;
    Begin
    GameTab(4);
    Mmouse(703,448,3,2);
    if(IsUpText('illow')) then
    begin
    repeat
    Gametab(4);
    If (FindDTM(willowlog,x, y, 4, 5,) then
    mouse(x,y,1,3,false);
    ChooseOption(x,y'Drop');
    until
    not find(FindDTM(willowlog,x, y, 4, 5,)
    Willows := Willows + 27;
    xperience gained := Xp + 1822;
    end;
    end;

    this is a scripting error on my part but i cant find it.

    Line 157: [Error] (15447:1): Identifier expected in script

    if u need to see entire script i will pm u

  2. #2
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What is line 157? Anyways try ChooseOption('Drop') xy isnt needed.
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  3. #3
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can't say for sure without seeying the whole script, but try to change
    SCAR Code:
    not find(FindDTM(willowlog,x, y, 4, 5)
    with
    SCAR Code:
    if not(FindDTM(willowlog,x, y, 4, 5))

    EDIT: maybe it's cause your using FindDTM with the wrong parameter. This is a copy paste from the scar manual
    function FindDTM(DTM: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Integer;
    Use DTM to find object on client window. x1, y1, x2, y2 specifies box to search in, x, y returns coordinates if found.
    Example:
    if(FindDTM(rock, x, y, 100, 100, 500, 300)) then
    Writeln('I rock');

Thread Information

Users Browsing this Thread

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

Posting Permissions

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