Results 1 to 5 of 5

Thread: Opening bank

  1. #1
    Join Date
    Dec 2015
    Location
    where do you live!
    Posts
    30
    Mentioned
    2 Post(s)
    Quoted
    13 Post(s)

    Default Opening bank

    I'm currently using something to the effect of the following snippet to open the bank..

    Code:
    obj.Find(ObjGame, //bankID, 10);
    repeat
    Reflect.Mouse.Move(obj.getMSPoint,5,5);
    sleep(random(5,20));
    until Reflect.Text.isUpTextMulti(bankTextArray);
    if Reflect.Text.isUpTextMulti(bankTextArray) then
    Reflect.Mouse.Click(MOUSE_LEFT);
    //waits, do other stuff
    I'm wondering if I'm missing something with the include which may make it faster/easier to open the bank?

    I checked through the widgets, which I do not fully understand.. do the interact functions work here?

    Would it be difficult to integrate the OpenBankPoint function from Aerolib to Reflection?

  2. #2
    Join Date
    Mar 2012
    Posts
    107
    Mentioned
    2 Post(s)
    Quoted
    49 Post(s)

    Default

    Quote Originally Posted by Keelijh View Post
    I'm currently using something to the effect of the following snippet to open the bank..

    Simba Code:
    obj.Find(ObjGame, //bankID, 10);
    repeat
     Reflect.Mouse.Move(obj.getMSPoint,5,5);
     sleep(random(5,20));
    until Reflect.Text.isUpTextMulti(bankTextArray);
    if Reflect.Text.isUpTextMulti(bankTextArray) then
     Reflect.Mouse.Click(MOUSE_LEFT);
    //waits, do other stuff

    I'm wondering if I'm missing something with the include which may make it faster/easier to open the bank?

    I checked through the widgets, which I do not fully understand.. do the interact functions work here?

    Would it be difficult to integrate the OpenBankPoint function from Aerolib to Reflection?
    Wrap your code in SIMBA tags next time for it to be easier on the eyes, when you post on the forum.

    Okay so you want to open the bank, are you looking for a chest, a bank teller, or bank booth?


    Widgets are more for interfaces and the game tabs, options, etc. Not for the in-game world, unless it is displaying an interface.

  3. #3
    Join Date
    Dec 2015
    Location
    where do you live!
    Posts
    30
    Mentioned
    2 Post(s)
    Quoted
    13 Post(s)

    Default

    Quote Originally Posted by One Kid View Post
    Okay so you want to open the bank, are you looking for a chest, a bank teller, or bank booth?
    Bank booth. I've encountered a scenario where talking to the teller can be troublesome while running, so my focus is more on booths currently.

    (as an aside, in order to interact with a bank teller, the parameter in the Obj.find function would need to be changed from ObjGame, no?)
    Last edited by Keelijh; 01-23-2016 at 11:13 PM.

  4. #4
    Join Date
    Jan 2012
    Location
    Sweden
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Trying to do the same thing, that is, open a bank booth at Edgeville. What would be the best/simplest code to accomplish this?

  5. #5
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by Valvar View Post
    Trying to do the same thing, that is, open a bank booth at Edgeville. What would be the best/simplest code to accomplish this?
    Simba Code:
    procedure OpenBank();
    var
      Bank: TReflectObject;
    begin
      if (Interfaces[PINSCREEN].isVisible()) then
        //pin procedure
      if (isBankOpen()) then
        exit;
        if bank.Find(objGame, 'Bank booth', 10) then
        begin
          Reflect.Mouse.Move(bank.GetMSPoint, 10, 10);
          fastclick(mouse_left);
        end;
    end;

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
  •