Improvement for quest 10301.
Contributed by gigilo1968.
This commit is contained in:
8
L2J_Mobius_Underground/dist/game/data/html/help/17725.htm
vendored
Normal file
8
L2J_Mobius_Underground/dist/game/data/html/help/17725.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<html><body>Lada's Letter:<br>
|
||||||
|
Missarable advanturers, who lost their village<br>
|
||||||
|
Greetings! I am <font color="LEVEL">The Leader Of Magmeld Delegation Lada.</font>
|
||||||
|
Our once beautiful and peacful villages have been emptied by plague, which causes whole body and bones to rot.I recruit like-minded persons,to try and find out the reason behind this.<br>
|
||||||
|
I think, that You are strong enough, to join us, for that reason i am sending you this massage.<br>
|
||||||
|
Would you mind to help us?<br><br>
|
||||||
|
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10301_ShadowOfTerrorBlackishRedFog start">"Aid Lada on his mission"</button>
|
||||||
|
</body></html>
|
@@ -50,7 +50,7 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
// Items
|
// Items
|
||||||
private static final int LADA_LETTER = 17725; // Lada's Letter
|
private static final int LADA_LETTER = 17725; // Lada's Letter
|
||||||
private static final int GLIMMER_CRYSTAL = 17604; // Glimmer Crystal
|
private static final int GLIMMER_CRYSTAL = 17604; // Glimmer Crystal
|
||||||
private static final int CAPSULED_WHISP = 17588; // Calsuled Whisp
|
private static final int SPIRIT_ITEM = 17588; // Calsuled Whisp
|
||||||
private static final int FAIRY = 17380; // Agathion - Fairy
|
private static final int FAIRY = 17380; // Agathion - Fairy
|
||||||
// Skills
|
// Skills
|
||||||
private static final int WHISP_SKILL = 12001;
|
private static final int WHISP_SKILL = 12001;
|
||||||
@@ -60,13 +60,13 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
public Q10301_ShadowOfTerrorBlackishRedFog()
|
public Q10301_ShadowOfTerrorBlackishRedFog()
|
||||||
{
|
{
|
||||||
super(10301);
|
super(10301);
|
||||||
addStartNpc(LADA);
|
addStartNpc(LADA_LETTER);
|
||||||
addTalkId(LADA, SLASKI);
|
addTalkId(LADA, SLASKI);
|
||||||
addSkillSeeId(LARGE_VERDANT_WILDS);
|
addSkillSeeId(LARGE_VERDANT_WILDS);
|
||||||
addAttackId(WHISP);
|
addAttackId(WHISP);
|
||||||
|
|
||||||
addCondMinLevel(MIN_LEVEL, "33100-08.htm");
|
addCondMinLevel(MIN_LEVEL, "33100-08.htm");
|
||||||
registerQuestItems(CAPSULED_WHISP, GLIMMER_CRYSTAL);
|
registerQuestItems(SPIRIT_ITEM, GLIMMER_CRYSTAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -79,6 +79,13 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
return htmltext;
|
return htmltext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.equals("start"))
|
||||||
|
{
|
||||||
|
qs.startQuest();
|
||||||
|
takeItems(player, LADA_LETTER, -1);
|
||||||
|
htmltext = "start.htm";
|
||||||
|
}
|
||||||
|
|
||||||
switch (event)
|
switch (event)
|
||||||
{
|
{
|
||||||
case "33100-02.htm":
|
case "33100-02.htm":
|
||||||
@@ -93,11 +100,9 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
}
|
}
|
||||||
case "33100-04.htm":
|
case "33100-04.htm":
|
||||||
{
|
{
|
||||||
qs.startQuest();
|
|
||||||
qs.setCond(2);
|
qs.setCond(2);
|
||||||
htmltext = event;
|
htmltext = event;
|
||||||
giveItems(player, GLIMMER_CRYSTAL, 10);
|
giveItems(player, GLIMMER_CRYSTAL, 10);
|
||||||
takeItems(player, LADA_LETTER, -1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "giveCrystals":
|
case "giveCrystals":
|
||||||
@@ -108,7 +113,7 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (event.startsWith("giveReward_") && qs.isCond(3) && (player.getLevel() >= MIN_LEVEL))
|
if (event.startsWith("giveReward_") && qs.isCond(3) && (player.getLevel() >= MIN_LEVEL) && (getQuestItemsCount(player, SPIRIT_ITEM) >= 1))
|
||||||
{
|
{
|
||||||
final int itemId = Integer.parseInt(event.replace("giveReward_", ""));
|
final int itemId = Integer.parseInt(event.replace("giveReward_", ""));
|
||||||
qs.exitQuest(false, true);
|
qs.exitQuest(false, true);
|
||||||
@@ -131,19 +136,15 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
|
|
||||||
switch (qs.getState())
|
switch (qs.getState())
|
||||||
{
|
{
|
||||||
case State.CREATED:
|
|
||||||
{
|
|
||||||
if (npc.getId() == LADA)
|
|
||||||
{
|
|
||||||
htmltext = "33100-01.htm";
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case State.STARTED:
|
case State.STARTED:
|
||||||
{
|
{
|
||||||
if (npc.getId() == LADA)
|
if (npc.getId() == LADA)
|
||||||
{
|
{
|
||||||
if (qs.isCond(2))
|
if (qs.isCond(1))
|
||||||
|
{
|
||||||
|
htmltext = "33100-01.htm";
|
||||||
|
}
|
||||||
|
else if (qs.isCond(2))
|
||||||
{
|
{
|
||||||
htmltext = "33100-05.html";
|
htmltext = "33100-05.html";
|
||||||
}
|
}
|
||||||
@@ -179,10 +180,14 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
final QuestState qs = getQuestState(caster, false);
|
final QuestState qs = getQuestState(caster, false);
|
||||||
if ((qs != null) && qs.isCond(2) && (skill.getId() == WHISP_SKILL))
|
if ((qs != null) && qs.isCond(2) && (skill.getId() == WHISP_SKILL))
|
||||||
{
|
{
|
||||||
final L2Npc whisp = addSpawn(WHISP, caster, true, 20000);
|
// takeItems(caster, GLIMMER_CRYSTAL, 1);
|
||||||
|
for (int i1 = 0; i1 < 3; i1++)
|
||||||
|
{
|
||||||
|
final L2Npc whisp = addSpawn(WHISP, caster.getX() + getRandom(-20, 20), caster.getY() + getRandom(-20, 20), caster.getZ(), 0, true, 30000, false);
|
||||||
whisp.setTitle(caster.getName());
|
whisp.setTitle(caster.getName());
|
||||||
whisp.broadcastInfo();
|
whisp.broadcastInfo();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return super.onSkillSee(npc, caster, skill, targets, isSummon);
|
return super.onSkillSee(npc, caster, skill, targets, isSummon);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,10 +197,12 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
final QuestState qs = getQuestState(attacker, false);
|
final QuestState qs = getQuestState(attacker, false);
|
||||||
if ((qs != null) && qs.isCond(2))
|
if ((qs != null) && qs.isCond(2))
|
||||||
{
|
{
|
||||||
if (getRandom(1000) < 500)
|
if (getRandom(1000) < 300)
|
||||||
{
|
{
|
||||||
showOnScreenMsg(attacker, NpcStringId.YOU_VE_CAPTURED_A_WISP_SUCCESSFULLY, ExShowScreenMessage.TOP_CENTER, 10000);
|
showOnScreenMsg(attacker, NpcStringId.YOU_VE_CAPTURED_A_WISP_SUCCESSFULLY, ExShowScreenMessage.TOP_CENTER, 10000);
|
||||||
|
giveItems(attacker, SPIRIT_ITEM, 1);
|
||||||
takeItems(attacker, GLIMMER_CRYSTAL, -1);
|
takeItems(attacker, GLIMMER_CRYSTAL, -1);
|
||||||
|
qs.setCond(1);
|
||||||
qs.setCond(3, true);
|
qs.setCond(3, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -239,7 +246,10 @@ public final class Q10301_ShadowOfTerrorBlackishRedFog extends Quest
|
|||||||
{
|
{
|
||||||
final String html = getHtm(player.getHtmlPrefix(), "popup.html");
|
final String html = getHtm(player.getHtmlPrefix(), "popup.html");
|
||||||
player.sendPacket(new TutorialShowHtml(html));
|
player.sendPacket(new TutorialShowHtml(html));
|
||||||
|
if (!hasQuestItems(player, LADA_LETTER))
|
||||||
|
{
|
||||||
giveItems(player, LADA_LETTER, 1);
|
giveItems(player, LADA_LETTER, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
<html><body>[Lada's Letter]<br>
|
<html><body>[Lada's Letter]<br>
|
||||||
A <font color="LEVEL">letter</font> has arrived from <font color="LEVEL">Magmeld Delegation Leader Lada</font>.<br>
|
A <font color="LEVEL">letter</font> has arrived from <font color="LEVEL">Magmeld Delegation Leader Lada</font>.<br>
|
||||||
Open your inventory and check <font color="LEVEL">Lada's Letter</font>.
|
Open your inventory and check <font color="LEVEL">Lada's Letter</font>.<br><br>
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
|
||||||
</body></html>
|
</body></html>
|
@@ -0,0 +1,5 @@
|
|||||||
|
<html></body><center>[Ladas's Letter]</center><br>
|
||||||
|
Thank You.<br>
|
||||||
|
It will be difficult to explain everything to writing, so plase visit me.<br>
|
||||||
|
I'm located in the <font color="LEVEL">Hunter Village</font>.<br><br>
|
||||||
|
</body></html>
|
@@ -369,6 +369,7 @@
|
|||||||
<set name="is_private_storeable" val="false" />
|
<set name="is_private_storeable" val="false" />
|
||||||
<set name="is_oly_restricted" val="true" />
|
<set name="is_oly_restricted" val="true" />
|
||||||
<set name="default_action" val="START_QUEST" />
|
<set name="default_action" val="START_QUEST" />
|
||||||
|
<set name="handler" val="Book" />
|
||||||
<set name="immediate_effect" val="true" />
|
<set name="immediate_effect" val="true" />
|
||||||
<set name="icon" val="icon.etc_permit_card_i00" />
|
<set name="icon" val="icon.etc_permit_card_i00" />
|
||||||
</item>
|
</item>
|
||||||
|
Reference in New Issue
Block a user