Thread: bank all

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 bank all 
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    how do i add the bank all button
    i got the sprite
    need the methods in rsinterface.java

    for project insanity (317)
    my vouches are on my profile.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Nov 2012
    Posts
    790
    Thanks given
    47
    Thanks received
    42
    Rep Power
    17
    Need this aswell.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Mar 2011
    Posts
    524
    Thanks given
    87
    Thanks received
    49
    Rep Power
    97
    Could you please post your configureBank void?
    sweet
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    the problem is i dont have configurebank void
    my vouches are on my profile.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    anyone?
    my vouches are on my profile.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    cmn r-s give me some help...
    my vouches are on my profile.
    Reply With Quote  
     

  7. #7  
    V.C.C.

    Join Date
    Nov 2010
    Posts
    2,234
    Thanks given
    381
    Thanks received
    673
    Discord
    View profile
    Rep Power
    370
    Under 'aClass44 = streamLoader;' add 'Bank();'

    Considering you know where to put the sprites and what to name them, here are the methods. Let me know if you need any other.
    Code:
    	public static void Bank(){
            RSInterface Interface = addTabInterface(5292);
            setChildren(19, Interface);
            addSprite(5293, 0, "Bank/BANK");
            setBounds(5293, 13, 13, 0, Interface);
            addHover(5384, 3, 0, 5380, 1, "Bank/BANK", 17, 17, "Close Window");
            addHovered(5380, 2, "Bank/BANK", 17, 17, 5379);
            setBounds(5384, 476, 16, 3, Interface);
            setBounds(5380, 476, 16, 4, Interface);
            addHover(5294, 4, 0, 5295, 3, "Bank/BANK", 114, 25, "Set A Bank PIN");
            addHovered(5295, 4, "Bank/BANK", 114, 25, 5296);
            setBounds(5294, 110, 285, 5, Interface);
            setBounds(5295, 110, 285, 6, Interface);
            addBankHover(21000, 4, 21001, 5, 8, "Bank/BANK", 35, 25, 304, 1, "Swap Withdraw Mode", 21002, 7, 6, "Bank/BANK", 21003, "Switch to insert items \nmode", "Switch to swap items \nmode.", 12, 20);
            setBounds(21000, 25, 285, 7, Interface);
            setBounds(21001, 10, 225, 8, Interface);
            addBankHover(21004, 4, 21005, 13, 15, "Bank/BANK", 35, 25, 0, 1, "Search", 21006, 14, 16, "Bank/BANK", 21007, "Click here to search your \nbank", "Click here to search your \nbank", 12, 20);
            setBounds(21004, 65, 285, 9, Interface);
            setBounds(21005, 50, 225, 10, Interface);
            addBankHover(21008, 4, 21009, 9, 11, "Bank/BANK", 35, 25, 115, 1, "Search", 21010, 10, 12, "Bank/BANK", 21011, "Switch to note withdrawal \nmode", "Switch to item withdrawal \nmode", 12, 20);
            setBounds(21008, 240, 285, 11, Interface);
            setBounds(21009, 225, 225, 12, Interface);
            addBankHover1(21012, 5, 21013, 17, "Bank/BANK", 35, 25, "Deposit carried tems", 21014, 18, "Bank/BANK", 21015, "Empty your backpack into\nyour bank", 0, 20);
            setBounds(21012, 375, 285, 13, Interface);
            setBounds(21013, 360, 225, 14, Interface);
            addBankHover1(21016, 5, 21017, 19, "Bank/BANK", 35, 25, "Deposit worn items", 21018, 20, "Bank/BANK", 21019, "Empty the items your are\nwearing into your bank", 0, 20);
            setBounds(21016, 415, 285, 15, Interface);
            setBounds(21017, 400, 225, 16, Interface);
            addBankHover1(21020, 5, 21021, 21, "Bank/BANK", 35, 25, "Deposit beast of burden inventory.", 21022, 22, "Bank/BANK", 21023, "Empty your BoB's inventory\ninto your bank", 0, 20);
            setBounds(21020, 455, 285, 17, Interface);
            setBounds(21021, 440, 225, 18, Interface);
            setBounds(5383, 170, 15, 1, Interface);
            setBounds(5385, -4, 74, 2, Interface);
            Interface = interfaceCache[5385];
            Interface.height = 206;
            Interface.width = 480;
            Interface = interfaceCache[5382];
            Interface.width = 10;
            Interface.invSpritePadX = 12;
            Interface.height = 35;
        }
    	public static void addBankHover(int interfaceID, int actionType, int hoverid, int spriteId, int spriteId2, String NAME, int Width, int Height, int configFrame, int configId, String Tooltip,int hoverId2, int hoverSpriteId,int hoverSpriteId2, String hoverSpriteName, int hoverId3, String hoverDisabledText, String hoverEnabledText, int X, int Y){
        RSInterface hover = addTabInterface(interfaceID);
        hover.id = interfaceID;
        hover.parentID = interfaceID;
        hover.type = 5;
        hover.atActionType = actionType;
        hover.contentType = 0;
        hover.aByte254 = 0;
        hover.mOverInterToTrigger = hoverid;
        hover.sprite1 = imageLoader(spriteId, NAME);
        hover.sprite2 = imageLoader(spriteId2, NAME);
        hover.width = Width;
        hover.tooltip = Tooltip;
        hover.height = Height;
        hover.anIntArray245 = new int[1];
        hover.anIntArray212 = new int[1];
        hover.anIntArray245[0] = 1;
        hover.anIntArray212[0] = configId;
        hover.valueIndexArray = new int[1][3];
        hover.valueIndexArray[0][0] = 5;
        hover.valueIndexArray[0][1] = configFrame;
        hover.valueIndexArray[0][2] = 0;
        hover = addTabInterface(hoverid);
        hover.parentID = hoverid;
        hover.id = hoverid;
        hover.type = 0;
        hover.atActionType = 0;
        hover.width =550;
        hover.height = 334;
        hover.isMouseoverTriggered = true;
        hover.mOverInterToTrigger = -1;
        addSprite(hoverId2, hoverSpriteId, hoverSpriteId2, hoverSpriteName, configId, configFrame);
        addHoverBox(hoverId3, interfaceID,hoverDisabledText, hoverEnabledText, configId, configFrame);
        setChildren(2, hover);
        setBounds(hoverId2, 15, 60, 0, hover);
        setBounds(hoverId3, X, Y, 1, hover);
    }
    public static void addBankHover1(int interfaceID, int actionType, int hoverid, int spriteId, String NAME,  int Width, int Height, String Tooltip, int hoverId2, int hoverSpriteId, String hoverSpriteName, int hoverId3, String hoverDisabledText, int X, int Y){
        RSInterface hover = addTabInterface(interfaceID);
        hover.id = interfaceID;
        hover.parentID = interfaceID;
        hover.type = 5;
        hover.atActionType = actionType;
        hover.contentType = 0;
        hover.aByte254 = 0;
        hover.mOverInterToTrigger = hoverid;
        hover.sprite1 = imageLoader(spriteId, NAME);
        hover.width = Width;
        hover.tooltip = Tooltip;
        hover.height = Height;
        hover = addTabInterface(hoverid);
        hover.parentID = hoverid;
        hover.id = hoverid;
        hover.type = 0;
        hover.atActionType = 0;
        hover.width =550;
        hover.height = 334;
        hover.isMouseoverTriggered = true;
        hover.mOverInterToTrigger = -1;
        addSprite(hoverId2, hoverSpriteId, hoverSpriteId, hoverSpriteName,0,0);
        addHoverBox(hoverId3, interfaceID,hoverDisabledText, hoverDisabledText, 0, 0);
        setChildren(2, hover);
        setBounds(hoverId2, 15, 60, 0, hover);
        setBounds(hoverId3, X, Y, 1, hover);
    }
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    well i am using another one
    from a guide
    but i get this error

    RSInterface.java:1959: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(23003, "item amount", TDA, 0, 0xFFB000);
    ^
    RSInterface.java:1960: cannot find symbol
    symbol : method addHover(int,int,int,int,int,java.lang.String,int, int,java.lang
    .String)
    location: class RSInterface
    addHover(23004, 3, 0, 23005, 3, "Interfaces/Equipment/CHAR", 21,
    21, "Close");
    ^
    RSInterface.java:1961: cannot find symbol
    symbol : method addHovered(int,int,java.lang.String,int,int,int)
    location: class RSInterface
    addHovered(23005, 2, "Interfaces/Equipment/CHAR", 21, 21, 23006)
    ;
    ^
    RSInterface.java:1962: cannot find symbol
    symbol : method addHover(int,int,int,int,int,java.lang.String,int, int,java.lang
    .String)
    location: class RSInterface
    addHover(23007, 4, 0, 23008, 5, "Interfaces/Bank/BANK", 35, 25,
    "Deposit carried items");
    ^
    RSInterface.java:1963: cannot find symbol
    symbol : method addHovered(int,int,java.lang.String,int,int,int)
    location: class RSInterface
    addHovered(23008, 6, "Interfaces/Bank/BANK", 35, 25, 23009);
    ^
    RSInterface.java:1964: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(19999, "Combat Level: ", TDA, 0, 0xFF981F);
    ^
    RSInterface.java:1973: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(5384, "", TDA, 0, 0xFFB000);//cheap hax for 'close windo
    w'
    ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    7 errors
    Druk op een toets om door te gaan. . .
    my vouches are on my profile.
    Reply With Quote  
     

  9. #9  
    V.C.C.

    Join Date
    Nov 2010
    Posts
    2,234
    Thanks given
    381
    Thanks received
    673
    Discord
    View profile
    Rep Power
    370
    Code:
    public static void addHover(int i, int aT, int cT, int hoverid,int sId, String NAME, int W, int H, String tip){
        RSInterface hover = addTabInterface(i);
        hover.id = i;
        hover.parentID = i;
        hover.type = 5;
        hover.atActionType = aT;
        hover.contentType = cT;
        hover.mOverInterToTrigger = hoverid;
        hover.sprite1 = imageLoader(sId, NAME);
        hover.sprite2 = imageLoader(sId, NAME);
        hover.width = W;
        hover.height = H;
        hover.tooltip = tip;
    }
    public static void addHovered(int i, int j, String imageName, int w, int h, int IMAGEID) {
        RSInterface hover = addTabInterface(i);
        hover.parentID = i;
        hover.id = i;
        hover.type = 0;
        hover.atActionType = 0;
        hover.width = w;
        hover.height = h;
        hover.isMouseoverTriggered = true;
        hover.mOverInterToTrigger = -1;
        addSprite(IMAGEID, j, imageName);
        setChildren(1, hover);
        setBounds(IMAGEID, 0, 0, 0, hover);
    }
    public static void addSprite(int id, int spriteId, String spriteName) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;
    		tab.parentID = id;
    		tab.type = 5;
    		tab.atActionType = 0;
    		tab.contentType = 0;
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = 52;
    		tab.sprite1 = imageLoader(spriteId, spriteName);
    		tab.sprite2 = imageLoader(spriteId, spriteName); 
    		tab.width = 512;
    		tab.height = 334;
    	}
    public String hoverText;
    	public static void addHoverBox(int id, String text) {
            RSInterface rsi = interfaceCache[id];//addTabInterface(id);
            rsi.id = id;
            rsi.parentID = id;
    		rsi.isMouseoverTriggered = true;
            rsi.type = 8;
            rsi.hoverText = text;
        }
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2012
    Posts
    410
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    RSInterface.java:1959: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(23003, "item amount", TDA, 0, 0xFFB000);
    ^
    RSInterface.java:1964: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(19999, "Combat Level: ", TDA, 0, 0xFF981F);
    ^
    RSInterface.java:1973: cannot find symbol
    symbol : method addText(int,java.lang.String,TextDrawingArea[],int,int)
    location: class RSInterface
    addText(5384, "", TDA, 0, 0xFFB000);//cheap hax for 'close windo
    w'
    ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Druk op een toets om door te gaan. . .
    my vouches are on my profile.
    Reply With Quote  
     

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)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •