Various Grand Crusade changes.

Contributed by gamelike85.
This commit is contained in:
MobiusDev
2017-11-11 23:37:16 +00:00
parent ebcd5a3c63
commit c83c60d0c8
33 changed files with 219 additions and 61 deletions

View File

@@ -42,10 +42,12 @@ public final class LindviorScene extends AbstractNpcAI
private static final int RESET_HOUR = 18;
private static final int RESET_MIN = 58;
private static final int RESET_DAY_1 = Calendar.TUESDAY;
private static final int RESET_DAY_2 = Calendar.FRIDAY;
private static final int RESET_DAY_2 = Calendar.WEDNESDAY;
private static final int RESET_DAY_3 = Calendar.THURSDAY;
private static final int RESET_DAY_4 = Calendar.FRIDAY;
private static boolean ALT_MODE = false;
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
private static int ALT_MODE_MIN = 120; // schedule delay in minutes if ALT_MODE enabled
private L2Npc _lindviorCamera = null;
private L2Npc _tomaris = null;
@@ -103,7 +105,7 @@ public final class LindviorScene extends AbstractNpcAI
public void scheduleNextLindviorVisit()
{
final long delay = (ALT_MODE) ? ALT_MODE_MIN * 60000 : scheduleNextLindviorDate();
final long delay = (ALT_MODE) ? ALT_MODE_MIN * 120000 : scheduleNextLindviorDate();
startQuestTimer("start", delay, null, null);
}
@@ -126,6 +128,14 @@ public final class LindviorScene extends AbstractNpcAI
{
date.add(Calendar.DAY_OF_WEEK, RESET_DAY_2 - dayOfWeek);
}
else if (dayOfWeek <= RESET_DAY_3)
{
date.add(Calendar.DAY_OF_WEEK, RESET_DAY_3 - dayOfWeek);
}
else if (dayOfWeek <= RESET_DAY_4)
{
date.add(Calendar.DAY_OF_WEEK, RESET_DAY_4 - dayOfWeek);
}
else
{
date.add(Calendar.DAY_OF_WEEK, 1 + RESET_DAY_1);

View File

@@ -1,7 +1,8 @@
<html><head><body>Seed Teleport Device:<br>
Let me guide you to the Seeds.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfAnnihilation">"I want to go to the Seed of Annihilation (Lv.85)."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfDestruction">"I want to go to the Seed of Destruction (Lv.93)."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfInfinity">"Can I go to the Seed of Infinity (Lv.95)?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfHellfire">"Teleport me to the Seed of Hellfire (Lv.97)."</Button>
You will be guided to select where to go.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfAnnihilation">Seed of Annihilation (Lv.85)</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfDestruction">Seed of Destruction (Lv.93)</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfInfinity">Seed of Infinity (Lv.95)</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest SeedTeleportDevice seedOfHellfire">Seed of Hellfire (Lv.97)</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_teleport 3 1">Town of Gludio</Button>
</body></html>

View File

@@ -36,7 +36,7 @@ public final class SeedTeleportDevice extends AbstractNpcAI
private static final Location SOI = new Location(-213699, 210686, 4408);
private static final Location SOH = new Location(-147354, 152581, -14048);
// Misc
private static final int SOH_MIN_LV = 97;
private static final int SOH_MIN_LV = 95;
private SeedTeleportDevice()
{