Results 1 to 6 of 6

Thread: TPA or ATPA for combat?

  1. #1
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TPA or ATPA for combat?

    Which one, since atpa seems to be slower for me. if theres any way to speed up i would like to know also.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Is atpa slow?
    I've never used (or can't remember) using just TPA.
    With just TPA you risk cycling the mouse quickly in the samish location vs with atpa you can break into boxes and use pixel counts to be more specific, have mouse move only to the monster for sure, and each time it moves/cycles (assuming you hovered something wrong) it will move further away rather than sameish location over and over.

    On phone and super tired

  3. #3
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ya, but half the time when it gets to the monster it moves leaving nothing there for uptext check and then moves to the next one which has also moved and continues usually not finding one since it takes soo long for it to get to one that hasnt moved, that it would eventually of moved! :P

  4. #4
    Join Date
    Feb 2012
    Posts
    386
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    If your ATPA is slow, it must be because sometime is not working like it is supose it. I am using ATPA in my abyss script to find the mage and he is always in mouvement,but my script still find it very fast

    The way you have to make your atpa is simple, it moves the mouse, if the uptext is not the good one, You need to make your script doing back the function and get ATPA again. This is my most advance technique to findNPC that I will update soon in my tutorial I made 2 weeks ago.

    Simba Code:
    Function TalkingToMagesR: Boolean;

    Var
       TPAA: T2DPointArray; //Declare the variables
       TPA: TPointArray;
       CTS, I, T: Integer;
    Begin
    MageTalk := MageTalk + 1;
    if (MageTalk = 4) then
    begin
    MageTalk := 0;
    MovingToFindMage;
      Exit;
      end;
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      FindColorsSpiralTolerance(MSCX, MSCY, TPA, 1384080, MSX1, MSY1, MSX2, MSY2, 80);
      ColorToleranceSpeed(CTS);
      TPAA := SplitTPA(TPA,1);
      SortATPASize(TPAA, True);
      HpCheckEmergency ;
      For I := 0 To High(TPAA) Do
        If GetArraylength(TPAA[i]) > 0 Then
        Begin
          MiddleTPAEx(TPAA[i], X, Y);
          MMouse(X, Y, 1, 1);
          wait(100 + random(100));
           if (IsUpTextMultiCustom(['age', 'amorak'])) then
          Begin
            GetMousePos(X, Y);
            mouse(x,y,0,0,false);
            HpCheckEmergency ;
            wait(100 + random(200));
           if (ChooseOption('elep')) then
          begin
          ChooseOption('elep');
          wait(1000 + random(1000));
          Marktime(T);
          repeat
          wait(50 + random(100));
          until (FindDTMRotated(FailSafe[2],x,y,MSX1,MSy1,MSx2,MSY2, -Pi/4, Pi/4, Pi/60, afound) or (TimeFromMark(t) > 6000));
          Writeln('We are Getting Inside');
          Result := true;
          Exit;
          end else
          begin
          TalkingToMagesR;
          end;
            end else
            begin
          TalkingToMagesR;
          Break;
          end;
          end else
          begin
          MovingToFindMage;
           Exit;
          end;
          end;
    Last edited by Nemesis3X; 03-15-2012 at 03:00 AM.

  5. #5
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    ATPA is the way to go, i've written combat scripts (GSK), and it's a MUCH more visible difference.

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    all of my scripts(public+private) involving objects are found with ATPAs . they are just too reliable/fast to pass up.

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
  •