Results 1 to 6 of 6

Thread: How to right click object?

  1. #1
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default How to right click object?

    I need a function that can right click a character and then trade.

    I know that this function can click the character :

    FindObjCustom(x, y, ['Over text'], [colour], tolerance);
    Mouse(x,y,4,4,true);

    But is there a function that can right click, using over text and colour, and then select the trade option.

    Thanks for the help

  2. #2
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i suggest using a rotated dtm to find your character and then just use ClickMouse2();

    In those () you can put mouse_right or mouse_left, after use chooseoption(if that is still working, Im pretty sure it is...) and voila

  3. #3
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    So what would a rotated dtm be?

  4. #4
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mouse(x,y,4,4,true);
    but instead of true
    Mouse(x,y,4,4,False);
    and findrotated is just finding the dtm on an angle- better for finding your DTM.
    You can find it in the SRL includes

  5. #5
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Oh it worked thanks a lot, also managed to trade the Npc. )

  6. #6
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    great! glad it worked

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
  •