Results 1 to 7 of 7

Thread: SRL Bank

  1. #1
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default SRL Bank

    I have a problem with core/bank.simba depositing feature.
    If i use
    Code:
    Deposit(3, 28, True);
    It fails to deposit item to bank if theres only one of that item.
    Example: I have one iron bar in the 5th inventory slot it fails to deposit it.

  2. #2
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Doesn't that go Deposit (Row, Column, Amount); ?
    Current Project: Retired

  3. #3
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Gucci View Post
    Doesn't that go Deposit (Row, Column, Amount); ?
    Yes, Amount is a variant which can be a boolean. Try force updating srl?

  4. #4
    Join Date
    Nov 2011
    Location
    MA
    Posts
    545
    Mentioned
    3 Post(s)
    Quoted
    10 Post(s)

    Default

    Simba Code:
    (*
    Deposit
    ~~~~~~~

    .. code-block:: pascal

        Procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);

     Deposits from Slot to ToSlot.
      vType True = Deposit All. vType False = Deposit one by one.
      Any integer is deposit with Deposit X. (except for 5 and 10)

    .. note::

        Author: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
        Last Modified: Unknown

    Example:

    .. code-block:: pascal

        Deposit(1, 28, True);
    *)

    If you only want to deposit one item, you'll have to set the variant to false

  5. #5
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by tehq View Post
    Simba Code:
    (*
    Deposit
    ~~~~~~~

    .. code-block:: pascal

        Procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);

     Deposits from Slot to ToSlot.
      vType True = Deposit All. vType False = Deposit one by one.
      Any integer is deposit with Deposit X. (except for 5 and 10)

    .. note::

        Author: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
        Last Modified: Unknown

    Example:

    .. code-block:: pascal

        Deposit(1, 28, True);
    *)

    If you only want to deposit one item, you'll have to set the variant to false
    This isn't correct. Setting vType to True will click on the "Deposit Bag" or whatever if you do Deposit(1, 28, True);, but if SlotFrom and SlotTo aren't 1 and 28, respectively, it will go through SlotFrom to SlotTo, right clicking and selecting the Deposit-All option for that item. Otherwise, it will do Deposit-X, and deposit the integer value of vType.

  6. #6
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    I remember that it worked for me that way... Like if i had one iron bar in 3rd slot and from 4th to 28th had iron ores, it banked my items but now it doesn't.
    If i set it False then it deposits all stuff one by one which is pretty stupid.

  7. #7
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    You can make the function you need yourself. It's pretty simple.

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
  •