Results 1 to 2 of 2

Thread: Fantasy online request

  1. #1
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question Fantasy online request

    Hi evryone
    i play this game Fantasy online
    i'd like to make a script for have an auto-attack
    i've found this but does'nt work:

    #####

    program AutoFighter;

    var
    x,y: Integer;

    const

    procedure Attack;
    begin
    If FindColorTolerance(x, y, 255, 155, 154, 564, 214, 726, 451, 5) then
    begin
    Writeln('Found NPC > Attacking!')
    MoveMouse(x,y+random(3));
    wait(randomrange(25,50));
    ClickMouse(x,y,mouse_Left);

    Wait(5000); //MS to wait. 1000 = 1sec
    end;
    end;

    begin
    repeat

    Attack; //Procedure Attack

    until(false);
    end.

    #######

    The error is
    Desktop\123.simba(9:1): Identifier expected at line 8
    Compiling failed.

    Can some on help me or make a new script?
    THanks a lot!!!

  2. #2
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

    You have too many things in your FindColorTolerance line!

    Simba Code:
    If FindColorTolerance(x, y, 255, 155, 154, 564, 214, 726, 451, 5) then

    All you need in it are these:



    So, for example:

    Simba Code:
    if FindColorTolerance(x, y, examplecolour, xs, ys, xe, ye, tol) then

    Also, to get a colour use the colour picker tool in Simba.

    I removed some of the numbers in there and it compiled so yeah, there's your problem.

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
  •