Results 1 to 5 of 5

Thread: bankScreen.clickButton(BANK_BUTTON_NOTE) problem

  1. #1
    Join Date
    Apr 2015
    Location
    I dont know in front of my window is a wall
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default bankScreen.clickButton(BANK_BUTTON_NOTE) problem

    Hello, i started scripting and have some issues and dont find help in the dorum please help me

    i want to withdraw all with a note, i've made it so:
    Code:
    procedure withDrawItems();
    begin
      bankScreen.clickButton(BANK_BUTTON_NOTE);
      bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''] );
    end;
    but he clicked the note button twice instead of once, can you help me ?

    Thanks

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

    Default

    Quote Originally Posted by klopfie View Post
    Hello, i started scripting and have some issues and dont find help in the dorum please help me

    i want to withdraw all with a note, i've made it so:
    Code:
    procedure withDrawItems();
    begin
      bankScreen.clickButton(BANK_BUTTON_NOTE);
      bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''] );
    end;
    but he clicked the note button twice instead of once, can you help me ?

    Thanks
    The parameter after the overText is an 'asNote' boolean, so you can go:

    Simba Code:
    bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''], True); // True means withdraw as note

    It was clicking it twice because you made it click the first time, and it clicked it again because it thought it was withdrawing the item NOT as a note (because you didn't have it set to True), so it turned off the note button before it withdrew your item.
    Last edited by The Mayor; 04-18-2015 at 10:23 AM.

  3. #3
    Join Date
    Apr 2015
    Location
    I dont know in front of my window is a wall
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Thanks !!

  4. #4
    Join Date
    Aug 2012
    Posts
    188
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    How do I use this with a DTM? I can't figure out how to withdraw a noted item using a DTM, or am I forced to do it from a certain slot?

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

    Default

    Simba Code:
    function TRSBankScreen.withdraw(dtm, amount: integer; asNote: boolean = false; toFamiliar: boolean = false): boolean; overload;

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
  •