Results 1 to 4 of 4

Thread: Need help ;)

  1. #1
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    335
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help ;)

    SCAR Code:
    program AutoFighter;
    {.include srl/srl.scar}
    var
      x,y: integer;
    const
      Monster = 2124646;
    begin
    MouseSpeed := 30;
      FindColor(x,y,Monster,0,0,283, 257 + Random(200)) // if not found try again?
      Mouse(x,y,2,2,false);
      wait (10)
      ChooseOption('ttack');
    SetupSRL;
    end.
    This is autofighter :d.My english is not so good remember that.

    So how to do this: I start script and its attacking monster but ho to repeat it? X times. X= any number.
    How to add anti ban and randoms :d

    This is my first time to i wanna make script.

    E: i readed many guides but i dont understand DTM´s. :<

  2. #2
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You do not need dtms. Antirandoms is easy

    FindNormalRandom; Whenever you want to check for random events

    Antiban... read a tut on it

    To make it look every 10 seconds do something like this
    SCAR Code:
    repeat
    //monk stuff here
    wait(10000);
    until not loggedin
    ~ Metagen

  3. #3
    Join Date
    Jul 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think this line:
    ChooseOption('ttack'); //someone help if not found try again found.

    should be this:
    ChooseOption('tack'); //someone help if not found try again found.

    i think its only supposed to have 4 letters of the option.
    i believe i heard this a while ago.

  4. #4
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Don't worry, DTMs are meant for Item clicking and Moving around using the Minimap.

    Take out mouse speed, SetUpSRL takes care of that...

    Try this function
    SCAR Code:
    FindObjTPA(x, y, {Insert Monk's Color}, {Color Tolerance, Chose 10-15 if you dont know.}, -1, 15, 15, 3, ['nk','Monk', 'onk']);

    This works better.

    SCAR Code:
    program Joo;
    {.include srl/srl.scar}
    var
      x,y: integer;
    const
      Monk = 7051211;
    begin
    MouseSpeed := 30;
      FindColor(x,y,Monk,0,0,277,133 + Random(425))
      Mouse(x,y,2,2,false);
      wait (10)
      ChooseOption('ttack'); //someone help if not found try again found.
    SetupSRL;
    end.

    and make the Wait function longer. Remember, it goes by milli seconds. 1 sec = 1000 milli seconds. So put like 500 or 450.

    SCAR Code:
    Wait(400 + Random(110));

    and here is a proper way to set up your script.

    SCAR Code:
    program Joo;
    {.include srl/srl.scar}
    var
      x,y: integer;
     
    const
      Monk = 7051211;

    procedure FightMonk;
    begin
      FindObjTPA(x, y, Monk, 10, -1, 15, 15, 3, ['nk','Monk', 'onk']);
      Wait(315 + Random(115));
      Mouse(x, y, 2, 2, False);
      Wait(400 + Random(440));
      ChooseOption('ttack');
      Wait(1*60*1000 + Random(4000));
    end;

    begin
      repeat
        FightMonk;
      until (False);
    end.

    I dont got time, i made this in 1 minuite (I timed myself =p) . So Good luck!

    By the way
    1* 60* 1000
    ^ ^ ^
    Min. Sec. MilliSec.

    What i did here is multiply the numbers... so if i multiplied 60 * 1000, = 60000 milliSec. and if i want to convert mili sec to a minuites i did...

    5 minuites * 60 seconds * 1000 milli sec. Determine ur time of killing a monk.

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
  •