Results 1 to 8 of 8

Thread: Some quick questions

  1. #1
    Join Date
    Nov 2014
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default Some quick questions

    Hi guys, I need some help with some questions and would appreciate if anyone can shed some light.

    1. How big is this mainscreen.Playerbound? Roughly.
    2. Is there SRL function to identify and do mouse_move or mouse_left for NPC vendors like they do for backpack slots and say bank slots? Which means, is there something to the effect of

    Code:
    if vendorScreen.isOpen() then
    vendorScreen.mouseSlot(3, mouse_right, buy_all);
    Thank you in advance.

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    To find out how big the player box is:
    Simba Code:
    smartImage.drawBox(mainScreen.playerBox);

    For the mouse_right you need to use chooseOption().
    There used to be something meaningful here.

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    1.
    Simba Code:
    procedure TRSMainscreen.__setup();
    const
      PLAYER_BOX_WIDTH = 26;
      PLAYER_BOX_HEIGHT = 38;
    . . .

    The playerBox is exactly 26 by 38 pixels.

    2. chooseOption will get the job done.
    Simba Code:
    if vendorScreen.isOpen() then
     begin
       vendorScreen.mouseSlot(3, MOUSE_RIGHT);
       chooseOption.select(['Your text', 'our tex', 'r te']);
     end;
    Last edited by KeepBotting; 12-12-2014 at 12:51 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  4. #4
    Join Date
    Nov 2014
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    1.
    Simba Code:
    procedure TRSMainscreen.__setup();
    const
      PLAYER_BOX_WIDTH = 26;
      PLAYER_BOX_HEIGHT = 38;
    . . .

    The playerBox is exactly 26 by 38 pixels.

    2. chooseOption will get the job done.
    Simba Code:
    if vendorScreen.isOpen() then
     begin
       vendorScreen.mouseSlot(3, MOUSE_RIGHT);
       chooseOption.select(['Your text', 'our tex', 'r te']);
     end;
    Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.

  5. #5
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Brose View Post
    Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.
    No, there is not.

  6. #6
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

  7. #7
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Brose View Post
    Sorry. is there a vendorScreen.mouseSlot function? Because I just made it up on the spot. I dont see it in the documentation though.
    VendorScreen is a shop screen? No, there are no shop screen function in the include

    You could however, copy one of the other TRSInterfaces in the include and add your own naming, bounds, colors, and edit functions like .mouseSlot() to be able to interact with a new interface
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  8. #8
    Join Date
    Nov 2014
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Ah that explains alot. Thanks alot everyone

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
  •