This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-00.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Haven't you heard of this place? It's too dangerous, just remain here... curious from a distance.<br>
|
||||
(Only characters level 82 or above who have completed quest The Other Side of Truth may take on this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Everything we needed was in the report and tablet piece you gave us.<br>
|
||||
If you ever need a good reference, look no further!<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-02.htm">Ask about that information.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-02.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Hm... it looks like we could use you to look deeper into this.<br>
|
||||
The data you brought proved very valuable. We need to know without any doubt that we can trust you. The survival of the Jinia guild depends on nothing less.<br>
|
||||
I can tell when someone is lying to me... Look me in the eye and say you will not betray us.<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-03.htm">"I swear I will not betray you!"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-03.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Thank you for humoring me. This matter is urgent, I'll continue. Unfortunately, Kier and the other guild members cannot be saved. They are forever cursed as ice sculptures. However, we can now honor their sacrifice by using the information they died for.<br>
|
||||
It seems they found <font color="LEVEL">a way to defeat Ice Queen Freya</font>!<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-04.htm">Continue listening.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-04.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-04.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Then, allow me to continue. We have not found a way to save our guild members or Kier. For now they seem doomed to remain ice sculptures. But the information they died for is very valuable.<br>
|
||||
They discovered <font color="LEVEL">how to defeat Ice Queen Freya</font>! And for that, their deaths were not in vain!<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-05.htm">Continue listening.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-05.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Rafforty:<br>
|
||||
No, 'defeat' is the wrong word. That is, it might better be described as 'sealing' her. That's why Kier was turned into ice! HE found a way to seal Freya away for good!<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-06.htm">Ask what that secret is.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-06.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-06.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Rafforty:<br>
|
||||
According to Kier's ancient code, the only weapon that can be used against Freya is the <font color="LEVEL">Divine Sword</font>. Unfortunately, no one knows what it is or where it might be.<br>
|
||||
Can you go to Kier's ice sculpture once more and look for something that might resemble a Divine Sword? We can't think of anywhere else a clue might be.<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32020-07.htm">Say you will.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-07.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-07.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Rafforty:<br>
|
||||
I'm sorry that I don't have all the answers. No plan is ever perfect. If the Divine Sword is not there, there at least may be a clue that can lead us to it.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-08.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-08.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Rafforty:<br>
|
||||
According to Kier's code, the <font color="LEVEL">Divine Sword</font> is a weapon capable of sealing away Freya. As such, our new objective is to go to Kier's ice sculpture and look for some clue as to where the Divine Sword is.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-09.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32020-09.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Rafforty:<br>
|
||||
I'm happy for your safe return. Think about getting some leisure time before your next mission, I personally like the hot springs.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32022-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32022-01.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body><br>
|
||||
(Hm. I looked for the Divine Sword around Kier as Rafforty said, but it doesn't seem to be here.<br>
|
||||
Wait, what's that behind me?)<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant spawn">Look around.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32022-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32022-02.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
(You'd better talk to the woman who showed up and stop looking around the ice sculptures.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-01.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Jinia:<br>
|
||||
Who are you? What are you doing to Kier? Stay away from him, he's done nothing to deserve this disrespect.<br>
|
||||
<a action="bypass -h npc_%objectId%_Quest Q10283_RequestOfIceMerchant">"I apologize. You have nothing to fear."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-02.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Jinia:<br>
|
||||
Well, who are you? Identify yourself or away with you.<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32760-03.html">"Rafforty sent me here"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-03.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Jinia:<br>
|
||||
Talk is cheap. Why am I to believe you? Give me a reason not to run you through right now for meddling with Kier.<br>
|
||||
<a action="bypass -h Quest Q10283_RequestOfIceMerchant 32760-04.html">"I'm telling the truth. Rafforty sent me to look for clues about the Divine Sword."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-04.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Jinia:<br>
|
||||
Ah, well, why didn't you say so to begin with? That information is known only to a select few amongst my Guild. I apologize for threatening you earlier, I have a lot on my mind just now.<br>
|
||||
I will tell you though, you search Kier in vain. The Divine Sword is not here. You should go back to Rafforty and we can catch up there.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/32760-10.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Jinia:<br>
|
||||
Who are you?<br>
|
||||
<a action="bypass -h npc_%objectId%_Quest">Rafforty send me</a>
|
||||
</body></html>
|
172
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/Q10283_RequestOfIceMerchant.java
vendored
Normal file
172
trunk/dist/game/data/scripts/quests/Q10283_RequestOfIceMerchant/Q10283_RequestOfIceMerchant.java
vendored
Normal file
@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.Q10283_RequestOfIceMerchant;
|
||||
|
||||
import quests.Q00115_TheOtherSideOfTruth.Q00115_TheOtherSideOfTruth;
|
||||
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Request of Ice Merchant (10283)
|
||||
* @author Gnacik
|
||||
* @version 2013-02-07 Updated to High Five
|
||||
*/
|
||||
public class Q10283_RequestOfIceMerchant extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int RAFFORTY = 32020;
|
||||
private static final int KIER = 32022;
|
||||
private static final int JINIA = 32760;
|
||||
// Location
|
||||
private static final Location MOVE_TO_END = new Location(104457, -107010, -3698, 0);
|
||||
// Misc
|
||||
private boolean _jiniaOnSpawn = false;
|
||||
|
||||
public Q10283_RequestOfIceMerchant()
|
||||
{
|
||||
super(10283, Q10283_RequestOfIceMerchant.class.getSimpleName(), "Request of Ice Merchant");
|
||||
addStartNpc(RAFFORTY);
|
||||
addTalkId(RAFFORTY, KIER, JINIA);
|
||||
addFirstTalkId(JINIA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (npc.getId() == RAFFORTY)
|
||||
{
|
||||
if (event.equalsIgnoreCase("32020-03.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32020-07.htm"))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
else if ((npc.getId() == KIER) && event.equalsIgnoreCase("spawn"))
|
||||
{
|
||||
if (_jiniaOnSpawn)
|
||||
{
|
||||
htmltext = "32022-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
addSpawn(JINIA, 104473, -107549, -3695, 44954, false, 180000);
|
||||
_jiniaOnSpawn = true;
|
||||
startQuestTimer("despawn", 180000, npc, player);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("despawn"))
|
||||
{
|
||||
_jiniaOnSpawn = false;
|
||||
return null;
|
||||
}
|
||||
else if ((npc.getId() == JINIA) && event.equalsIgnoreCase("32760-04.html"))
|
||||
{
|
||||
st.giveAdena(190000, true);
|
||||
st.addExpAndSp(627000, 50300);
|
||||
st.exitQuest(false, true);
|
||||
npc.setRunning();
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MOVE_TO_END);
|
||||
npc.decayMe();
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
if (npc.getInstanceId() > 0)
|
||||
{
|
||||
return "32760-10.html";
|
||||
}
|
||||
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && st.isCond(2))
|
||||
{
|
||||
return "32760-01.html";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case RAFFORTY:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
QuestState _prev = player.getQuestState(Q00115_TheOtherSideOfTruth.class.getSimpleName());
|
||||
htmltext = ((_prev != null) && _prev.isCompleted() && (player.getLevel() >= 82)) ? "32020-01.htm" : "32020-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32020-04.htm";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32020-08.htm";
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "32020-09.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case KIER:
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32022-01.html";
|
||||
}
|
||||
break;
|
||||
case JINIA:
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32760-02.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user