Kingdom Plugin: fix throne completion state check (#5874)
Now uses the correct varp from the quest list completion state script (1358). Additionally, allows the infobox to show if the quest is in progress to allow users to check favor during the last part of the quest. Closes #1980
This commit is contained in:
@@ -32,6 +32,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.GameState;
|
||||
import static net.runelite.api.ItemID.TEAK_CHEST;
|
||||
import net.runelite.api.VarPlayer;
|
||||
import net.runelite.api.Varbits;
|
||||
import net.runelite.api.events.GameStateChanged;
|
||||
import net.runelite.api.events.VarbitChanged;
|
||||
@@ -129,7 +130,7 @@ public class KingdomPlugin extends Plugin
|
||||
|
||||
private boolean hasCompletedQuest()
|
||||
{
|
||||
return client.getVar(Varbits.THRONE_OF_MISCELLANIA_QUEST) == 1;
|
||||
return client.getVar(VarPlayer.THRONE_OF_MISCELLANIA) > 0;
|
||||
}
|
||||
|
||||
static int getFavorPercent(int favor)
|
||||
|
||||
Reference in New Issue
Block a user