Quest adjustments for Secret of Empire and above.

Contributed by Iris.
This commit is contained in:
MobiusDevelopment 2022-04-11 11:05:29 +00:00
parent 09db81fcfe
commit 5b92bad492
13 changed files with 27 additions and 19 deletions

View File

@ -125,7 +125,7 @@ public class Q00262_TradeWithTheIvoryTower extends Quest
if (getQuestItemsCount(player, SPORE_SAC) >= REQUIRED_ITEM_COUNT) if (getQuestItemsCount(player, SPORE_SAC) >= REQUIRED_ITEM_COUNT)
{ {
htmltext = "30137-05.html"; htmltext = "30137-05.html";
giveAdena(player, 300, true); giveAdena(player, 1000, true);
qs.exitQuest(true, true); qs.exitQuest(true, true);
} }
break; break;

View File

@ -62,7 +62,7 @@ public class Q00500_BrothersBoundInChains extends Quest
addStartNpc(DARK_JUDGE); addStartNpc(DARK_JUDGE);
addTalkId(DARK_JUDGE); addTalkId(DARK_JUDGE);
registerQuestItems(PENITENT_MANACLES, CRUMBS_OF_PENITENCE); registerQuestItems(PENITENT_MANACLES, CRUMBS_OF_PENITENCE);
addCondMaxLevel(80, getNoQuestMsg(null)); addCondMaxLevel(90, getNoQuestMsg(null));
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_SUMMON_AGATHION, (OnPlayerSummonAgathion event) -> OnPlayerSummonAgathion(event), this)); Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_SUMMON_AGATHION, (OnPlayerSummonAgathion event) -> OnPlayerSummonAgathion(event), this));
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_UNSUMMON_AGATHION, (OnPlayerUnsummonAgathion event) -> OnPlayerUnsummonAgathion(event), this)); Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_UNSUMMON_AGATHION, (OnPlayerUnsummonAgathion event) -> OnPlayerUnsummonAgathion(event), this));
} }
@ -113,7 +113,7 @@ public class Q00500_BrothersBoundInChains extends Quest
} }
case "30981-09.html": // not retail html. case "30981-09.html": // not retail html.
{ {
if (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 35) if (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 50)
{ {
takeItems(player, CRUMBS_OF_PENITENCE, -1); takeItems(player, CRUMBS_OF_PENITENCE, -1);
takeItems(player, PENITENT_MANACLES, -1); takeItems(player, PENITENT_MANACLES, -1);
@ -260,10 +260,10 @@ public class Q00500_BrothersBoundInChains extends Quest
final int killCount = qs.getInt(KILL_COUNT_VAR); final int killCount = qs.getInt(KILL_COUNT_VAR);
if (killCount >= 20) if (killCount >= 20)
{ {
// Player can drop more than 35 Crumbs of Penitence but there's no point in getting more than 35 (retail). // Player can drop more than 50 Crumbs of Penitence but there's no point in getting more than 50 (retail).
giveItems(player, CRUMBS_OF_PENITENCE, 1); giveItems(player, CRUMBS_OF_PENITENCE, 1);
qs.set(KILL_COUNT_VAR, 0); qs.set(KILL_COUNT_VAR, 0);
if (!qs.isCond(2) && (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 35)) if (!qs.isCond(2) && (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 50))
{ {
qs.setCond(2, true); qs.setCond(2, true);
} }

View File

@ -31,6 +31,7 @@ public class Q00910_RequestFromTheRedLibraGuildLv1 extends Quest
super(910); super(910);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 1 */, getNoQuestMsg(null));
// addCondMaxLevel(20, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00911_RequestFromTheRedLibraGuildLv2 extends Quest
super(911); super(911);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 21 */, getNoQuestMsg(null));
// addCondMaxLevel(40, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00912_RequestFromTheRedLibraGuildLv3 extends Quest
super(912); super(912);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 41 */, getNoQuestMsg(null));
// addCondMaxLevel(60, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00913_RequestFromTheRedLibraGuildLv4 extends Quest
super(913); super(913);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 61 */, getNoQuestMsg(null));
// addCondMaxLevel(78, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,6 @@ public class Q00914_RequestFromTheRedLibraGuildLv5 extends Quest
super(914); super(914);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 79 */, getNoQuestMsg(null));
} }
} }

View File

@ -62,7 +62,7 @@ public class Q00500_BrothersBoundInChains extends Quest
addStartNpc(DARK_JUDGE); addStartNpc(DARK_JUDGE);
addTalkId(DARK_JUDGE); addTalkId(DARK_JUDGE);
registerQuestItems(PENITENT_MANACLES, CRUMBS_OF_PENITENCE); registerQuestItems(PENITENT_MANACLES, CRUMBS_OF_PENITENCE);
addCondMaxLevel(80, getNoQuestMsg(null)); addCondMaxLevel(90, getNoQuestMsg(null));
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_SUMMON_AGATHION, (OnPlayerSummonAgathion event) -> OnPlayerSummonAgathion(event), this)); Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_SUMMON_AGATHION, (OnPlayerSummonAgathion event) -> OnPlayerSummonAgathion(event), this));
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_UNSUMMON_AGATHION, (OnPlayerUnsummonAgathion event) -> OnPlayerUnsummonAgathion(event), this)); Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_UNSUMMON_AGATHION, (OnPlayerUnsummonAgathion event) -> OnPlayerUnsummonAgathion(event), this));
} }
@ -113,7 +113,7 @@ public class Q00500_BrothersBoundInChains extends Quest
} }
case "30981-09.html": // not retail html. case "30981-09.html": // not retail html.
{ {
if (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 35) if (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 50)
{ {
takeItems(player, CRUMBS_OF_PENITENCE, -1); takeItems(player, CRUMBS_OF_PENITENCE, -1);
takeItems(player, PENITENT_MANACLES, -1); takeItems(player, PENITENT_MANACLES, -1);
@ -260,10 +260,10 @@ public class Q00500_BrothersBoundInChains extends Quest
final int killCount = qs.getInt(KILL_COUNT_VAR); final int killCount = qs.getInt(KILL_COUNT_VAR);
if (killCount >= 20) if (killCount >= 20)
{ {
// Player can drop more than 35 Crumbs of Penitence but there's no point in getting more than 35 (retail). // Player can drop more than 50 Crumbs of Penitence but there's no point in getting more than 50 (retail).
giveItems(player, CRUMBS_OF_PENITENCE, 1); giveItems(player, CRUMBS_OF_PENITENCE, 1);
qs.set(KILL_COUNT_VAR, 0); qs.set(KILL_COUNT_VAR, 0);
if (!qs.isCond(2) && (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 35)) if (!qs.isCond(2) && (getQuestItemsCount(player, CRUMBS_OF_PENITENCE) >= 50))
{ {
qs.setCond(2, true); qs.setCond(2, true);
} }

View File

@ -31,6 +31,7 @@ public class Q00910_RequestFromTheRedLibraGuildLv1 extends Quest
super(910); super(910);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 1 */, getNoQuestMsg(null));
// addCondMaxLevel(20, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00911_RequestFromTheRedLibraGuildLv2 extends Quest
super(911); super(911);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 21 */, getNoQuestMsg(null));
// addCondMaxLevel(40, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00912_RequestFromTheRedLibraGuildLv3 extends Quest
super(912); super(912);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 41 */, getNoQuestMsg(null));
// addCondMaxLevel(60, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,7 @@ public class Q00913_RequestFromTheRedLibraGuildLv4 extends Quest
super(913); super(913);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 61 */, getNoQuestMsg(null));
// addCondMaxLevel(78, getNoQuestMsg(null));
} }
} }

View File

@ -31,6 +31,6 @@ public class Q00914_RequestFromTheRedLibraGuildLv5 extends Quest
super(914); super(914);
addStartNpc(START_NPC); addStartNpc(START_NPC);
addTalkId(START_NPC); addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL /* 79 */, getNoQuestMsg(null));
} }
} }