Updated Throne of Heroes to weekly reset.

Contributed by CostyKiller.
This commit is contained in:
MobiusDevelopment
2022-12-17 06:28:52 +00:00
parent 377a183b3b
commit 394af41547
10 changed files with 48 additions and 24 deletions

View File

@@ -67,7 +67,7 @@ public class Roiental extends AbstractNpcAI
{
htmltext = "Roiental-03a.html";
}
else if (player.getClan().getVariables().hasVariable("TOH_DONE"))
else if (player.getClan().getVariables().hasVariable("TOH_GOLDBERG_DONE"))
{
htmltext = "Roiental-AlreadyDone.html";
}
@@ -94,7 +94,7 @@ public class Roiental extends AbstractNpcAI
{
htmltext = "Roiental-03b.html";
}
else if (player.getClan().getVariables().hasVariable("TOH_DONE"))
else if (player.getClan().getVariables().hasVariable("TOH_MARYREED_DONE"))
{
htmltext = "Roiental-AlreadyDone.html";
}
@@ -121,7 +121,7 @@ public class Roiental extends AbstractNpcAI
{
htmltext = "Roiental-03c.html";
}
else if (player.getClan().getVariables().hasVariable("TOH_DONE"))
else if (player.getClan().getVariables().hasVariable("TOH_TAUTI_DONE"))
{
htmltext = "Roiental-AlreadyDone.html";
}

View File

@@ -228,7 +228,7 @@ public class ThroneOfHeroesGoldberg extends AbstractInstance
if (!killer.isGM())
{
// Set clan variable
killer.getClan().getVariables().set("TOH_DONE", System.currentTimeMillis());
killer.getClan().getVariables().set("TOH_GOLDBERG_DONE", System.currentTimeMillis());
killer.getClan().getVariables().storeMe();
}
}

View File

@@ -244,7 +244,7 @@ public class ThroneOfHeroesMaryReed extends AbstractInstance
if (!killer.isGM())
{
// Set clan variable
killer.getClan().getVariables().set("TOH_DONE", System.currentTimeMillis());
killer.getClan().getVariables().set("TOH_MARYREED_DONE", System.currentTimeMillis());
killer.getClan().getVariables().storeMe();
}
}

View File

@@ -212,7 +212,7 @@ public class ThroneOfHeroesTauti extends AbstractInstance
if (!killer.isGM())
{
// Set clan variable
killer.getClan().getVariables().set("TOH_DONE", System.currentTimeMillis());
killer.getClan().getVariables().set("TOH_TAUTI_DONE", System.currentTimeMillis());
killer.getClan().getVariables().storeMe();
}
}