Results 1 to 4 of 4

Thread: Select one banker from a row? [Will fix my pathfind + increase efficiency]

  1. #1
    Join Date
    May 2015
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    32 Post(s)

    Default Select one banker from a row? [Will fix my pathfind + increase efficiency]

    Hi,

    When at Al Kharid bank is there a way to select the banker on the far right hand side. My script seems to keep choosing the left hand side. Having general banking issues

    Thanks

  2. #2
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Quote Originally Posted by rickhunley View Post
    Hi,

    When at Al Kharid bank is there a way to select the banker on the far right hand side. My script seems to keep choosing the left hand side. Having general banking issues

    Thanks
    If camera static then just use shortfrommidpoint()to short tpas to any dot from the right like point(500,250); If not static then you need rotate that dot according to camera angles and then short from it. Else if your location varies you can try to sort dots from minimap to get the right most banker then transfer pointtomainscreen() and search there. It all depends on the situation. Anther option is to look for relative object. Find unique object, and filter bankers to the closes/farest from that object.

    I assume you use sps walking, it doesnt rotate camera, so it tends to arrange tpas from top left corner and it always becomes left banker. Probably you just need to short tpa like sortfrommidpoint() and choose right mainscreen point. Thats all

  3. #3
    Join Date
    May 2015
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    32 Post(s)

    Default

    Sorry, I'm not very familiar with code and couldn't find that short function. Is there some documentation you could refer me to please? Thanks

  4. #4
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Example from one of my scripts:

    Simba Code:
    FindColorsSpiralTolerance(x, y, TPA, 10673123, mainScreen.getBounds(), 2, colorSetting(2, 0.26, 2.06));
        ATPA := TPA.toATPA(20, 20);
        ATPA.filterBetween(0, 3);
        ATPA.sortFromMidPoint(mainscreen.playerPoint); // Sorts atpa from the closest to the farest one from the given point //(mainscreen.playerpoint), in your case you should change it to the point which should always be right on the screen so like
     // point(500,250) would do fine if camera view is static.
        if length(ATPA)<1 then exit;
        smartImage.debugATPA(ATPA);
        Statusas('Banking trying to catch bank from roof top');
        for i := 0 to high(atpa) do
        begin
          mousebox(ATPA[i].getbouds(),mouse_left);
        end;

    Posting you actual banking procedure might help also. Hopefully you done use something like openbank() if you do then you need to change that function abit, just to insert sorting in a correct place.

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
  •