diff --git a/plugins.json b/plugins.json index 947e1f77..edafb778 100644 --- a/plugins.json +++ b/plugins.json @@ -1 +1 @@ -[{"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"BotUtils","description":"Illumine - Utils required for plugins to function with added automation","id":"botutils-plugin","releases":[{"date":"2020-09-23","sha512sum":"1DFEE1994583354BE3D77DE906EBCBE6280DFBDB87A38A60197E329DA99BF6B29B36181C6F1BED7186FBECB40599B778CB7BD44667CF5F6158071B2F55F47F4F","version":"4.4.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/botutils-4.4.3.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Combination Runecrafter Plugin","description":"Illumine - Combination Runecrafting plugin","id":"combinationrunecrafterplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"14D98D10D291E56C1A2060FD709182D5B398213E97B4EB37654C5BB25093CE651B2847DC46B450DBAD247C0CAEB43351329001BF9959AE32553D75DCF7BF9885","version":"1.8.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/combinationrunecrafter-1.8.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Magic Caster","description":"Illumine automated magic caster","id":"magiccaster-plugin","releases":[{"date":"2020-09-23","sha512sum":"D68D6DB33F8A1C0D048B5809F54E2F68FD671BB7552D5E2842F7B60773F10F990A2C6DAF304C19D2F8ED058FB1D567ABC9E2FEA01020B2AE6A449DAE908A0225","version":"2.8.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/magiccaster-2.8.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Menu Debugger Plugin","description":"Illumine - Menu Debugger plugin","id":"menudebuggerplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"7EA2187DE376A21860077B04E77DD3C45FA793AC490705D136A20EA94BC2995C9DF8D142E03D61275C20347F199088C46F67FEDBB71EF167793E512DC08032A8","version":"0.0.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/menudebugger-0.0.3.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Powerfighter Plugin","description":"Illumine - Powerfighter plugin","id":"powerfighterplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"B88C7481BB6497A67349E32A9B4263E294F5DFED3533873399CD48FE4BD8A4B611CAE95A2746D1B7FEEB7AD67CBB1490AC6F726C5921D77DE1E60B408C384EAD","version":"1.9.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerfighter-1.9.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Power Skiller","description":"Illumine auto power skiller plugin","id":"powerskiller-plugin","releases":[{"date":"2020-09-23","sha512sum":"BED1A8AEDB45FC1EB6418F89AEB2D4D408FDFA24E47F6455C16587FB6593831CB0160433F69B308117462DC756DDB7AEBCF6EBA5041C9683704C6670A79D8B81","version":"4.6.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerskiller-4.6.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Quick Eater","description":"Illumine - auto eat food below configured HP","id":"quickeater-plugin","releases":[{"date":"2020-09-23","sha512sum":"4381155BE61D606412234E4158AC00F82416C7395AEA0C97C356960FAB3D544346D94DC08FD8C66EAAD66FCCA9D89D1C8E210D3F3DBFA5978CAA50E446FF049E","version":"2.9.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/quickeater-2.9.3.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Random Handler","description":"illumine - Dismiss random events and handle genie","id":"randomhandler-plugin","releases":[{"date":"2020-09-23","sha512sum":"3CCC170D39E12D832238DC466AE5CBF5FF97D9F2ACA5F6B405C614A9BD4C48C4E3A9C2AB8FD2364295C40705AD60E4BDA47CCCB9AE363EB00C6D889CEABA47A2","version":"1.0.2","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/randomhandler-1.0.2.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Rooftop Agility","description":"Illumine automated rooftop agility plugin","id":"rooftopagility-plugin","releases":[{"date":"2020-09-23","sha512sum":"EDA68BD23FCF50AE0E430499E7200B1370A724FC6B2FC224AE24B6019667AFCD9BBB64C8EB99F54388374F9AC9C1D474FEB8E90054E5F37747E964220828FFA4","version":"3.8.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/rooftopagility-3.8.1.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"World Walker Plugin","description":"Illumine - World Walker plugin","id":"worldwalkerplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"C453F2A99A8AE2DB7BB51179BCA04BF66DCB1C3FEE3A63D6091C238FE7B552DE8B3DB66495A698DD74AB70940C6E71BD5F2F338A95FAD874CB2D04314C7753C8","version":"1.0.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/worldwalker-1.0.3.jar?raw=true","requires":"0.0.1"}]}] +[{"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"BotUtils","description":"Illumine - Utils required for plugins to function with added automation","id":"botutils-plugin","releases":[{"date":"2020-09-23","sha512sum":"1DFEE1994583354BE3D77DE906EBCBE6280DFBDB87A38A60197E329DA99BF6B29B36181C6F1BED7186FBECB40599B778CB7BD44667CF5F6158071B2F55F47F4F","version":"4.4.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/botutils-4.4.3.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Combination Runecrafter Plugin","description":"Illumine - Combination Runecrafting plugin","id":"combinationrunecrafterplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"14D98D10D291E56C1A2060FD709182D5B398213E97B4EB37654C5BB25093CE651B2847DC46B450DBAD247C0CAEB43351329001BF9959AE32553D75DCF7BF9885","version":"1.8.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/combinationrunecrafter-1.8.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Magic Caster","description":"Illumine automated magic caster","id":"magiccaster-plugin","releases":[{"date":"2020-09-23","sha512sum":"D68D6DB33F8A1C0D048B5809F54E2F68FD671BB7552D5E2842F7B60773F10F990A2C6DAF304C19D2F8ED058FB1D567ABC9E2FEA01020B2AE6A449DAE908A0225","version":"2.8.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/magiccaster-2.8.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Menu Debugger Plugin","description":"Illumine - Menu Debugger plugin","id":"menudebuggerplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"7EA2187DE376A21860077B04E77DD3C45FA793AC490705D136A20EA94BC2995C9DF8D142E03D61275C20347F199088C46F67FEDBB71EF167793E512DC08032A8","version":"0.0.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/menudebugger-0.0.3.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Powerfighter Plugin","description":"Illumine - Powerfighter plugin","id":"powerfighterplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"B88C7481BB6497A67349E32A9B4263E294F5DFED3533873399CD48FE4BD8A4B611CAE95A2746D1B7FEEB7AD67CBB1490AC6F726C5921D77DE1E60B408C384EAD","version":"1.9.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerfighter-1.9.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Power Skiller","description":"Illumine auto power skiller plugin","id":"powerskiller-plugin","releases":[{"date":"2020-09-23","sha512sum":"BED1A8AEDB45FC1EB6418F89AEB2D4D408FDFA24E47F6455C16587FB6593831CB0160433F69B308117462DC756DDB7AEBCF6EBA5041C9683704C6670A79D8B81","version":"4.6.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerskiller-4.6.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Quick Eater","description":"Illumine - auto eat food below configured HP and consume potions","id":"quickeater-plugin","releases":[{"date":"2020-09-23","sha512sum":"46B980AF572615694B478668DC765C4340A95F4B54C1D4B579F803AA05644E1E44CAEA83EB8AB60A4715DE3A3863D876F69E4AA71A1D36F61F48CCF8499CA82F","version":"3.0.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/quickeater-3.0.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Random Handler","description":"illumine - Dismiss random events and handle genie","id":"randomhandler-plugin","releases":[{"date":"2020-09-23","sha512sum":"3CCC170D39E12D832238DC466AE5CBF5FF97D9F2ACA5F6B405C614A9BD4C48C4E3A9C2AB8FD2364295C40705AD60E4BDA47CCCB9AE363EB00C6D889CEABA47A2","version":"1.0.2","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/randomhandler-1.0.2.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Rooftop Agility","description":"Illumine automated rooftop agility plugin","id":"rooftopagility-plugin","releases":[{"date":"2020-09-23","sha512sum":"EDA68BD23FCF50AE0E430499E7200B1370A724FC6B2FC224AE24B6019667AFCD9BBB64C8EB99F54388374F9AC9C1D474FEB8E90054E5F37747E964220828FFA4","version":"3.8.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/rooftopagility-3.8.1.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"World Walker Plugin","description":"Illumine - World Walker plugin","id":"worldwalkerplugin-plugin","releases":[{"date":"2020-09-23","sha512sum":"C453F2A99A8AE2DB7BB51179BCA04BF66DCB1C3FEE3A63D6091C238FE7B552DE8B3DB66495A698DD74AB70940C6E71BD5F2F338A95FAD874CB2D04314C7753C8","version":"1.0.3","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/worldwalker-1.0.3.jar?raw=true","requires":"0.0.1"}]}] diff --git a/quickeater/quickeater.gradle.kts b/quickeater/quickeater.gradle.kts index b6e05ffe..68d9e6a9 100644 --- a/quickeater/quickeater.gradle.kts +++ b/quickeater/quickeater.gradle.kts @@ -23,10 +23,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -version = "2.9.3" +version = "3.0.0" project.extra["PluginName"] = "Quick Eater" -project.extra["PluginDescription"] = "Illumine - auto eat food below configured HP" +project.extra["PluginDescription"] = "Illumine - auto eat food below configured HP and consume potions" dependencies { compileOnly(project(":botutils")) diff --git a/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterConfiguration.java b/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterConfiguration.java index 01e28387..95c7002d 100644 --- a/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterConfiguration.java +++ b/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterConfiguration.java @@ -233,6 +233,14 @@ public interface QuickEaterConfiguration extends Config unhide = "drinkStamina" ) default int randEnergy() { return 20; } + + @ConfigItem( + keyName = "drinkAntiFire", + name = "Drink Anti-Fire Potions", + description = "Enable to drink Anti-Fire when burnt", + position = 2 + ) + default boolean drinkAntiFire() { return true; } @ConfigItem( keyName = "keepPNeckEquipped", diff --git a/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterPlugin.java b/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterPlugin.java index 73746b89..4dd067b4 100644 --- a/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterPlugin.java +++ b/quickeater/src/main/java/net/runelite/client/plugins/quickeater/QuickEaterPlugin.java @@ -37,6 +37,7 @@ import net.runelite.api.MenuOpcode; import net.runelite.api.Player; import net.runelite.api.Skill; import net.runelite.api.VarPlayer; +import net.runelite.api.events.ChatMessage; import net.runelite.api.events.GameStateChanged; import net.runelite.api.events.GameTick; import net.runelite.api.events.HitsplatApplied; @@ -113,6 +114,10 @@ public class QuickEaterPlugin extends Plugin ItemID.BATTLEMAGE_POTION1, ItemID.BATTLEMAGE_POTION2, ItemID.BATTLEMAGE_POTION3, ItemID.BATTLEMAGE_POTION4, ItemID.DIVINE_MAGIC_POTION1, ItemID.DIVINE_MAGIC_POTION2, ItemID.DIVINE_MAGIC_POTION3, ItemID.DIVINE_MAGIC_POTION4, ItemID.DIVINE_BATTLEMAGE_POTION1, ItemID.DIVINE_BATTLEMAGE_POTION2, ItemID.DIVINE_BATTLEMAGE_POTION3, ItemID.DIVINE_BATTLEMAGE_POTION4); + private final Set ANTI_FIRE_SET = Set.of(ItemID.ANTIFIRE_POTION1, ItemID.ANTIFIRE_POTION2, ItemID.ANTIFIRE_POTION3, ItemID.ANTIFIRE_POTION4, ItemID.SUPER_ANTIFIRE_POTION1, ItemID.SUPER_ANTIFIRE_POTION2, ItemID.SUPER_ANTIFIRE_POTION3, ItemID.SUPER_ANTIFIRE_POTION4, + ItemID.EXTENDED_ANTIFIRE1, ItemID.EXTENDED_ANTIFIRE2, ItemID.EXTENDED_ANTIFIRE3, ItemID.EXTENDED_ANTIFIRE4, ItemID.EXTENDED_SUPER_ANTIFIRE1, ItemID.EXTENDED_SUPER_ANTIFIRE2,ItemID.EXTENDED_SUPER_ANTIFIRE3,ItemID.EXTENDED_SUPER_ANTIFIRE4); + + private final String BURN_MESSAGE = ("You're horribly burnt by the dragon fire!"); private int timeout; private int drinkTimeout; @@ -238,6 +243,24 @@ public class QuickEaterPlugin extends Plugin } } + @Subscribe + private void onChatMessage(ChatMessage event) + { + if (event.getMessage().equals(BURN_MESSAGE) && config.drinkAntiFire()) + { + if (utils.inventoryContains(ANTI_FIRE_SET)) + { + log.debug("Drinking anti-fire"); + WidgetItem antiFireItem = utils.getInventoryWidgetItem(ANTI_FIRE_SET); + useItem(antiFireItem); + } + else + { + utils.sendGameMessage("You are Burnt but missing anti-fire potions"); + } + } + } + @Subscribe protected void onGameStateChanged(GameStateChanged event) { diff --git a/release/quickeater-2.9.3.jar b/release/quickeater-2.9.3.jar deleted file mode 100644 index 61b8e33b..00000000 Binary files a/release/quickeater-2.9.3.jar and /dev/null differ diff --git a/release/quickeater-3.0.0.jar b/release/quickeater-3.0.0.jar new file mode 100644 index 00000000..b0831489 Binary files /dev/null and b/release/quickeater-3.0.0.jar differ