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,5 @@
<html><body>Trader Galladucci:<br>
The map traces some very important merchandise! To think it would end up there! Thank you! Did you find it?<br>
What? Pet Manager Cooper? Well, OK... Can you take him a message for me?<br>
<a action="bypass -h Quest Q00043_HelpTheSister 30097-02.html">"Sure, no problem!"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Galladucci:<br>
Ask him to come back when I have more money. I'll treat him! Let's see... Next Tera's period would be good for me! I think I'll have some time around then!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Trader Galladucci:<br>
Aren't you going to deliver my message to Cooper? Didn't you see the fragment of a Map here?<br>
Now I have no reason to call out Cooper, do I? If you find the Map around here, please bring it to me.<br>
Hmm, my memory isn't fading, is it?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Galladucci:<br>
Did you deliver my message to Cooper? It is the cycle of Tera!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Pet Manager Cooper:<br>
This stuff makes me crazy!<br>
What? Oh, sorry! I was thinking of something else... Do you have any extra Adena?<br>
<a action="bypass -h Quest Q00043_HelpTheSister 30829-01.htm">"Straight to the point, eh?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pet Manager Cooper:<br>
You don't seem like the type that would have much extra Adena... Come back when you've gotten some!<br>
(This quest may only be undertaken by characters of level 26 or above.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
If you can, please bring me a <font color="LEVEL">Crafted Dagger</font>. I need one badly! They sell them at the store nearby, but I don't have enough Adena!
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Pet Manager Cooper:<br>
Oh, wonderful! You've arrived!<br>
Frankly, even though I often say that I want to move away, it's hard to leave the big city. However, one must have a lot of Adena to live in this territory right now!<br>
I was saving up a little every day, but when I returned home one day, I found that my sister had disappeared! She left a note saying that she was going out into the world to find fame and fortune for both of us.<br>
As her older brother, I could never provide her with all the things she has wanted. Recently, I've heard that her name is on a list of graduates from Talking Island.<br>
I must see her, and give her a sword as a gift. It's the least I can do. I hate to ask you this so suddenly, but...<br>
Can you help me?<br>
<a action="bypass -h Quest Q00043_HelpTheSister 30829-03.html">"What do you want me to do?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
Please bring me a Crafted Dagger. I really need one.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pet Manager Cooper:<br>
I could just send a sword to my sister, but I'm worried about her. I'm afraid she's in great danger on the road to Giran! Hunt <font color="LEVEL">Specters and Sorrow Maidens on the Execution Grounds</font>. Please kill at least 30.<br>
Last night I dreamed that specters and sorrow maidens were chasing my sister. The more you kill, the better her chances are!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
Please catch the ghosts in the Execution Ground! I cannot sleep like this, because I feel insecure.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Pet Manager Cooper:<br>
Good job with those monsters in the Execution Ground! You got at least 30 of them, right?<br>
What's that? A piece of a map? Hmm... Let me try something...?<br>
<a action="bypass -h Quest Q00043_HelpTheSister 30829-06.html">"Here it is."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
The two pieces create a Strange Map. I remember that the <font color="LEVEL">famous Galladucci</font> said that he was waiting for an important Map to be delivered, and it was running late. Is this it?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
Where is the piece of Map?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Pet Manager Cooper:<br>
Please take the Map to Galladucci at the Boutique Shop.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Pet Manager Cooper:<br>
Is it the one he was looking for? Good.<br>
Thank you so much!<br>
<a action="bypass -h Quest Q00043_HelpTheSister 30829-09.html">"Don't mention it!"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Pet Manager Cooper:<br>
All I asked was for you to make the path safer for my sister... And you've actually brought the Map!<br>
Mr. Galladucci was very pleased! You shall be well-rewarded for this, my friend.<br>
This is the most valuable thing I own. It was originally reserved for those of the upper class... But this one is yours!<br>
<font color="LEVEL">It's a coupon you can exchange for a pet. </font>It won't be easy to raise. You must be very careful!
</body></html>

View File

@@ -0,0 +1,193 @@
/*
* 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.Q00043_HelpTheSister;
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;
/**
* Help The Sister! (43)<br>
* Original Jython script by zerghase.
* @author malyelfik
*/
public class Q00043_HelpTheSister extends Quest
{
// NPCs
private static final int COOPER = 30829;
private static final int GALLADUCCI = 30097;
// Monsters
private static final int SPECTER = 20171;
private static final int SORROW_MAIDEN = 20197;
// Items
private static final int CRAFTED_DAGGER = 220;
private static final int MAP_PIECE = 7550;
private static final int MAP = 7551;
private static final int PET_TICKET = 7584;
public Q00043_HelpTheSister()
{
super(43, Q00043_HelpTheSister.class.getSimpleName(), "Help The Sister!");
addStartNpc(COOPER);
addTalkId(COOPER, GALLADUCCI);
addKillId(SORROW_MAIDEN, SPECTER);
registerQuestItems(MAP, MAP_PIECE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
switch (event)
{
case "30829-01.htm":
st.startQuest();
break;
case "30829-03.html":
if (st.hasQuestItems(CRAFTED_DAGGER))
{
st.takeItems(CRAFTED_DAGGER, 1);
st.setCond(2, true);
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
case "30829-06.html":
if (st.getQuestItemsCount(MAP_PIECE) == 30)
{
st.takeItems(MAP_PIECE, -1);
st.giveItems(MAP, 1);
st.setCond(4, true);
}
else
{
htmltext = "30829-06a.html";
}
break;
case "30097-02.html":
if (st.hasQuestItems(MAP))
{
st.takeItems(MAP, -1);
st.setCond(5, true);
}
else
{
htmltext = "30097-02a.html";
}
break;
case "30829-09.html":
st.giveItems(PET_TICKET, 1);
st.exitQuest(false, true);
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(2))
{
st.giveItems(MAP_PIECE, 1);
if (st.getQuestItemsCount(MAP_PIECE) == 30)
{
st.setCond(3, true);
}
else
{
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, player, isSummon);
}
@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 COOPER:
switch (st.getState())
{
case State.CREATED:
htmltext = (player.getLevel() >= 26) ? "30829-00.htm" : "30829-00a.html";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = (st.hasQuestItems(CRAFTED_DAGGER)) ? "30829-02.html" : "30829-02a.html";
break;
case 2:
htmltext = "30829-04.html";
break;
case 3:
htmltext = "30829-05.html";
break;
case 4:
htmltext = "30829-07.html";
break;
case 5:
htmltext = "30829-08.html";
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
break;
case GALLADUCCI:
if (st.isStarted())
{
switch (st.getCond())
{
case 4:
htmltext = "30097-01.html";
break;
case 5:
htmltext = "30097-03.html";
break;
}
}
break;
}
return htmltext;
}
}