Results 1 to 3 of 3

Thread: Finding NPCS and objects with reflection.

  1. #1
    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default Finding NPCS and objects with reflection.

    Hello guys,

    i am struggling with finding objects and NPC's with ID.
    For example i want to click on a portal with this script sample:
    Simba Code:
    procedure findPortal;
    var
      portal: TReflectObject;
      i: integer;
      p: TPoint;
    begin
      i := 14892;
        p := Point(257, 263);
        Reflect.Mouse.Move(p, 5, 5);
        Reflect.Mouse.Click(MOUSE_LEFT);
        Sleep(2000);
      if portal.Find(objGame,i,40) then
        begin
          Reflect.Mouse.Move(portal.GetMSPoint, 5, 5);
          reflect.mouse.Click(MOUSE_LEFT);
          sleep(2000);
        end;
    end;

    It just seems to not really click directly onto the object but a few pixels away from it, sometimes it clicks on the portal by accident, but pretty rare. The same thing with finding NPC's with pretty mcuh the same script. Prett furstatrating since everything is working smooth right now. Help would be appreachiated

  2. #2
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Check you zoom is on default(this can interfere with click location); there are simpler functions for what you are trying to do..

    maybe look at other scripts for examples?

    <------------------>



  3. #3
    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    ohh default zoom that could be the problem, thank you sir. will test it out now

    EDIT: ok this fixed it, thank you
    Last edited by nenci494; 05-30-2017 at 09:14 PM.

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
  •