Issue: TRSBankScreen.isOpen not working due to recent RS3 Bank Screen Update

  1. issueid=486 02-23-2018 12:39 PM
    SRL Junior Member
    TRSBankScreen.isOpen not working due to recent RS3 Bank Screen Update
    Any help would be appreciated.

    The bank screen layout was changed recently with an RS3 update. Broke some of the Bank Screen includes. I am not sure how to fix it but am assuming i would need to change something in the below includes:

    {*
    TRSBankScreen.__find
    ~~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function TRSBankScreen.__find(): boolean;

    Returns true if the bankScreen interface is detected and its bounds are set.
    Scripters should use bankScreen.isOpen() below.

    .. note::

    - by The Mayor
    - Last Updated: 18 March 2015 by The Mayor

    Example:

    .. code-block:: pascal

    if bankScreen.__find() then
    writeln('The bank screen is open, and the bounds are set!');
    *}
    {$IFNDEF CODEINSIGHT}
    function TRSBankScreen.__find(): boolean;
    var
    TPA: TPointArray;
    ATPA, ATPA2: T2DPointArray;
    i, w, h: integer;
    b: TBox;
    begin
    getClientDimensions(w, h);
    // Black box around "BANK OF RUNESCAPE"
    if findColors(TPA, 65536, 0, 0, w-1, 50) then
    begin
    ATPA := TPA.cluster(5);
    ATPA.sortBySize(true);

    for i := 0 to high(ATPA) do
    begin
    b := ATPA[i].getBounds();

    if (b.getWidth() = 479) and (b.getHeight() = 31) then
    begin
    b.offset(point(0, 554)); // Offset to buttons at bottom

    if findColors(TPA, 4578368, b) then // Green arrow colour
    begin
    ATPA2 := TPA.cluster(5);

    if length(ATPA2) = 6 then // 6 green arrows
    begin
    b.edit(-8, -562, 200, 7);
    self.setBounds(b);
    result := true;
    break();
    end;
    end;
    end;
    end;
    end;
    end;
Issue Details
Issue Number 486
Project SRL Bugs and Suggestions
Status Resolved
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




  1. 04-25-2018 09:55 AM
    SRL Developer
    fixed
+ Reply