Updated quests 10830 and 10831.
Contributed by Dmitri.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<html><body>Master Cyphona:<br>
|
<html><body>Master Cyphona:<br>
|
||||||
Hm? You want to help? Just go away, that's helping.<br>
|
Hm? You want to help? Just go away, that's helping.<br>
|
||||||
(This quest is for characters Lv. 100 and higher who have completed the "In Search of the Cause" quest.)
|
(This quest is for characters Lv. 102 and higher who have completed the "In Search of the Cause" quest and must have 1 level of Unworldly Visitors faction.)
|
||||||
</body></html>
|
</body></html>
|
@@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package quests.Q10830_TheLostGardenOfSpirits;
|
package quests.Q10830_TheLostGardenOfSpirits;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.enums.Faction;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||||
@@ -49,7 +50,7 @@ public class Q10830_TheLostGardenOfSpirits extends Quest
|
|||||||
private static final int UNSTABLE_SPIRITS_ENERGY = 45821;
|
private static final int UNSTABLE_SPIRITS_ENERGY = 45821;
|
||||||
private static final int SOE = 46158;
|
private static final int SOE = 46158;
|
||||||
// Misc
|
// Misc
|
||||||
private static final int MIN_LEVEL = 100;
|
private static final int MIN_LEVEL = 102;
|
||||||
|
|
||||||
public Q10830_TheLostGardenOfSpirits()
|
public Q10830_TheLostGardenOfSpirits()
|
||||||
{
|
{
|
||||||
@@ -60,6 +61,7 @@ public class Q10830_TheLostGardenOfSpirits extends Quest
|
|||||||
registerQuestItems(UNSTABLE_SPIRITS_ENERGY);
|
registerQuestItems(UNSTABLE_SPIRITS_ENERGY);
|
||||||
addCondMinLevel(MIN_LEVEL, "34055-00.htm");
|
addCondMinLevel(MIN_LEVEL, "34055-00.htm");
|
||||||
addCondCompletedQuest(Q10829_InSearchOfTheCause.class.getSimpleName(), "34055-00.htm");
|
addCondCompletedQuest(Q10829_InSearchOfTheCause.class.getSimpleName(), "34055-00.htm");
|
||||||
|
addFactionLevel(Faction.UNWORLDLY_VISITORS, 1, "34055-00.htm");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -89,7 +91,7 @@ public class Q10830_TheLostGardenOfSpirits extends Quest
|
|||||||
case "34055-07.html":
|
case "34055-07.html":
|
||||||
{
|
{
|
||||||
giveItems(player, SOE, 1);
|
giveItems(player, SOE, 1);
|
||||||
addExpAndSp(player, 1637472704L, 14237820);
|
addExpAndSp(player, 44442855900L, 44442720);
|
||||||
qs.exitQuest(false, true);
|
qs.exitQuest(false, true);
|
||||||
htmltext = event;
|
htmltext = event;
|
||||||
break;
|
break;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<html><body>Magister Belas:<br>
|
<html><body>Magister Belas:<br>
|
||||||
Oh, you are so ignorant.<br>
|
Oh, you are so ignorant.<br>
|
||||||
(This quest may only be undertaken by characters Lv. 100 or above who have completed the quest "The Lost Garden of Spirits.")
|
(This quest may only be undertaken by characters Lv. 102 or above who have completed the quest "The Lost Garden of Spirits." and must have 2 level of Unworldly Visitors faction.)
|
||||||
</body></html>
|
</body></html>
|
@@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package quests.Q10831_UnbelievableSight;
|
package quests.Q10831_UnbelievableSight;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.enums.Faction;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||||
@@ -34,7 +35,7 @@ public class Q10831_UnbelievableSight extends Quest
|
|||||||
// NPC
|
// NPC
|
||||||
private static final int BELAS = 34056;
|
private static final int BELAS = 34056;
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final int EL_FLOATO = 23559;
|
private static final int ENERGY_OF_WIND = 19647;
|
||||||
private static final int KERBEROS_LAGER = 23550;
|
private static final int KERBEROS_LAGER = 23550;
|
||||||
private static final int KERBEROS_FORT = 23551;
|
private static final int KERBEROS_FORT = 23551;
|
||||||
private static final int KERBEROS_NERO = 23552;
|
private static final int KERBEROS_NERO = 23552;
|
||||||
@@ -43,24 +44,23 @@ public class Q10831_UnbelievableSight extends Quest
|
|||||||
private static final int FURY_SYLPH_PURKA = 23556;
|
private static final int FURY_SYLPH_PURKA = 23556;
|
||||||
private static final int FURY_KERBEROS_LEGER = 23557;
|
private static final int FURY_KERBEROS_LEGER = 23557;
|
||||||
private static final int FURY_KERBEROS_NERO = 23558;
|
private static final int FURY_KERBEROS_NERO = 23558;
|
||||||
// Item's
|
// Items
|
||||||
private static final int UNBALANCED_ENERGY = 45822;
|
private static final int TRANSFORMED_ENERGY = 48005;
|
||||||
private static final int MARK_OF_TRUST_LOW_GRADE = 45840;
|
private static final int SOE = 46158; // Scroll of Escape: Blackbird Campsite
|
||||||
private static final int SPIRIT_EVIL_TOUGHT_PIACE = 46130;
|
|
||||||
private static final int SOE = 46158;
|
|
||||||
// Misc
|
// Misc
|
||||||
private static final int MIN_LEVEL = 100;
|
private static final int MIN_LEVEL = 102;
|
||||||
|
|
||||||
public Q10831_UnbelievableSight()
|
public Q10831_UnbelievableSight()
|
||||||
{
|
{
|
||||||
super(10831);
|
super(10831);
|
||||||
addStartNpc(BELAS);
|
addStartNpc(BELAS);
|
||||||
addTalkId(BELAS);
|
addTalkId(BELAS);
|
||||||
addKillId(EL_FLOATO);
|
addKillId(ENERGY_OF_WIND);
|
||||||
addKillId(KERBEROS_LAGER, KERBEROS_FORT, KERBEROS_NERO, FURY_SYLPH_BARRENA, FURY_SYLPH_TEMPTRESS, FURY_SYLPH_PURKA, FURY_KERBEROS_LEGER, FURY_KERBEROS_NERO);
|
addKillId(KERBEROS_LAGER, KERBEROS_FORT, KERBEROS_NERO, FURY_SYLPH_BARRENA, FURY_SYLPH_TEMPTRESS, FURY_SYLPH_PURKA, FURY_KERBEROS_LEGER, FURY_KERBEROS_NERO);
|
||||||
registerQuestItems(UNBALANCED_ENERGY);
|
registerQuestItems(TRANSFORMED_ENERGY);
|
||||||
addCondMinLevel(MIN_LEVEL, "34056-00.htm");
|
addCondMinLevel(MIN_LEVEL, "34056-00.htm");
|
||||||
addCondCompletedQuest(Q10830_TheLostGardenOfSpirits.class.getSimpleName(), "34056-00.htm");
|
addCondCompletedQuest(Q10830_TheLostGardenOfSpirits.class.getSimpleName(), "34056-00.htm");
|
||||||
|
addFactionLevel(Faction.UNWORLDLY_VISITORS, 2, "34056-00.htm");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -89,9 +89,8 @@ public class Q10831_UnbelievableSight extends Quest
|
|||||||
}
|
}
|
||||||
case "34056-07.html":
|
case "34056-07.html":
|
||||||
{
|
{
|
||||||
giveItems(player, SOE, 1);
|
giveItems(player, SOE, 1); // Scroll of Escape: Blackbird Campsite
|
||||||
giveItems(player, SPIRIT_EVIL_TOUGHT_PIACE, 1);
|
addExpAndSp(player, 44442855900L, 44442720);
|
||||||
addExpAndSp(player, 1637472704L, 14237820);
|
|
||||||
qs.exitQuest(false, true);
|
qs.exitQuest(false, true);
|
||||||
htmltext = event;
|
htmltext = event;
|
||||||
break;
|
break;
|
||||||
@@ -110,11 +109,6 @@ public class Q10831_UnbelievableSight extends Quest
|
|||||||
{
|
{
|
||||||
case State.CREATED:
|
case State.CREATED:
|
||||||
{
|
{
|
||||||
if (!hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE))
|
|
||||||
{
|
|
||||||
htmltext = "noItem.htm";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
htmltext = "34056-01.htm";
|
htmltext = "34056-01.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -156,13 +150,16 @@ public class Q10831_UnbelievableSight extends Quest
|
|||||||
case FURY_KERBEROS_LEGER:
|
case FURY_KERBEROS_LEGER:
|
||||||
case FURY_KERBEROS_NERO:
|
case FURY_KERBEROS_NERO:
|
||||||
{
|
{
|
||||||
final Npc mob = addSpawn(EL_FLOATO, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
if (getRandom(100) < 50)
|
||||||
addAttackPlayerDesire(mob, killer, 5);
|
{
|
||||||
|
final Npc mob = addSpawn(ENERGY_OF_WIND, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||||
|
addAttackPlayerDesire(mob, killer, 5);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EL_FLOATO:
|
case ENERGY_OF_WIND:
|
||||||
{
|
{
|
||||||
if (giveItemRandomly(killer, npc, UNBALANCED_ENERGY, 1, 100, 0.5, true))
|
if (giveItemRandomly(killer, npc, TRANSFORMED_ENERGY, 1, 10, 0.5, true))
|
||||||
{
|
{
|
||||||
qs.setCond(2, true);
|
qs.setCond(2, true);
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
<html><body>Magister Belas:<br>
|
|
||||||
You don't meet the requirements. How can you not know that?<br>
|
|
||||||
(This quest may only be undertaken by characters with a Mark of Trust (Low-grade).)
|
|
||||||
</body></html>
|
|
Reference in New Issue
Block a user