[Classic] Unused items removal, Newbie buffers and more misc changes.

This commit is contained in:
MobiusDev
2015-05-05 10:29:26 +00:00
parent cbdd79b06f
commit a62f969c94
2275 changed files with 2337 additions and 858177 deletions

View File

@@ -0,0 +1,11 @@
<html><body><table width=200>
<tr><td align="center">Echo Crystals </td></tr>
</table><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4410">[Create an Echo Crystal - Theme of Journey]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4409">[Create an Echo Crystal - Theme of Battle]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4408">[Create an Echo Crystal - Theme of Love]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4420">[Create an Echo Crystal - Theme of Solitude]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4421">[Create an Echo Crystal - Theme of Feast]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4419">[Create an Echo Crystal - Theme of Comedy]</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EchoCrystals 4418">[Create an Echo Crystal - Theme of Celebration]</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
What soothing music! Ideal for a traveler such as yourself...<br>
Here is your crystal! Enjoy!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
Hi there! If you want an Echo Crystal, it'll cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
How do you expect me to make a crystal if you don't bring me a score?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
Oh, how noble! It brings to mind thousands of orcs marching bravely off to war...<br>
Your crystal is complete! Enjoy it!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
If you want me to create an Echo Crystal, it'll cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
As you are well aware, I cannot make an Echo Crystal for you if you don't bring me a score!<br>
A fellow once told me that he was able to obtain an old score by talking to a fake alchemist in Oren...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
Oh, how romantic! And melancholy at the same time... Like love, wouldn't you agree? Yes, this definitely has an Elven quality to it... Perhaps I should add a female Elven voice to the crystal?~<br>
It is complete. Enjoy!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
Well, if you want an Echo Crystal it will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
I already told you that I cannot make an Echo Crystal for you if you don't bring me a score!<br>
A fellow once told me that he was able to obtain an old score by talking to a fake alchemist in Oren...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
How sad! It reminds me of the feeling I get when I'm drinking alone on a rainy night... My, oh my, am I blue!<br>
Here is your crystal. Enjoy it!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
If you want an Echo Crystal it'll cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
How do you expect me to make a crystal if you don't bring me a score?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kantabilon:<br>
This music makes me want to get up and dance! I haven't felt this good in years! All it needs is an accordion!<br>
Your crystal is complete. Enjoy it!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
If you want me to create an Echo Crystal it'll cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kantabilon:<br>
How do you expect me to make an Echo Crystal if you don't bring me a score?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Melody Maestro Kantabilon:<br>
This is such a happy tune! I especially like the last part! It reminds me of watching a clown at the circus...<br>
It's done! Enjoy!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Melody Maestro Kantabilon:<br>
Hmm...! Is there a happy occasion in the offing? My, what heartwarming music!<br>
It's done! Enjoy!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Music and travel are my two favorite things! Music makes travel twice as exciting!<br>
Your crystal is finished! Tra la la~!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
I'm trying to make a living here! If you won't pay for the ingredients, who do you think will?<br>
An Echo Crystal will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
How do you expect me to make an Echo Crystal without a score? Unless you want a silent Echo Crystal~!!<br>
Bard Swan has a lovely travel score you might like... Tra la la~ la la~!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Oh, my! What a bellicose theme! I feel like marching off to war! Da dum da dum dum~!<br>
La la~! Your crystal is finished~! Tra la la~ la la~!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
I'm trying to make a living here! If you won't pay for the ingredients, who do you think will?<br>
An Echo Crystal will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Octavia:<br>
How can I make an Echo Crystal without a score~? Unless you want me to make a silent Echo Crystal~!!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
What is the taste of love? Is it sweet like honey or bitter like black beer? I'll bet it tastes like a Dion potato! Yum!<br>
Your crystal is finished! I hope you enjoy it!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
I'm trying to make a living here! If you won't pay for the ingredients, do you expect me to?<br>
An Echo Crystal will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Octavia:<br>
How do you expect me to make an Echo Crystal without a score? Unless you want a silent Echo Crystal~!!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Oh, the lonely moon! My aching heart! This isn't my style at all!~<br>
Your crystal is finished!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
I'm trying to make a living here! If you won't pay for the ingredients, do you expect me to?<br>
An Echo Crystal will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
How do you expect me to make an Echo Crystal without a score? Unless you a silent Echo Crystal!!<br>
A fellow once told me that an excellent theme of solitude can be obtained from Musician Nanarin. He has quite a fondness for beards. Tra la la la la!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Shake that booty! Yeah, baby! Go! Dance, you slug! You self-centered buffoon! Shake your body! Feel the beat!<br>
Your crystal is finished!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
I'm trying to make a living here! If you won't pay for the ingredients, who do you think will?<br>
An Echo Crystal will cost you 200 adena.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
How do you expect me to make an Echo Crystal without a score? Unless you want a silent Echo Crystal!!<br>
Barbado has a lovely score with a theme of feast!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Come out and play with me! Forget your troubles! Come on! Get happy!<br>
It's finished! This is really my kind of music!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Octavia:<br>
Ah, what a touching melody! Such heart-felt sentiments. And just think, it was made especially for you!<br>
Enjoy!
</body></html>

View File

@@ -0,0 +1,153 @@
/*
* Copyright (C) 2004-2015 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 custom.EchoCrystals;
import java.util.HashMap;
import java.util.Map;
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.util.Util;
/**
* Echo Crystals AI.
* @author Plim
*/
public final class EchoCrystals extends Quest
{
private final static int[] NPCs =
{
31042,
31043
};
private static final int ADENA = 57;
private static final int COST = 200;
private static final Map<Integer, ScoreData> SCORES = new HashMap<>();
private class ScoreData
{
private final int crystalId;
private final String okMsg;
private final String noAdenaMsg;
private final String noScoreMsg;
public ScoreData(int crystalId, String okMsg, String noAdenaMsg, String noScoreMsg)
{
super();
this.crystalId = crystalId;
this.okMsg = okMsg;
this.noAdenaMsg = noAdenaMsg;
this.noScoreMsg = noScoreMsg;
}
public int getCrystalId()
{
return crystalId;
}
public String getOkMsg()
{
return okMsg;
}
public String getNoAdenaMsg()
{
return noAdenaMsg;
}
public String getNoScoreMsg()
{
return noScoreMsg;
}
}
private EchoCrystals()
{
super(-1, EchoCrystals.class.getSimpleName(), "custom");
// Initialize Map
SCORES.put(4410, new ScoreData(4411, "01", "02", "03"));
SCORES.put(4409, new ScoreData(4412, "04", "05", "06"));
SCORES.put(4408, new ScoreData(4413, "07", "08", "09"));
SCORES.put(4420, new ScoreData(4414, "10", "11", "12"));
SCORES.put(4421, new ScoreData(4415, "13", "14", "15"));
SCORES.put(4419, new ScoreData(4417, "16", "05", "06"));
SCORES.put(4418, new ScoreData(4416, "17", "05", "06"));
for (int npc : NPCs)
{
addStartNpc(npc);
addTalkId(npc);
}
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = "";
QuestState st = player.getQuestState(EchoCrystals.class.getSimpleName());
if ((st != null) && Util.isDigit(event))
{
int score = Integer.parseInt(event);
if (SCORES.containsKey(score))
{
int crystal = SCORES.get(score).getCrystalId();
String ok = SCORES.get(score).getOkMsg();
String noadena = SCORES.get(score).getNoAdenaMsg();
String noscore = SCORES.get(score).getNoScoreMsg();
if (!hasQuestItems(player, score))
{
htmltext = npc.getId() + "-" + noscore + ".htm";
}
else if (getQuestItemsCount(player, ADENA) < COST)
{
htmltext = npc.getId() + "-" + noadena + ".htm";
}
else
{
takeItems(player, ADENA, COST);
giveItems(player, crystal, 1);
htmltext = npc.getId() + "-" + ok + ".htm";
}
}
}
else
{
return htmltext;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
return "1.htm";
}
public static void main(String[] args)
{
new EchoCrystals();
}
}