quickeater: stamina pot drink value fix
This commit is contained in:
parent
797764f7a3
commit
0e30a27081
|
@ -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-08-25","sha512sum":"4222FDA8F81AACA118FAACB761AE1A5FF2BE8368612FF9DDC408E5AA3C6ECB89893636B9804671195FD1AA8AC74E350A1FB23D21287D99DD9CE10AE8E1B9A8B0","version":"3.5.2","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/botutils-3.5.2.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-08-25","sha512sum":"03C830A9CB83A3A5D6AE4334EB1FE4ADB14EFD72B496690EEC38DACE04DD339BF775624A47209E0B3AB80D122F88DF21845705E4F13A0952FE3B6D9CF614CE8B","version":"1.7.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/combinationrunecrafter-1.7.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Magic Splasher","description":"Illumine automated magic splasher","id":"magicsplasher-plugin","releases":[{"date":"2020-08-25","sha512sum":"F278D80AE38F4ADF8380E09BE21106E91A168165516E2B10965FFADECDADAB55002B2CF175A39EB2474D199C7E1963C94802FA9C25846FD653859DF13F52E8A0","version":"2.5.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/magicsplasher-2.5.1.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-08-25","sha512sum":"2334ABBF4A685703F5D64928120627E2CB6A482605D81684B9144583A569E9BB7AAD126DFE45904991A3150030A4B0BD37A7248E341F46F03A8A110E313D01E5","version":"1.3.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerfighter-1.3.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-08-25","sha512sum":"3BDF23FD85F56895063C3ED65AAF615711F0D3806E2EFB92DA78F3E511351C94877D5CC5E037AEDE7A26B16E36E9A0967D948F0A26372BB9632A7FCEA2A69D3F","version":"4.1.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerskiller-4.1.1.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-08-25","sha512sum":"1937B50BA06EE6013D1F1A3C102368A8981861FC0BDF3EB964BE9713C73A676C080557D215A5A5D6EF9C6782096F1137982154E73425CD48FCBBC2B443410E1D","version":"2.7.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/quickeater-2.7.0.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-08-25","sha512sum":"C3A97CF51DDD5BF837EB410F5936AF1686E2F9757EBAAE2351B81DEB5187BDF1E71E5825D14A157361A280BD0A370874BFAF88AE11011FB45CB2DEF47FE80009","version":"3.7.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/rooftopagility-3.7.0.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-08-25","sha512sum":"4222FDA8F81AACA118FAACB761AE1A5FF2BE8368612FF9DDC408E5AA3C6ECB89893636B9804671195FD1AA8AC74E350A1FB23D21287D99DD9CE10AE8E1B9A8B0","version":"3.5.2","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/botutils-3.5.2.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-08-25","sha512sum":"03C830A9CB83A3A5D6AE4334EB1FE4ADB14EFD72B496690EEC38DACE04DD339BF775624A47209E0B3AB80D122F88DF21845705E4F13A0952FE3B6D9CF614CE8B","version":"1.7.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/combinationrunecrafter-1.7.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/9fGzEDR","provider":"illumine","name":"Magic Splasher","description":"Illumine automated magic splasher","id":"magicsplasher-plugin","releases":[{"date":"2020-08-25","sha512sum":"F278D80AE38F4ADF8380E09BE21106E91A168165516E2B10965FFADECDADAB55002B2CF175A39EB2474D199C7E1963C94802FA9C25846FD653859DF13F52E8A0","version":"2.5.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/magicsplasher-2.5.1.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-08-25","sha512sum":"1EC777BE768DB9E0A81C8C7D33970FDE846BCE184ABF95D9987A203D745E5DCC1CFF2068299A9D38E9C954F9A0D9306DBB15EA59D4A1A81CF1E81B820F08C986","version":"1.3.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerfighter-1.3.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-08-25","sha512sum":"3BDF23FD85F56895063C3ED65AAF615711F0D3806E2EFB92DA78F3E511351C94877D5CC5E037AEDE7A26B16E36E9A0967D948F0A26372BB9632A7FCEA2A69D3F","version":"4.1.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/powerskiller-4.1.1.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-08-25","sha512sum":"136178D1E0674A76013FE40C0E428F73EAA8223FB4B637A5DE524E15085AEDD884DA95E0FF2EEA2B8D84498254789B60F34157DDC7148D520D0E5EC92CC5FAFD","version":"2.7.1","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/quickeater-2.7.1.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-08-25","sha512sum":"C3A97CF51DDD5BF837EB410F5936AF1686E2F9757EBAAE2351B81DEB5187BDF1E71E5825D14A157361A280BD0A370874BFAF88AE11011FB45CB2DEF47FE80009","version":"3.7.0","url":"https://github.com/illumineawake/illu-plugins/blob/master/release/rooftopagility-3.7.0.jar?raw=true","requires":"0.0.1"}]}]
|
||||
|
|
|
@ -36,24 +36,11 @@ import java.util.Set;
|
|||
import java.util.concurrent.ExecutorService;
|
||||
import javax.inject.Inject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.runelite.api.ChatMessageType;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.GameState;
|
||||
import net.runelite.api.ItemID;
|
||||
import net.runelite.api.MenuEntry;
|
||||
import net.runelite.api.MenuOpcode;
|
||||
import net.runelite.api.NPC;
|
||||
import net.runelite.api.Player;
|
||||
import net.runelite.api.TileItem;
|
||||
import net.runelite.api.*;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.events.ActorDeath;
|
||||
import net.runelite.api.events.ChatMessage;
|
||||
import net.runelite.api.events.ConfigButtonClicked;
|
||||
import net.runelite.api.events.GameStateChanged;
|
||||
import net.runelite.api.events.GameTick;
|
||||
import net.runelite.api.events.ItemDespawned;
|
||||
import net.runelite.api.events.ItemSpawned;
|
||||
import net.runelite.api.events.*;
|
||||
import net.runelite.api.queries.InventoryWidgetItemQuery;
|
||||
import net.runelite.api.widgets.WidgetItem;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
version = "2.7.0"
|
||||
version = "2.7.1"
|
||||
|
||||
project.extra["PluginName"] = "Quick Eater"
|
||||
project.extra["PluginDescription"] = "Illumine - auto eat food below configured HP"
|
||||
|
|
|
@ -192,6 +192,7 @@ public class QuickEaterPlugin extends Plugin
|
|||
if (client.getEnergy() < drinkEnergy)
|
||||
{
|
||||
utils.drinkStamPot();
|
||||
drinkEnergy = utils.getRandomIntBetweenRange(config.maxDrinkEnergy() - config.randEnergy(), config.maxDrinkEnergy());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue