This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<html><body>Jude:<br>
It is rumored that somewhere in the Steel Citadel is a place where very powerful monsters are created. Amazing, isn't it? To think that someone is actually creating monsters...<br>
I must admit that while I'm not particularly interested in what goes on in the Steel Citadel, some of the Evil Weaponry I've seen from there was of really excellent quality. In fact, it would be difficult to find its equal anywhere in Aden. If I could study these weapons and learn how to augment them, I could make a fortune!<br>
Will you get me some of the weapons? I'll pay you handsomely...<br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-03.htm">"I will do it."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Jude:<br>
It is rumored that somewhere in the Steel Citadel is a place where very powerful monsters are created. Amazing, isn't it? To think that someone is actually creating monsters...<br>
I must admit that while I'm not particularly interested in what goes on in the Steel Citadel, some of the Evil Weaponry I've seen from there was of really excellent quality. In fact, it would be difficult to find its equal anywhere in Aden. If I could study these weapons and learn how to augment them, I could make a fortune!<br>
I'd ask for your help, but I don't think you are strong enough to help me.<br>
(Only characters level 78 and above are permitted to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jude:<br>
Bear in mind that what I'm looking for are not run-of-the-mill weapons carried by common monsters within the Steel Citadel. No, I need weapons from the Lesser Evils and Greater Evils that are found in <font color="LEVEL">Monster Foundry</font>. Other Evil Weapons are useless! Understand?<br>
Bring me <font color="LEVEL">200 Evil Weapons</font> and I'll give you the <font color="LEVEL">S80 Grade weapon recipe</font> in exchange. Or I can give you <font color="LEVEL">3 S80 Grade weapon pieces</font> for every <font color="LEVEL">5 Evil Weapons</font> you bring me.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Jude:<br>
Ah, these weapons are exquisite! I see that you brought me 200 weapons, just as you promised. You can exchange these <font color="LEVEL">200 Evil Weapons for the S80 Grade weapon recipe</font>, or if you prefer, I can give you <font color="LEVEL">3 weapon pieces for every 5 Evil Weapons you have</font>.<br>
What is your preference?<br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-06.htm">"I don't want to exchange them now."</a><br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-07.htm">"I want to exchange them for the S80 Grade weapon recipe."</a><br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-09.htm">"I want to exchange them for S80 Grade weapon pieces."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Jude:<br>
Ah! By my count, you have collected less than <font color="LEVEL">200</font> Evil Weapons. You can obtain more from the <font color="LEVEL">Lesser Evils and Greater Evils in the Monster Foundry</font>. Do your best! If you collect <font color="LEVEL">200 Evil Weapons</font>, I will exchange them for the S80 Grade weapon recipe. If you prefer, I can also exchange 5 Evil Weapons for 3 S80 Grade weapon pieces right now.<br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-09.htm">"I want to exchange them for the S80 Grade weapon pieces."</a><br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-06.htm">Collect more Evil Weapons.</a><br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-08.htm">Stop collecting Evil Weapons.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Jude:<br>
You still don't have <font color="LEVEL">5 </font>Evil Weapons. You can obtain more from the <font color="LEVEL">Lesser Evils and Greater Evils in the Monster Foundry</font>. Do your best! If you collect <font color="LEVEL">200 Evil Weapons</font>, I will exchange them for the S80 Grade weapon recipe. If you prefer, I can also exchange 5 Evil Weapons for 3 S80 Grade weapon pieces.<br>
Do you want to continue?<br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-06.htm">Keep collecting Evil Weapons.</a><br>
<a action="bypass -h Quest Q00690_JudesRequest 32356-08.htm">Stop collecting Evil Weapons.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Jude:<br>
Yes, I think you are capable of collecting the weapons. You can obtain the <font color="LEVEL">Evil Weapons from both the Lesser Evils and the Greater Evils in the Monster Foundry</font>. Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jude:<br>
Well! Here it is.<br>
Do you like it? I doubt I will make a profit on this, after all. But your hard work deserves a reward. Here is the S80 Grade weapon recipe. Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jude:<br>
You don't have enough Evil Weapons to get the S80 Grade weapon recipe. Bring me <font color="LEVEL">200 Evil Weapons</font> and I will exchange them for the <font color="LEVEL">S80 Grade weapon recipe</font>.<br>
Keep at it!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Jude:<br>
Ready to quit? Well, come back any time if you change your mind. You can always find me here, you know!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jude:<br>
Well! Here you are.<br>
And here are the S80 Grade weapon pieces as promised. Take them! If you collect more Evil Weapons, I'll be happy to provide you with the S80 Grade weapon recipe.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jude:<br>
You don't have enough Evil Weapons to get the S80 Grade weapon pieces I promised you. Bring me <font color="LEVEL">5 Evil Weapons</font> and I will give you <font color="LEVEL">3 S80 Grade weapon pieces</font>.<br>
Get back to work!
</body></html>

View File

@@ -0,0 +1,199 @@
/*
* 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.Q00690_JudesRequest;
import com.l2jserver.Config;
import com.l2jserver.gameserver.enums.QuestSound;
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;
/**
* Jude's Request (690)
* @author malyelfik
*/
public class Q00690_JudesRequest extends Quest
{
// NPCs
private static final int JUDE = 32356;
private static final int LESSER_EVIL = 22398;
private static final int GREATER_EVIL = 22399;
// Items
private static final int EVIL_WEAPON = 10327;
private static final int[][] REWARDS =
{
{
10373,
10374,
10375,
10376,
10377,
10378,
10379,
10380,
10381
},
{
10397,
10398,
10399,
10400,
10401,
10402,
10403,
10404,
10405
}
};
public Q00690_JudesRequest()
{
super(690, Q00690_JudesRequest.class.getSimpleName(), "Jude's Request");
addStartNpc(JUDE);
addTalkId(JUDE);
addKillId(LESSER_EVIL, GREATER_EVIL);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
if (event.equalsIgnoreCase("32356-03.htm"))
{
st.startQuest();
}
else if (event.equalsIgnoreCase("32356-07.htm"))
{
if (st.getQuestItemsCount(EVIL_WEAPON) >= 200)
{
st.giveItems(REWARDS[0][getRandom(REWARDS[0].length)], 1);
st.takeItems(EVIL_WEAPON, 200);
st.playSound(QuestSound.ITEMSOUND_QUEST_MIDDLE);
htmltext = "32356-07.htm";
}
else
{
htmltext = "32356-07a.htm";
}
}
else if (event.equalsIgnoreCase("32356-08.htm"))
{
st.takeItems(EVIL_WEAPON, -1);
st.exitQuest(true, true);
}
else if (event.equalsIgnoreCase("32356-09.htm"))
{
if (st.getQuestItemsCount(EVIL_WEAPON) >= 5)
{
st.giveItems(REWARDS[1][getRandom(REWARDS[1].length)], 1);
st.takeItems(EVIL_WEAPON, 5);
st.playSound(QuestSound.ITEMSOUND_QUEST_MIDDLE);
htmltext = "32356-09.htm";
}
else
{
htmltext = "32356-09a.htm";
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
L2PcInstance partyMember = getRandomPartyMember(player, 1);
if (partyMember == null)
{
return null;
}
final QuestState st = getQuestState(partyMember, false);
final int npcId = npc.getId();
int chance = 0;
if (npcId == LESSER_EVIL)
{
chance = 173;
}
else if (npcId == GREATER_EVIL)
{
chance = 246;
}
// Apply the quest drop rate:
chance *= Config.RATE_QUEST_DROP;
// Normalize
chance %= 1000;
if (getRandom(1000) <= chance)
{
st.giveItems(EVIL_WEAPON, Math.max(chance / 1000, 1));
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
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 (st.getState())
{
case State.CREATED:
if (player.getLevel() >= 78)
{
htmltext = "32356-01.htm";
}
else
{
htmltext = "32356-02.htm";
}
break;
case State.STARTED:
if (st.getQuestItemsCount(EVIL_WEAPON) >= 200)
{
htmltext = "32356-04.htm";
}
else if (st.getQuestItemsCount(EVIL_WEAPON) < 5)
{
htmltext = "32356-05a.htm";
}
else
{
htmltext = "32356-05.htm";
}
break;
}
return htmltext;
}
}