Thread: 525 Rs2Hd need Bank help!

Results 1 to 8 of 8
  1. #1 525 Rs2Hd need Bank help! 
    Registered Member lordje's Avatar
    Join Date
    Apr 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hello i need help i got batmanpk 525 source (with rs2hd) and if i open bank this happens (picture):



    plz help i want to finish my 525 server
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Do you use the sendInventory method?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    you should leech bank method from any working 525 bank.
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  4. #4  
    Registered Member lordje's Avatar
    Join Date
    Apr 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by pranavninja1 View Post
    you should leech bank method from any working 525 bank.
    yeah but how i know what i need to copy only the bank.java or need i to copy more.
    Reply With Quote  
     

  5. #5  
    Registered Member lordje's Avatar
    Join Date
    Apr 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Pur3r4ng3mag View Post
    Do you use the sendInventory method?
    package com.rs2hd.model;

    /**
    * Manages the player bank.
    * @author Graham
    *
    */
    public class Bank {

    public static final int SIZE = 800;

    private Container<Item> bank = new Container<Item>(SIZE);

    private transient Player player;

    public void setPlayer(Player player) {
    this.player = player;
    }

    public void openBank() {
    player.getActionSender().sendConfig2(563, 4194304);
    player.getActionSender().sendConfig2(1248, -2013265920);
    //player.getActionSender().sendBankOptions();
    refresh();
    player.getActionSender().displayInterface(762);
    player.getActionSender().sendInventoryInterface(76 3);
    }

    public void refresh() {
    player.getActionSender().sendItems(-1, 64207, 95, bank);
    player.getActionSender().sendItems(-1, 64209, 93, player.getInventory().getContainer());
    player.getActionSender().sendItems(149, 0, 93, player.getInventory().getContainer());
    }

    public Container<Item> getContainer() {
    return bank;
    }

    public int getFreeSlots() {
    return bank.getFreeSlots();
    }

    public void bankItem(int slot, int amount) {
    if(slot < 0 || slot > Inventory.SIZE || amount <= 0) {
    return;
    }
    Item item = player.getInventory().getContainer().get(slot);
    if(item == null) {
    return;
    }
    if(amount > player.getInventory().getContainer().getNumberOf(i tem)) {
    item = new Item(item.getId(), item.getAmount());
    } else {
    item = new Item(item.getId(), amount);
    }
    if(player.getInventory().getContainer().contains(i tem)) {
    if(bank.containsOne(item)) {
    for(int i = 0; i < SIZE; i++) {
    Item bankItem = bank.get(i);
    if(bankItem == null) {
    continue;
    }
    if(bankItem.getId() == item.getId()) {
    bank.set(i, new Item(item.getId(), bankItem.getAmount() + item.getAmount()));
    player.getInventory().getContainer().remove(item);
    break;
    }
    }
    } else {
    if(getFreeSlots() <= 0) {
    player.getActionSender().sendMessage("Not enough space in your bank.");
    } else {
    bank.add(item);
    player.getInventory().getContainer().remove(item);
    }
    }
    }
    refresh();
    }

    public void withdrawItem(int slot, int amount) {
    if(slot < 0 || slot > Bank.SIZE || amount <= 0) {
    return;
    }
    Item item = bank.get(slot);
    if(item == null) {
    return;
    }
    if(amount > item.getAmount()) {
    item = new Item(item.getId(), item.getAmount());
    } else {
    item = new Item(item.getId(), amount);
    }
    if(bank.contains(item)) {
    if(player.getInventory().getFreeSlots() <= 0) {
    player.getActionSender().sendMessage("Not enough space in your inventory.");
    } else {
    player.getInventory().getContainer().add(item);
    bank.remove(item);
    bank.shift();
    }
    }
    refresh();
    }

    }
    [/USER]

    that is my bank.java

    and i dont can find something else that got something with bank (only ::bank command that i made)
    Reply With Quote  
     

  6. #6  
    Donator

    Evan's Avatar
    Join Date
    Aug 2007
    Age
    28
    Posts
    1,028
    Thanks given
    1
    Thanks received
    3
    Rep Power
    134
    Lord, You obviously have no idea about the server you downloaded and 525 are Not the easiest to begin with.
    Gone...
    Reply With Quote  
     

  7. #7  
    Registered Member lordje's Avatar
    Join Date
    Apr 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Evan View Post
    Lord, You obviously have no idea about the server you downloaded and 525 are Not the easiest to begin with.
    i got everything the only thing i need now is a working bank

    if u help me i give u a :cookie:
    Reply With Quote  
     

  8. #8  
    Registered Member lordje's Avatar
    Join Date
    Apr 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Evan View Post
    Lord, You obviously have no idea about the server you downloaded and 525 are Not the easiest to begin with.
    and i dont just started i made a 317 and a 508 so i'm only a noob at coding in 525
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

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