Results 1 to 19 of 19

Thread: Funtions help =[

  1. #1
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Funtions help =[

    i need help explanation on how to use
    SCAR Code:
    function OpenBank(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;

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

    Default

    Quote Originally Posted by BlueWorld View Post
    i need help explanation on how to use
    SCAR Code:
    function OpenBank(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;
    You use it like:
    SCAR Code:
    OpenBank('VEB', True, True);
    Means that it opens Varrock East Bank (VEB) and changes compass to one it needs and also the angle to up.
    There used to be something meaningful here.

  3. #3
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how do you know to put true true?

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

    Default

    Quote Originally Posted by BlueWorld View Post
    how do you know to put true true?
    The angle, is true because i want it to go as up as it can, so it can find the bank booth, and the compass is good to be true to because some banks are in different angles?
    There used to be something meaningful here.

  5. #5
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function OpenBankFast(Location: String): Boolean;
    how about this? how do you know what to put for string and boolean?

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

    Default

    Quote Originally Posted by BlueWorld View Post
    SCAR Code:
    function OpenBankFast(Location: String): Boolean;
    how about this? how do you know what to put for string and boolean?
    I think theres a list somewhere, 'VEB' 'VWB' for example.

    SCAR Code:
    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)
    There used to be something meaningful here.

  7. #7
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wanna msn its faster?

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

    Default

    Quote Originally Posted by BlueWorld View Post
    wanna msn its faster?
    Well, if someone else uses the search, they get the answer too

    Anyway, more questions?
    There used to be something meaningful here.

  9. #9
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i need to know how to use
    SCAR Code:
    procedure SearchBank(Item: string);  
    function OpenBankFast(Location: String): Boolean;
    i don't get how you know how to fill it out

    mind telling the difference between funtion and procedure btw?
    Last edited by BlueWorld; 05-01-2010 at 11:02 AM.

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

    Default

    Quote Originally Posted by BlueWorld View Post
    well i need to know how to use
    SCAR Code:
    procedure SearchBank(Item: string);  
    function OpenBankFast(Location: String): Boolean;
    i don't get how you know how to fill it out

    mind telling the difference between funtion and procedure btw?
    Function returns something, procedure just does something.

    And theres usually some sort of explanation on the function, thats how i know how to fill.

    And once you have scripted for few months you get to know what to fill in what and you remember the functions without looking at the files
    There used to be something meaningful here.

  11. #11
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can we msn or something cause this is getting tetious

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

    Default

    Well you can add me.
    There used to be something meaningful here.

  13. #13
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well if your not gonna be on i don't really see i point in me addin >_<

    SCAR Code:
    procedure SearchBank(Item: string);  
    function OpenBankFast(Location: String): Boolean;
    function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;
    how do i use these procedure and funtions?

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

    Default

    Quote Originally Posted by BlueWorld View Post
    well if your not gonna be on i don't really see i point in me addin >_<

    SCAR Code:
    procedure SearchBank(Item: string);  
    function OpenBankFast(Location: String): Boolean;
    function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;
    how do i use these procedure and funtions?
    SCAR Code:
    function OpenBankFast(Location: String): Boolean;
    OpenBankFast('VWB'); The location is one of the ones i posted above.

    SCAR Code:
    procedure SearchBank(Item: string);
    SearchBank('iron axe'); It searches the bank for such item.

    SCAR Code:
    function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;

    {Description: Withdraws an item from the bank by using "Ident" with tol[0]
                 as color tolerance, tol[1] as contour tolerance in case of bmp
                 masks, or the count of colors for TPA item finding.
                 Valid IdentTypes are all in FindItem.
                 Index: The Bank Index where the item is found, must be a variable.
                        Speeds up future withdraws.
                 Amount: Amount to withdraw from bank.
                 UpText: The UpText which the function checks for.}
    There used to be something meaningful here.

  15. #15
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    for
    SCAR Code:
    SearchBank('iron axe');
    what do i set the identifier as? not a DTM i know that much >.> i tried

    For
    SCAR Code:
    function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;
    it should work something like
    SCAR Code:
    WithdrawItemEX(idk,'item',idk,2;'iron hatchet';
    something like that?

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

    Default

    Quote Originally Posted by BlueWorld View Post
    for
    SCAR Code:
    SearchBank('iron axe');
    what do i set the identifier as? not a DTM i know that much >.> i tried

    For
    SCAR Code:
    function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;
    it should work something like
    SCAR Code:
    WithdrawItemEX(idk,'item',idk,2;'iron hatchet';
    something like that?
    I suggest you open rs and try the functions and see what they do
    There used to be something meaningful here.

  17. #17
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    that won't help if it won't even execute ......

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

    Default

    Quote Originally Posted by BlueWorld View Post
    that won't help if it won't even execute ......
    SCAR Code:
    program New;
    {.Include SRL/SRL.scar}

    begin
    SetupSRL;
    OpenBankFast('VEB');
    SearchItem('iron axe');
    CloseBank;
    end.

    EDIT: You should really read some beginner tutorials.
    Last edited by Frement; 05-01-2010 at 11:51 AM.
    There used to be something meaningful here.

  19. #19
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Yeah, there are a lot of guides that will answer all your questions.

    http://villavu.com/forum/forumdisplay.php?f=191

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
  •