Skip to content

Commit

Permalink
Merge pull request #608 from See1Duck/development
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
chsami authored Jan 7, 2025
2 parents d12f67d + a51b847 commit 883fc8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@ConfigGroup(MahoganyHomesConfig.GROUP_NAME)
@ConfigInformation("<h2>S-1D Home Raider</h2>\n" +
"<h3>BETA PREVIEW 4</h3>\n" +
"<h3>BETA PREVIEW 5</h3>\n" +
"<p>1. <strong>Start anywhere:</strong> Just make sure to have teleports, saw and a hammer.</p>\n" +
"<p>2. <strong>Contracts:</strong> Select your desired contract <em>BEFORE</em> starting.</p>\n" +
"<p>3. <strong>Supplies:</strong> Stock up on the correct planks and Steel bars in the bank, the bot will handle resupplying on its own</p>\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Slf4j
public class MahoganyHomesScript extends Script {

public static String version = "0.0.4";
public static String version = "0.0.5";
@Inject
MahoganyHomesPlugin plugin;

Expand Down Expand Up @@ -261,7 +261,7 @@ private void finish() {
&& plugin.getCurrentHome().isInside(Rs2Player.getWorldLocation())
&& Hotspot.isEverythingFixed()) {
if(plugin.getConfig().usePlankSack() && planksInPlankSack() > 0){
if (Rs2Inventory.contains(ItemID.PLANK_SACK)) {
if (Rs2Inventory.contains(ItemID.PLANK_SACK) && Rs2Inventory.contains(ItemID.STEEL_BAR)) {
Rs2Item plankSack = Rs2Inventory.get(ItemID.PLANK_SACK);
if (plankSack != null) {
Rs2Inventory.interact(plankSack, "Empty");
Expand Down Expand Up @@ -351,7 +351,8 @@ && isMissingItems()) {
if (Rs2Bank.walkToBankAndUseBank(Rs2Bank.getNearestBank(currentHome.getLocation()))) {
sleep(600, 1200);
if(plugin.getConfig().usePlankSack()){

if(Rs2Inventory.isFull() && !Rs2Inventory.contains(ItemID.STEEL_BAR))
Rs2Bank.depositAll(plugin.getConfig().currentTier().getPlankSelection().getPlankId());
Rs2Bank.withdrawX(ItemID.STEEL_BAR, 4-steelBarsInInventory());
sleep(600, 1200);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected void startUp() throws AWTException {
}
if (config.autoStamina()) {
Microbot.useStaminaPotsIfNeeded = true;
Microbot.runEnergyThreshold = config.staminaThreshold() * 1000;
Microbot.runEnergyThreshold = config.staminaThreshold() * 100;
}
autoRunScript.run(config);
specialAttackScript.run(config);
Expand Down

0 comments on commit 883fc8f

Please sign in to comment.