Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit 4cf4e57

Browse files
ExplvExplv
authored andcommitted
Fixing GE selling when player has 0 of required item.
In this case the task will be skipped. Fixes #54 & #55
1 parent 16d99b7 commit 4cf4e57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

AIO/src/org/aio/activities/grand_exchange/GESellActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ public void onStart() {
3030
public void runActivity() throws InterruptedException {
3131
if (box != null) {
3232
return;
33-
} else if(!exchangeHelper.playerIsAtGE()){
33+
} else if (!exchangeHelper.playerIsAtGE()) {
3434
exchangeHelper.walkToGE();
35-
} else if(!checkedBank && getInventory().getAmount(geItem.getName()) < geItem.getQuantity()) {
35+
} else if (!checkedBank && getInventory().getAmount(geItem.getName()) < geItem.getQuantity()) {
3636
if (!getInventory().isEmpty()) {
3737
depositAllBanking.run();
3838
} else {
3939
itemReqBanking.run();
4040
if (itemReqBanking.hasFailed()) {
4141
setFailed();
42-
} else {
42+
} else if (getBank() != null && getBank().isOpen()) {
4343
checkedBank = true;
4444
}
4545
}

AIO/src/org/aio/script/AIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.util.List;
2626
import java.util.Optional;
2727

28-
@ScriptManifest(author = "Explv", name = "Explv's AIO v3.9", info = "AIO", version = 3.9, logo = "http://i.imgur.com/58Zz0fb.png")
28+
@ScriptManifest(author = "Explv", name = "Explv's AIO v4.0", info = "AIO", version = 4.0, logo = "http://i.imgur.com/58Zz0fb.png")
2929
public class AIO extends Script {
3030

3131
private Gui gui;

0 commit comments

Comments
 (0)