Merged with released L2J-Unity files.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
Adventurer, thank you for all your help last time. Of course, I knew you were in a hurry to find all your clues.<br>
|
||||
However, there's an extremely urgent matter and I was hoping you'd be able to help me again.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10708_StrengthenTheBarrier 33846-02.htm">"What's going on?"</Button>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-02.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
I've told you this before, so you're aware that the population of monsters in the Sea of Spores has exploded. The <font color="LEVEL">monsters are trying to destroy the barrier containing the area</font>.<br>
|
||||
Dangerous things will happen if the barrier collapses.<br>
|
||||
Won't you help me once more?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10708_StrengthenTheBarrier 33846-03.htm">"Sure, sure."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
I'll give you the <font color="LEVEL">Barrier Enforcer Key</font>, so go to the <font color="LEVEL">Barrier Enforcer</font> by the <font color="LEVEL">Sea of Spores</font> and activate it.<br>
|
||||
Monsters may come after you, so be careful.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
Please go to the <font color="LEVEL">Barrier Enforcer</font> by the <font color="LEVEL">Sea of Spores</font> and activate it with the <font color="LEVEL">Barrier Enforcer Key</font> I had given you.<br>
|
||||
Monsters may come after you, so be careful.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
I heard the Barrier Enforcer being activated from far away. Thanks to you, this weight's been lifted off my chest.<br>
|
||||
Now with the Enforcer turned on, we can gradually begin to restore and repair the barrier. Did the monsters try to attack?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10708_StrengthenTheBarrier 33846-06.html">"Yes, but nothing can touch me."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
Great! I must go report to the king that the Barrier Enforcer has been successfully activated.<br><br>
|
||||
I hope we meet again. Farewell.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-07.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33846-07.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Paterson's Disciple Bacon:<br>
|
||||
Now's not the time for you to know. The truth is that I can't tell you until your abilities are up to par.<br>
|
||||
(This quest can only be performed by characters who have completed "The Alphabet of the Giants" and are between Lv. 52 and Lv. 57.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33960-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/33960-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Barrier Enforcer Key:<br>
|
||||
Nothing happens.<br>
|
||||
(You must be between Level 52 and 57 and in the midst of "Strengthen the Barrier".)
|
||||
</body></html>
|
||||
164
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/Q10708_StrengthenTheBarrier.java
vendored
Normal file
164
trunk/dist/game/data/scripts/quests/Q10708_StrengthenTheBarrier/Q10708_StrengthenTheBarrier.java
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package quests.Q10708_StrengthenTheBarrier;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
import quests.Q10399_TheAlphabetOfTheGiants.Q10399_TheAlphabetOfTheGiants;
|
||||
|
||||
/**
|
||||
* Strengthen the Barrier (10708)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10708_StrengthenTheBarrier extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int BACON = 33846;
|
||||
private static final int BARRIER_ENFORCER = 33960;
|
||||
private static final int LAIKEL = 27519;
|
||||
private static final int SEALBREAKER = 27523;
|
||||
// Items
|
||||
private static final int KEY = 39509; // Barrier Enforcer Key
|
||||
private static final int EWB = 947; // Scroll: Enchant Armor (B-grade)
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 52;
|
||||
private static final int MAX_LEVEL = 57;
|
||||
|
||||
public Q10708_StrengthenTheBarrier()
|
||||
{
|
||||
super(10708);
|
||||
addStartNpc(BACON);
|
||||
addTalkId(BACON, BARRIER_ENFORCER);
|
||||
registerQuestItems(KEY);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33846-07.htm");
|
||||
addCondCompletedQuest(Q10399_TheAlphabetOfTheGiants.class.getSimpleName(), "33846-07.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (event.equals("activateKey"))
|
||||
{
|
||||
if ((st != null) && st.isCond(1))
|
||||
{
|
||||
addAttackPlayerDesire(addSpawn(LAIKEL, npc, true, 120000), player);
|
||||
addAttackPlayerDesire(addSpawn(LAIKEL, npc, true, 120000), player);
|
||||
addAttackPlayerDesire(addSpawn(LAIKEL, npc, true, 120000), player);
|
||||
addAttackPlayerDesire(addSpawn(SEALBREAKER, npc, true, 120000), player);
|
||||
addAttackPlayerDesire(addSpawn(SEALBREAKER, npc, true, 120000), player);
|
||||
takeItems(player, KEY, -1);
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "33960-01.html";
|
||||
}
|
||||
}
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33846-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33846-03.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
giveItems(player, KEY, 1);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33846-06.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EWB, 1);
|
||||
giveStoryQuestReward(player, 17);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 635_250, 152);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == BACON)
|
||||
{
|
||||
htmltext = "33846-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (npc.getId() == BACON)
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "33846-04.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "33846-05.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == BACON)
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user