Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: In Depth Guides - Banking

  1. #1
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default In Depth Guides - Banking

    After all my costant requests for help in various areas, I thought I better give back, so here comes a tutorial on Banking
    Banking Basics to Advanced
    Opening The Bank
    This is obviously needed to withdraw or deposit anything.
    Reflection
    Reflection is probably simpler, but as seen recently, may be broken for a long time.

    Function R_OpenBankBooth(Bank:String):Boolean;

    Valid strings for Bank

    'veb', 'varrock east':
    'vwb', 'varrock west':
    'falador west', 'fwb':
    'falador east', 'feb':
    'lumbridge', 'lb':
    'draynor', 'db':
    'al kharid', 'akb':
    'seb', 'seers': -
    'eb', 'edgeville': -
    'cb', 'catherby': -
    'fgb', 'fishing guild' -
    'mc', 'moonclan' -
    'yb', 'yanille': -
    'da', 'duel arena' -
    'asb', 'ardougne south' -
    'pc', 'pest control' -

    This will open the bank using a booth in the specified location. Will Return True if it opens successfully, and False if it doesn't.

    Color
    OpenBankQuiet(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;
    More accurate, but takes longer

    OpenbankGlass(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;
    Simply opens the bank by finding the glass color

    OpenBankFast(Location: String): Boolean;
    Open the bank...fast

    OpenbankNPC:Boolean;
    Opens the bank by clicking on the NPC

    Openbank(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;
    tries all of the above procedures


    FindBank(TheBank: string): Boolean;
    Checks if you are in "The Bank" and then uses OpenBank

    OpenDepositBox:Boolean
    Opens the bank deposit booth.

    Valid WhichBank strings
    'feb' (Falador East Bank)
    'fwb' (Falador West Bank)
    'veb' (Varrock East Bank)
    'vwb' (Varrock West Bank)
    'db' (Draynor Bank)
    'akb' (Al-Kharid Bank)
    'eb' (Edgeville Bank)
    'ctb' (Catherby bank)
    'clt' (Camelot bank)
    'nab' (North Ardougne bank)
    'sab' (South Ardougne bank)
    'ynb' (Yanille bank)
    'ngb' (North gnome bank)
    'sgb' (South gnome bank)
    'wgb' (Warrior guild bank)
    'fgb' (Fishing guild bank)

    Other variables
    WhichBank - which bank needs to be opened
    ChangeCompass - Change the angle of the the compass,
    ChangeAngle - Change the Height of the camera
    Last edited by Bad Boy JH; 06-03-2010 at 11:50 AM.

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  2. #2
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Depositing
    Opening the bank is useless unless you deposit what you have in your inventory.
    Reflection
    R_DepositAllFast:Boolean);
    Deposits everything in your inventory,
    Fast = True uses the "Deposit All" button, False deposits all items individually

    Before I start talking about these Deposit functions, I think a brief intro to Item IDs is needed, as these functions that follow, require Item IDs. An ID is unique to every item, and is different when its noted, or unnoted. To find an ID of an item, Run the script at the bottom of this post, Titled "Item ID Finder".


    R_DepositAllID(ID : Integer): Boolean;
    Deposits All of one type of an item, specified by ID.

    procedure R_DepositAllButID(ID : Integer);
    Deposits all in your inventory, except those specified by ID.

    R_DepositAllButIDEx(IDs : TIntegerArray);
    Same as R_DepositAllButID, but allows multiple IDs, in a tolerance. An array can be declared as "[Item1, Item2, .....ItemX].

    Colour
    DepositAll : Boolean;
    Clicks the deposit all button, Returns True if successfull

    Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
    Deposits all Items between SlotFrom to SlotTo. eg if SlotFrom is 2, and SlotTo is 8, then it will deposit all items in slots, 2, 3, 4, 5, 6, 7, 8.
    vType is how many will be deposited
    True : Right Clicks then selects Deposit-All.
    False : Left Clicks on all the items.
    5 or 10 : Right Clicks then selects Deposit-5 or Deposit-10
    Other Integers : Right Clicks and uses Deposit-X, then enters the number.
    Last edited by Bad Boy JH; 06-04-2010 at 03:53 AM.

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  3. #3
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Reserved - tutorial to be continued (2)

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  4. #4
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Reserved - tutorial to be continued (3)

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  5. #5
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Reserved - tutorial to be continued (4)

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The first post is still very global, you should give examples of the parameters filled in, and then let people play with the parameters to learn it and get used to it. Because a normal person wouldn't know how to fill them in properly.
    ~Hermen

  7. #7
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    How long can you make a tutorial about banking? LOL.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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

    Default

    Quote Originally Posted by R1ch View Post
    How long can you make a tutorial about banking? LOL.
    Well there are multiple ways of opening the bank, withdrawing stuff from or if you want to deposit stuff. You can also just view the banks contents and check how much of what you got.
    There used to be something meaningful here.

  9. #9
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Well there are multiple ways of opening the bank, withdrawing stuff from or if you want to deposit stuff. You can also just view the banks contents and check how much of what you got.
    Just to continue the list;
    Analyze every bank function
    How to make your own functions

    The list can be pretty big

  10. #10
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    How long can you make a tutorial about banking? LOL.
    You should honestly give it some more thought before you make a post. Banking can be complex depending what you do. While its simple for a human to just simple open and search the bank. Its not the same creating a script for it that is flawless with fail-safes. Managing Tabs, scrolling down/up, searching for a DTM, bitmap, etc. Scrolling in itself could be quite complex.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  11. #11
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    You should honestly give it some more thought before you make a post. Banking can be complex depending what you do. While its simple for a human to just simple open and search the bank. Its not the same creating a script for it that is flawless with fail-safes. Managing Tabs, scrolling down/up, searching for a DTM, bitmap, etc. Scrolling in itself could be quite complex.
    I made a suggestion to the simba forum about ScrollMouse and I think someone made it. With that it could be easier since it scrolls exatly 1 row at time :P

  12. #12
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by antti mies View Post
    I made a suggestion to the simba forum about ScrollMouse and I think someone made it. With that it could be easier since it scrolls exatly 1 row at time :P
    Not always, what if that persons bank is full, or 2/3rds full, or they have all tabs used up. Each tab places a separator in the main tab adding to its length. As well as the number of items changes how large the main tab is. So the scroll bar is never 100% accurate until you consider all of those factors. It could be done, not too difficult if you get all the measurements of each of those factors and plug them in.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  13. #13
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is supposed to be an tutorial about all the functions in the bank
    Post 1 (already posted) is Opening
    Post 2 is Depositing
    Post 3 is Withdrawing
    Post 4 is Everything Else (Pin Screen, Bank Screen etc)
    Post 5 is "putting it all together"

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  14. #14
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Please include the constants for the banks
    SCAR Code:
    const
      Bank_FE = 'feb'; // (Falador East Bank)
      Bank_FW = 'fwb'; // (Falador West Bank)
      Bank_VE = 'veb'; // (Varrock East Bank)
      Bank_VW = 'vwb'; // (Varrock West Bank)
      Bank_GE = 'geb'; // (Varrock GE Bank)
      Bank_DR = 'db' ; // (Draynor Bank)
      Bank_AK = 'akb'; // (Al-Kharid Bank)
      Bank_EV = 'eb' ; // (Edgeville Bank)
      Bank_CT = 'ctb'; // (Catherby bank)
      Bank_CM = 'clt'; // (Camelot bank)
      Bank_NA = 'nab'; // (North Ardougne bank)
      Bank_SA = 'sab'; // (South Ardougne bank)
      Bank_YN = 'ynb'; // (Yanille bank)
      Bank_NG = 'ngb'; // (North gnome bank)
      Bank_SG = 'sgb'; // (South gnome bank)
      Bank_WG = 'wgb'; // (Warrior guild bank)
      Bank_FG = 'fgb'; // (Fishing guild bank)

  15. #15
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they were added, after I did this, or at least I only found out about them (didn't update) until after I had done that, I will tomorrow morning...im too tired *yawns* stupid umbilical brothers, they really made that show go for ages...

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

  16. #16
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    sorry I am new to this but what have I done wrong:
    Code:
    procedure bank;
    begin
      Openbank(WhichBank: vwb; ChangeCompass, ChangeAngle: Boolean): Boolean;
      Deposit(1, 27: Integer; vType: True);
    
    end
    It is probably something really stupid, it's getting late

  17. #17
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by putonajonny View Post
    sorry I am new to this but what have I done wrong:
    Code:
    procedure bank;
    begin
      Openbank(WhichBank: vwb; ChangeCompass, ChangeAngle: Boolean): Boolean;
      Deposit(1, 27: Integer; vType: True);
    
    end
    It is probably something really stupid, it's getting late
    It should be something like this:

    Simba Code:
    procedure bank;
    begin
      Openbank('vwb', True,True);
      Deposit(1, True);
    end;
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  18. #18
    Join Date
    Feb 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey man what would be the string and location of the living rock caverns bank/pulley thing

  19. #19
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by surfboards2 View Post
    hey man what would be the string and location of the living rock caverns bank/pulley thing
    Check the include, it may not be supported.

    Try not to gravedig and just ask in the scripting help section.
    I'm back

  20. #20
    Join Date
    Feb 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im a noob :P whats the include? im just starting scripting im trying to watch tutorials and stuff

  21. #21
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by surfboards2 View Post
    im a noob :P whats the include? im just starting scripting im trying to watch tutorials and stuff
    Search in the function explorer on the left-hand side of Simba. Double click the function and it will open the include at the correct spot. There is normally documentation somewhere inside the include.
    I'm back

  22. #22
    Join Date
    Mar 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    The player will go automatically to the bank that i will mention
    in the function?

  23. #23
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by moring View Post
    The player will go automatically to the bank that i will mention
    in the function?
    No, your player must already be in the bank

  24. #24
    Join Date
    Mar 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    No, your player must already be in the bank
    There is any tut for walking to the bank?

  25. #25
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by moring View Post
    There is any tut for walking to the bank?
    You should REALLY try searching for things yourself (use the Search button)

    But here you go anyway - because I'm so kind: http://villavu.com/forum/search.php?searchid=1886670

Page 1 of 2 12 LastLast

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
  •