Results 1 to 5 of 5

Thread: OpenBank(WhichBank: variant; ChangeCompass, ChangeAngle: Boolean): Boolean;

  1. #1
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation OpenBank(WhichBank: variant; ChangeCompass, ChangeAngle: Boolean): Boolean;

    Could someone help me with understanding what these two arguments in the OpenBank function are for ...

    1) ChangeCompass
    2) ChangeAngle

    They are both booleans.

    I been staring at bank.simba for too long now, and to be honest - I'm just a little bit annoyed that I can't figure this out.

    Put me out of my misery - please ?
    Ciao
    NM

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    ChangeCompass will change the direction the compass is facing if you set it to True. ChangeAngle will move the angle up and down if you set it to True.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Smile

    Thank you Kyle Undefined!

    I feel even more challenged now. Looking at ChangeAngle I can now easily see what it does, as SetAngle(SRL_ANGLE_HIGH); is no mystery.

    Does the ChangeCompass boolean introduce some randomness of camera orientation, or is it more to do with the way the referenced bank counters are aligned, and thus make for a more convenient perspective / viewing aspect ?

    EDIT: I wish I hadn't asked now, as I feel I've lost a little kudos here. So there is such a thing as a dumb question.
    Last edited by NickMystre; 02-16-2012 at 01:49 PM.
    Ciao
    NM

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    The way OpenBank works is by looping through all 4 of the bank opening functions until one works or none of them work. ChangeCompass is only used in OpenBankGlass and this is how it changes the compass:

    Simba Code:
    if ChangeCompass then
      begin
        c := Random(2);
        case WhichBank of
          'feb', 'fwb', 'veb', 'ctb', 'clt', 'nab': if c = 0 then MakeCompass('N') else MakeCompass('S');
          'akb', 'db', 'eb', 'vwb', 'sab', 'ynb', 'sgb', 'wgb', 'fgb': if c = 0 then MakeCompass('E') else MakeCompass('W');
          'ngb': if c = 0 then MakeCompass(45) else MakeCompass(225);
        end;
      end;

    So, depending on the bank that is passed in and the c variable that is randomized, it makes the compass angle optimized for that bank.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Again, much appreciated Kyle. Pouring over source code is pretty exhausting to begin with.

    Already some things are not as daunting as at first - but it will take a while to be completely comfortable.

    One step at a time!
    Ciao
    NM

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
  •