-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from See1Duck/development
New Giant Mole Plugin & Various fixes and improvements
- Loading branch information
Showing
31 changed files
with
1,533 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
185 changes: 185 additions & 0 deletions
185
...src/main/java/net/runelite/client/plugins/microbot/bossing/giantmole/GiantMoleConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
package net.runelite.client.plugins.microbot.bossing.giantmole; | ||
|
||
import net.runelite.client.config.*; | ||
import net.runelite.client.plugins.microbot.inventorysetups.InventorySetup; | ||
import net.runelite.client.plugins.microbot.playerassist.enums.DefaultLooterStyle; | ||
@ConfigInformation("<h2>S-1D Giant Mole</h2>\n" + | ||
"<h3>BETA PREVIEW 1</h3>\n" + | ||
"<p>1. <strong>Select your Giant Mole inventory setup</strong>.</p>\n" + | ||
"<p>2. <strong>Include a teleport to Falador</strong> for banking.</p>\n" + | ||
"<p>3. <strong>Start in Falador</strong> with either an empty inventory or your complete setup.</p>\n" + | ||
"<p>4. <strong>Falador hard diary</strong> is required for the mole locator.</p>\n" + | ||
"<p>5. <strong>Spec Weapon</strong> use QoL to select spec weapon.</p>\n" + | ||
"<p></p>\n" + | ||
"<p><strong>FEEDBACK:</strong> If you encounter any bugs or need assistance, please message us on Discord.</p>\n" | ||
) | ||
@ConfigGroup("giantmole") | ||
public interface GiantMoleConfig extends Config { | ||
|
||
@ConfigSection( | ||
name = "lootSection", | ||
description = "Looting settings", | ||
position = 1 | ||
) | ||
String lootSection = "looting"; | ||
|
||
@ConfigItem( | ||
keyName = "useQuickPrayer", | ||
name = "Use quick prayer", | ||
description = "Use quick prayer", | ||
position = 0 | ||
) | ||
default boolean useQuickPrayer() { | ||
return true; | ||
} | ||
|
||
// config item for inventory setup | ||
@ConfigItem( | ||
keyName = "inventorySetup", | ||
name = "Inventory Setup", | ||
description = "Inventory Setup", | ||
position = 1 | ||
) | ||
default InventorySetup inventorySetup() { | ||
return null; | ||
} | ||
|
||
@ConfigItem( | ||
keyName = "Loot items", | ||
name = "Auto loot items", | ||
description = "Enable/disable loot items", | ||
position = 0, | ||
section = lootSection | ||
) | ||
default boolean toggleLootItems() { | ||
return true; | ||
} | ||
|
||
@ConfigItem( | ||
name = "Loot Style", | ||
keyName = "lootStyle", | ||
position = 1, | ||
description = "Choose Looting Style", | ||
section = lootSection | ||
) | ||
default DefaultLooterStyle looterStyle() { | ||
return DefaultLooterStyle.MIXED; | ||
} | ||
|
||
@ConfigItem( | ||
name = "List of Items", | ||
keyName = "listOfItemsToLoot", | ||
position = 2, | ||
description = "List of items to loot", | ||
section = lootSection | ||
) | ||
default String listOfItemsToLoot() { | ||
return "bones,ashes"; | ||
} | ||
|
||
@ConfigItem( | ||
keyName = "Min Price of items to loot", | ||
name = "Min. Price of items to loot", | ||
description = "Min. Price of items to loot", | ||
position = 10, | ||
section = lootSection | ||
) | ||
default int minPriceOfItemsToLoot() { | ||
return 5000; | ||
} | ||
|
||
@ConfigItem( | ||
keyName = "Max Price of items to loot", | ||
name = "Max. Price of items to loot", | ||
description = "Max. Price of items to loot default is set to 10M", | ||
position = 11, | ||
section = lootSection | ||
) | ||
default int maxPriceOfItemsToLoot() { | ||
return 10000000; | ||
} | ||
// toggle scatter | ||
|
||
@ConfigItem( | ||
keyName = "Loot arrows", | ||
name = "Auto loot arrows", | ||
description = "Enable/disable loot arrows", | ||
position = 20, | ||
section = lootSection | ||
) | ||
default boolean toggleLootArrows() { | ||
return false; | ||
} | ||
|
||
// toggle loot runes | ||
@ConfigItem( | ||
keyName = "Loot runes", | ||
name = "Loot runes", | ||
description = "Enable/disable loot runes", | ||
position = 30, | ||
section = lootSection | ||
) | ||
default boolean toggleLootRunes() { | ||
return false; | ||
} | ||
|
||
// toggle loot coins | ||
@ConfigItem( | ||
keyName = "Loot coins", | ||
name = "Loot coins", | ||
description = "Enable/disable loot coins", | ||
position = 40, | ||
section = lootSection | ||
) | ||
default boolean toggleLootCoins() { | ||
return false; | ||
} | ||
|
||
// toggle loot untreadables | ||
@ConfigItem( | ||
keyName = "Loot untradables", | ||
name = "Loot untradables", | ||
description = "Enable/disable loot untradables", | ||
position = 50, | ||
section = lootSection | ||
) | ||
default boolean toggleLootUntradables() { | ||
return false; | ||
} | ||
|
||
@ConfigItem( | ||
keyName = "Bury Bones", | ||
name = "Bury Bones", | ||
description = "Picks up and Bury Bones", | ||
position = 96, | ||
section = lootSection | ||
) | ||
default boolean toggleBuryBones() { | ||
return false; | ||
} | ||
|
||
// only loot my items | ||
@ConfigItem( | ||
keyName = "onlyLootMyItems", | ||
name = "Only Loot My Items", | ||
description = "Only loot items that are dropped for/by you", | ||
position = 99, | ||
section = lootSection | ||
) | ||
default boolean toggleOnlyLootMyItems() { | ||
return false; | ||
} | ||
|
||
//Force loot regardless if we are in combat or not | ||
@ConfigItem( | ||
keyName = "forceLoot", | ||
name = "Force Loot", | ||
description = "Force loot regardless if we are in combat or not", | ||
position = 100, | ||
section = lootSection | ||
) | ||
default boolean toggleForceLoot() { | ||
return false; | ||
} | ||
|
||
} |
62 changes: 62 additions & 0 deletions
62
...rc/main/java/net/runelite/client/plugins/microbot/bossing/giantmole/GiantMoleOverlay.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package net.runelite.client.plugins.microbot.bossing.giantmole; | ||
|
||
import net.runelite.client.ui.overlay.OverlayPanel; | ||
import net.runelite.client.ui.overlay.OverlayPosition; | ||
import net.runelite.client.ui.overlay.components.LineComponent; | ||
import net.runelite.client.ui.overlay.components.TitleComponent; | ||
|
||
import javax.inject.Inject; | ||
import java.awt.*; | ||
|
||
public class GiantMoleOverlay extends OverlayPanel { | ||
|
||
@Inject | ||
GiantMoleOverlay(GiantMolePlugin plugin) | ||
{ | ||
super(plugin); | ||
setPosition(OverlayPosition.TOP_LEFT); | ||
setNaughty(); | ||
} | ||
@Override | ||
public Dimension render(Graphics2D graphics) { | ||
try { | ||
panelComponent.setPreferredSize(new Dimension(350, 400)); | ||
panelComponent.getChildren().add(TitleComponent.builder() | ||
.text("\uD83E\uDD86 Giant Mole \uD83E\uDD86") | ||
.color(Color.ORANGE) | ||
.build()); | ||
|
||
panelComponent.getChildren().add(LineComponent.builder().build()); | ||
|
||
panelComponent.getChildren().add(LineComponent.builder() | ||
.left("Giant Mole Location:") | ||
.right(GiantMoleScript.getMoleLocation() == null ? GiantMoleScript.isMoleDead() ? "Unknown" : "Close" : GiantMoleScript.getMoleLocation().toString()) | ||
.build()); | ||
|
||
panelComponent.getChildren().add(LineComponent.builder().build()); | ||
|
||
// panelComponent.getChildren().add(LineComponent.builder() | ||
// .left("Walker target:") | ||
// .right(ShortestPathPlugin.getPathfinder() == null ? "Unknown" : ShortestPathPlugin.getPathfinder().getTarget().toString()) | ||
// .build()); | ||
panelComponent.getChildren().add(LineComponent.builder() | ||
.left("State:") | ||
.right(GiantMoleScript.state.toString()) | ||
.build()); | ||
panelComponent.getChildren().add(LineComponent.builder() | ||
.left("Is dead:") | ||
.right(String.valueOf(GiantMoleScript.isMoleDead() | ||
)) | ||
.build()); | ||
panelComponent.getChildren().add(LineComponent.builder() | ||
.left("Version:") | ||
.right(GiantMoleScript.VERSION) | ||
.build()); | ||
|
||
|
||
} catch(Exception ex) { | ||
System.out.println(ex.getMessage()); | ||
} | ||
return super.render(graphics); | ||
} | ||
} |
Oops, something went wrong.