timers plugin: add raids potions
This commit is contained in:
@@ -187,7 +187,12 @@ public enum Varbits
|
|||||||
/**
|
/**
|
||||||
* Experience drop color
|
* Experience drop color
|
||||||
*/
|
*/
|
||||||
EXPERIENCE_DROP_COLOR(4695, 1227, 6, 8);
|
EXPERIENCE_DROP_COLOR(4695, 1227, 6, 8),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raids
|
||||||
|
*/
|
||||||
|
IN_RAID(5432, 1431, 31, 31);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* varbit id
|
* varbit id
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ public enum GameTimer
|
|||||||
ANTIDOTEPLUS("antidoteplus", "Antidote+", 518, ChronoUnit.SECONDS),
|
ANTIDOTEPLUS("antidoteplus", "Antidote+", 518, ChronoUnit.SECONDS),
|
||||||
ANTIVENOM("antivenom", "Anto-venom", 12, ChronoUnit.MINUTES),
|
ANTIVENOM("antivenom", "Anto-venom", 12, ChronoUnit.MINUTES),
|
||||||
EXSUPERANTIFIRE("exsuperantifire", "Extended Super AntiFire", 6, ChronoUnit.MINUTES),
|
EXSUPERANTIFIRE("exsuperantifire", "Extended Super AntiFire", 6, ChronoUnit.MINUTES),
|
||||||
SANFEW("sanfew", "Sanfew serum", 6, ChronoUnit.MINUTES);
|
SANFEW("sanfew", "Sanfew serum", 6, ChronoUnit.MINUTES),
|
||||||
|
OVERLOAD_RAID("overloadraid", "Overload", 5, ChronoUnit.MINUTES),
|
||||||
|
PRAYER_ENHANCE("prayerenhance", "Prayer enhance", 5, ChronoUnit.MINUTES);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final String imageResource;
|
private final String imageResource;
|
||||||
|
|||||||
@@ -214,4 +214,14 @@ public interface TimersConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showPrayerEnhance",
|
||||||
|
name = "Prayer enhance timer",
|
||||||
|
description = "Configures whether prayer enhance timer is displayed"
|
||||||
|
)
|
||||||
|
default boolean showPrayerEnhance()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ import static net.runelite.client.plugins.timers.GameTimer.FULLTB;
|
|||||||
import static net.runelite.client.plugins.timers.GameTimer.HALFTB;
|
import static net.runelite.client.plugins.timers.GameTimer.HALFTB;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.MAGICIMBUE;
|
import static net.runelite.client.plugins.timers.GameTimer.MAGICIMBUE;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD;
|
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD;
|
||||||
|
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD_RAID;
|
||||||
|
import static net.runelite.client.plugins.timers.GameTimer.PRAYER_ENHANCE;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.SANFEW;
|
import static net.runelite.client.plugins.timers.GameTimer.SANFEW;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.STAMINA;
|
import static net.runelite.client.plugins.timers.GameTimer.STAMINA;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.SUPERANTIFIRE;
|
import static net.runelite.client.plugins.timers.GameTimer.SUPERANTIFIRE;
|
||||||
@@ -59,6 +61,7 @@ import net.runelite.api.ChatMessageType;
|
|||||||
import net.runelite.api.Client;
|
import net.runelite.api.Client;
|
||||||
import net.runelite.api.ItemID;
|
import net.runelite.api.ItemID;
|
||||||
import net.runelite.api.Prayer;
|
import net.runelite.api.Prayer;
|
||||||
|
import net.runelite.api.Varbits;
|
||||||
import net.runelite.api.events.GraphicChanged;
|
import net.runelite.api.events.GraphicChanged;
|
||||||
import net.runelite.client.config.ConfigManager;
|
import net.runelite.client.config.ConfigManager;
|
||||||
import net.runelite.api.events.ChatMessage;
|
import net.runelite.api.events.ChatMessage;
|
||||||
@@ -115,6 +118,7 @@ public class TimersPlugin extends Plugin
|
|||||||
if (!config.showOverload())
|
if (!config.showOverload())
|
||||||
{
|
{
|
||||||
removeGameTimer(OVERLOAD);
|
removeGameTimer(OVERLOAD);
|
||||||
|
removeGameTimer(OVERLOAD_RAID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config.showCannon())
|
if (!config.showCannon())
|
||||||
@@ -191,6 +195,11 @@ public class TimersPlugin extends Plugin
|
|||||||
removeGameTimer(ICEBLITZ);
|
removeGameTimer(ICEBLITZ);
|
||||||
removeGameTimer(ICEBARRAGE);
|
removeGameTimer(ICEBARRAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!config.showPrayerEnhance())
|
||||||
|
{
|
||||||
|
removeGameTimer(PRAYER_ENHANCE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
@@ -263,7 +272,15 @@ public class TimersPlugin extends Plugin
|
|||||||
|
|
||||||
if (config.showOverload() && event.getMessage().startsWith("You drink some of your") && event.getMessage().contains("overload"))
|
if (config.showOverload() && event.getMessage().startsWith("You drink some of your") && event.getMessage().contains("overload"))
|
||||||
{
|
{
|
||||||
createGameTimer(OVERLOAD);
|
if (client.getSetting(Varbits.IN_RAID) == 1)
|
||||||
|
{
|
||||||
|
createGameTimer(OVERLOAD_RAID);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
createGameTimer(OVERLOAD);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.showCannon() && (event.getMessage().equals("You add the furnace.") || event.getMessage().contains("You repair your cannon, restoring it to working order.")))
|
if (config.showCannon() && (event.getMessage().equals("You add the furnace.") || event.getMessage().contains("You repair your cannon, restoring it to working order.")))
|
||||||
@@ -325,6 +342,11 @@ public class TimersPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
createGameTimer(SANFEW);
|
createGameTimer(SANFEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.showPrayerEnhance() && event.getMessage().startsWith("You drink some of your") && event.getMessage().contains("prayer enhance"))
|
||||||
|
{
|
||||||
|
createGameTimer(PRAYER_ENHANCE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 576 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user