Results 1 to 2 of 2

Thread: Unable to move to InvBox once getting bounds

  1. #1
    Join Date
    Jan 2019
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Unable to move to InvBox once getting bounds

    Using SRL-OSR

    GetInvItemBounds(1, Bx);
    writeln(Bx);
    MouseTBox(Bx, 2);

    I get proper coordinates of the item:
    Compiled successfully in 2231 ms.
    {X1 = 563, Y1 = 213, X2 = 594, Y2 = 244}
    Found item
    Error: Invalid jump at line 451
    Execution failed.

    Line 451 is:

    function GaussRand(mean, dev: Extended): Extended;
    begin
    result := mean + dev*srl_GaussRand();
    end;


    I am just looking to get the bounds of an item in inventory them use MouseTBox to click anywhere randomly inside that box.

    Ty

  2. #2
    Join Date
    Jun 2015
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Hmm.. you could try Mouse.Move(Bx)
    Are you using SRL/OSR? The current version of SRL for OSRS is SRL/SRL from here: https://github.com/SRL/SRL/releases

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
  •