By registering with us, you'll be able to discuss, share and private message with other members of our community.
Sign up now!Oh you meant that, rofl. It's just runescape as the way it is.
-Does it open bank? :
-Does it deposit/withdraw?:
-Does it close bank?:
private boolean inventoryItem(){
if(Inventory.contains(25547)){
return true;
}
return false;
}
private boolean bank(){
if(Bank.open()){
if(Bank.depositAllExcept(1734)){
if(Bank.withdraw("Spider silk", 27)){
if(Bank.close()) {
return true;
}
}
}
}
@Override
public void onLoop() {
if(!inventoryItem()){
bank();
}
}
Code:private boolean inventoryItem(){ if(Inventory.contains(25547)){ return true; } return false; } private boolean bank(){ if(Bank.open()){ if(Bank.depositAllExcept(1734)){ if(Bank.withdraw("Spider silk", 27)){ if(Bank.close()) { return true; } } } } @Override public void onLoop() { if(!inventoryItem()){ bank(); } }
Try to edit for your needs
//Shorter.
private boolean inventoryItem(){
return Inventory.contains(25547);
}
//This is just firing actions without checking them? I suggest writing a method that checks whether the bank is open, ..... u get the point.
private boolean bank(){
if(Bank.open()){
if(Bank.depositAllExcept(1734)){
if(Bank.withdraw("Spider silk", 27)){
if(Bank.close()) {
return true;
}
}
}
}
@Override
public void onLoop() {
if(!inventoryItem()){
bank();
}
}
What if u set to legacy mode ?
If this is DarkScape it is potentially fixed in the latest update.
Please confirm.
We use essential cookies to make this site work, and optional cookies to enhance your experience.