spec-counter: reset counter on sotetseg maze
This commit is contained in:
@@ -383,4 +383,10 @@ public final class ScriptID
|
||||
*/
|
||||
@ScriptArguments(integer = 6)
|
||||
public static final int TRADE_MAIN_INIT = 755;
|
||||
|
||||
/**
|
||||
* Transitions the tob hud into the white flash that happens when sotetseg teleports the players to the maze.
|
||||
*/
|
||||
@ScriptArguments(string = 1)
|
||||
public static final int TOB_HUD_SOTETSEG_FADE = 2308;
|
||||
}
|
||||
@@ -48,6 +48,7 @@ import net.runelite.api.Item;
|
||||
import net.runelite.api.ItemContainer;
|
||||
import net.runelite.api.NPC;
|
||||
import net.runelite.api.NpcID;
|
||||
import net.runelite.api.ScriptID;
|
||||
import net.runelite.api.VarPlayer;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.events.CommandExecuted;
|
||||
@@ -56,6 +57,7 @@ import net.runelite.api.events.GameTick;
|
||||
import net.runelite.api.events.HitsplatApplied;
|
||||
import net.runelite.api.events.InteractingChanged;
|
||||
import net.runelite.api.events.NpcDespawned;
|
||||
import net.runelite.api.events.ScriptPostFired;
|
||||
import net.runelite.api.events.VarbitChanged;
|
||||
import net.runelite.client.Notifier;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
@@ -166,7 +168,17 @@ public class SpecialCounterPlugin extends Plugin
|
||||
overlayManager.remove(playerInfoDropOverlay);
|
||||
wsClient.unregisterMessage(SpecialCounterUpdate.class);
|
||||
}
|
||||
|
||||
|
||||
@Subscribe
|
||||
public void onScriptPostFired(ScriptPostFired event)
|
||||
{
|
||||
if (event.getScriptId() == ScriptID.TOB_HUD_SOTETSEG_FADE)
|
||||
{
|
||||
log.debug("Resetting spec counter as sotetseg maze script was ran");
|
||||
removeCounters();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onGameTick(GameTick event)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user