Partial sync with L2jServer HighFive Nov 6th 2015.

This commit is contained in:
MobiusDev
2015-11-07 01:14:51 +00:00
parent 4964c24da9
commit 57dcdb065d
107 changed files with 1331 additions and 266 deletions

View File

@ -45,11 +45,6 @@ HpRegenMultiplier = 100
MpRegenMultiplier = 100
CpRegenMultiplier = 100
# Decrease CP by 10 every normal hit a player do
# Default: False
AltGameTiredness = False
# ---------------------------------------------------------------------------
# Skills & Effects
# ---------------------------------------------------------------------------

View File

@ -1,2 +1,3 @@
<html><body>Corpse of Fritz:<br>
There is nothing inside.</body></html>
Nothing is there.
</body></html>

View File

@ -1,5 +1,4 @@
<html><body>Corpse of Fritz:<br>
Dwarven corpse. Is carrying a large bag.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Open bag.</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest.</Button>
An unfamiliar Dwarf has collapsed. He appears to have died of a bad injury.<br>
Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest.</Button>
</body></html>

View File

@ -1,2 +1,3 @@
<html><body>Corpse of Lutz:<br>
There is nothing inside.</body></html>
It is empty.
</body></html>

View File

@ -1,5 +1,4 @@
<html><body>Corpse of Lutz:<br>
Dwarven corpse. Is carrying a large bag.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Open bag.</Button>
The corpse of a Dwarf, apparently the victim of a grievous injury.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Corpse of Kurtz:<br>
There is nothing inside.<br>
There is nothing there.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Corpse of Kurtz:<br>
Dwarven corpse. Is carrying a large bag.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Open bag.</Button>
A dead Dwarf, apparently the victim of grievous injury.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Imperial Coffer:<br><br>
Large box in which an exquisite decorative pattern is carved. It is fastened with six locks.<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest">Open coffer.</Button>
<html><body>Imperial Coffer:<br>
A large wooden box, carved with an exquisite decorative pattern.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -204,8 +204,8 @@ public class AdminFightCalculator implements IAdminCommandHandler
double dmg2 = 0;
// ATTACK speed in milliseconds
int sAtk1 = npc1.calculateTimeBetweenAttacks(npc2, null);
int sAtk2 = npc2.calculateTimeBetweenAttacks(npc1, null);
int sAtk1 = npc1.calculateTimeBetweenAttacks();
int sAtk2 = npc2.calculateTimeBetweenAttacks();
// number of ATTACK per 100 seconds
sAtk1 = 100000 / sAtk1;
sAtk2 = 100000 / sAtk2;

View File

@ -0,0 +1,3 @@
<html><body>Head Blacksmith Kusto:<br>
I've heard about your clan... you are the Clan in high spirits, no? I heard that you were headed towards Death Pass...? I'll be counting on you. Please find my brother. He received the title of honorable Bounty Hunter... These days he hangs out with a bad crowd called the <font color="LEVEL">Magpie's Brothers</font>. People say they were hired by a human aristocrat to find something in Death Pass... There is something very fishy about them....
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Head Blacksmith Kusto:<br>
I have heard many impressive tales of your clan... I would be greatly honored to meet the lord of your clan.
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Head Blacksmith Kusto:<br>
A magpie brooch...? Does this mean...?! How could he...!<br>
Sob! It's from the Magpie Brothers! He fell in with those ruffians and see where it got him... He sullied the reputations of honorable Bounty Hunters everywhere... How dreadful!<br>
Even though he has disgraced himself, I cannot deny our blood connection. Thank you for discovering the fate of my brother. As a token of appreciation from myself and the Black Anvil Guild, please take these <font color="LEVEL">coins</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30512-03.html">"Tell me more about the Magpie Brothers."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Head Blacksmith Kusto:<br>
They don't respect their ancestors. They are bounty hunters who dig up graves and rummage through relics to collect anything that's valuable. They were named the Magpie's Brothers because of their greed. They even hoarded relics from the Dwarf Kingdom found in the ancient labyrinth in Schuttgart and sold them to collectors at high prices! They have no shame! The Magpie's Brothers were eventually banished from the Dwarf Kingdom, and rumor has it that they since sneaked into the Kingdom of Aden and have been stealing relics from the Elmore-Aden national cemetery... Recently, I heard that they are working on collecting eggs in Death Pass, and are cooperating with some human aristocrat....
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Head Blacksmith Kusto:<br>
I will never forget your kindness in bringing me the news of my poor brother. I hope that the guild can help you someday.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30512-03.html">"Tell me about the Magpie Brothers."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Martien:<br>
Sir Gustav professed much faith in your clan. I must speak to your leader!
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Martien:<br>
I have already given it to Athebaldt. Antharas is preparing to awaken The Land Dragon. Many people dismiss it as mere rumor, but according to Athebaldt's report, it's starting, and starting soon. At that time, the wyrms and drakes inhabiting Death Pass shall follow Antharas, like soldiers being led onto the battlefield, and they will lay waste to this region.<br>
In order for Giran to survive, we must prepare. We can't suppress him, and using normal methods to fight Antharas is pointless. We must find a way to stand against Antharas's monsters. We have come up with a plan... Thankfully, Athebaldt must have heard somehow, and he chose to support us.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30645-03.html">"How exactly?"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Martien:<br>
We are collecting the eggs of wyrms and drakes in order to learn about their breeding habits. One expert in this field is thinking of studying these eggs at the suggestion of numerous pet managers. In order to collect the eggs, several dwarven bounty hunters were dispatched to <font color="LEVEL">Death Pass</font>, but it has been over a week since their departure, and they have not yet returned. Perhaps it was too much for them? I would like for you to go to Death Pass and collect the eggs. Please obtain 10 each of the <font color="LEVEL">Sandworm Eggs, Drake Eggs, Blitz Wyrm Eggs, and Mist Drake Eggs</font>. The Blitz Wyrms and Mist Drakes are very rare, so you may have difficulty finding them. Also, if you run into the dwarves who were dispatched earlier, you may receive some clues. Good luck!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Martien:<br>
The land dragon will soon be awake. This will decide the fate of Giran... no, the entire kingdom itself. Hurry to <font color="LEVEL">Death Pass</font>, and obtain <font color="LEVEL">Sandworm Eggs, Drake Eggs, Blitz Wyrm Eggs, and Mist Drake Eggs</font>. One or two won't do 0 I need <font color="LEVEL">10 of each</font>. I know it will be difficult, but please do this for me.<br>
Oh! One more thing - the Blitz Wyrm and the Mist Drake are quite rare, so you will have more difficulty finding them. And if you run into the dwarves who were dispatched earlier, you may receive some clues. Good luck.
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Martien:<br>
All dead?...Oh, my!<br>
How dreadful! Oh, well, what can be done? I mean, frankly, they were grave robbers and made their living smuggling stolen relics... It is a dangerous life which always seems to end prematurely.<br>
Anyway, good job! I'll take all the eggs that you've brought. Now you should report back to Athebaldt.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30645-06.html">"What about the dead Dwarves' belongings?"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Martien:<br>
Hmm, I wouldn't know. They had rather unsavory reputations, even for Dwarves... Just put them out of your mind.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Martien:<br>
Thank you again for all of your help. I have reported to Athebaldt what a big help you've been. Go and see him. He is expecting you.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Martien:<br>
Athebaldt has a very high opinion of your clan. His influence will be a big factor in your success.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Athrea:<br>
Take heed, my ambitious friend! The path of a king is often ravaged by war and death!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Kalis:<br>
You who will walk the path of a king, listen carefully! Ambition and power will guide your fate!
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Sir Gustav Athebaldt:<br>
The power of the royals has been eroding for years now. Just look at the peasants' uprising in Dion a few years ago; past generations wouldn't have dared dream of such things, and yet... here we are. The uprising planted seeds, see, and now a number of groups are preparing to claim power from the throne.<br>
Our kingdom needs young, energetic lords like you to lead it into the future, but you're not yet ready yet.<br>
Once your clan distinguishes itself further, I will join forces with you and lend you my support.<br>
(Only a level 4 clan leader can undertake this quest.)
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Sir Gustav Athebaldt:<br>
The power of the royals has been eroding for years now. Just look at the peasants' uprising in Dion a few years ago; past generations wouldn't have dared dream of such things, and yet... here we are. The uprising planted seeds, see, and now a number of groups are preparing to claim power from the throne.<br>
Our kingdom needs young, energetic lords like you to lead it into the future, but you're not yet ready yet.<br>
Once your clan distinguishes itself further, I will join forces with you and lend you my support, even if you already have more than enough allies.<br>
(Only a level 4 clan leader can undertake this quest.)
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
Finally, the Seal of Aspiration! Good work! Now you must take it to one of the grand masters. Show it to them and they will instruct you on how to strengthen your clan.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
The power of the royals has been eroding for years now. Just look at the peasants' uprising in Dion a few years ago; past generations wouldn't have dared dream of such things, and yet... here we are. The uprising planted seeds, see, and now a number of groups are preparing to claim power from the throne.<br>
Our kingdom needs young, energetic lords like you to lead it into the future. If you would accept my aid, I would gladly give it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-05.html">"Then we will join our forces together."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
The power of the royals has been eroding for years now. Just look at the peasants' uprising in Dion a few years ago; past generations wouldn't have dared dream of such things, and yet... here we are. The uprising planted seeds, see, and now a number of groups are preparing to claim power from the throne.<br>
Our kingdom needs young, energetic lords like you to lead it into the future.<br>
(Only a level 4 clan leader can undertake this quest.)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
Yes, I agree. But first I must ask you a question: why do you wish to seek your clan? As clan leader, what is it that you truly desire? Answer truly.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-06.html">"I want to make our lands safe for future generations."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-07.html">"I want to have my remembered for all time."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
Ha... you remind me of myself when I was young. But this world is not so easily conquered my friend....<br>
I believe that you have what it takes to be a capable leader, and I'm sure things will work out for the best. Now though... now you must help me prepare for my mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-08.html">"I'll do all I can, sir."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
Then you must never show your true feelings; a leader with as many followers as you must keep their private opinions to themselves. You have shown much potential, so now I will tell you how you can help me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-08.html">"Thank you for your trust."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
Right now, Giran is very unhapppy because of the Land Dragon Antharas. It's understandable because rumor has it Antharas is awake again. The ones in power in Giran, the nobles and merchants, are discussing ridiculous solutions about hiring mercenaries and such. The fools.... You know, a swarm of drakes and wyrms may emerge from Death Pass soon, so I can't just wait 'til those useless nobles come up with a half-baked solution.<br>
I'm starting a business in Giran to find a solution; here's something you might interested in. First, go to <font color="LEVEL">Giran Castle Town</font>, and meet with <font color="LEVEL">Martien</font>. He's taking care of business me. He's someone I trust, so cooperate with him. May god bless you and your clan.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
You must hurry to <font color="LEVEL">the Town of Giran</font> and meet with <font color="LEVEL">Martien</font>. Do whatever he says, and go prepared!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
How are things going with Martien? I have his report right here, and by the sounds of it you and your clan are doing well. Just never forget the responsibilities you shoulder now, towards the whole of Aden.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
I have just received Martien's report. I have given compensation to the families of the dead Dwarves, but it still pains me to see good men in my employ meet their end under my watch. Today is truly a sad day....<br>
At least their suffering was not in vaun: the first part of my plan has been completed. Now we must move on to the next.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-12.html">"What's next?"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
Martien tells me that you have completed the first stage of the plan. Now you and your clan are needed elsewhere. Please have your clan lord come and see me in the next few days.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
History shows us again and again that ultimate power, complete domination comes most often to those with the superior technology. It's because of that that I have long supported the Black Anvil guild. Their mission is to research the ancient technology of the giants, technology which has so far failed to yield any practical applications even when it has such amazing potential.<br>
There is a Dwarf in the guild named <font color="LEVEL">Balthazar</font> in whom I have invested much time and resources. He is an amazing Artisan, and I believe that his efforts will soon bear fruit. However, he has reached an impasse in his work and has requested my help. It has something to do with a new type of golem he is developing.... He will tell you more when you see him. Take this letter and find him in <font color="LEVEL">Hunters Village</font>.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
You must hurry to <font color="LEVEL">Balthazar</font> with the letter I gave you. He can be found in <font color="LEVEL">Hunters Village</font>.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
Although Balthazar is not well-known in Dwarven society, he is an incredibly talented Artisan, and now it seems that his efforts will finally bear fruit. Your clan will be a great help to him; I also expect that the results of his research will be of great use to you....
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
I have heard that your clan has been a great help to Balthazar... thank you.<br>
I hate to bring this up so soon after your return, but the next part of your mission awaits. Are you ready?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-16.html">"What is the next part of the mission?"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
I have heard of the great help that you and your clan have given to Balthazar... thank you.<br>
Now why didn't you bring your clan leader with you? I must meet with him to ask for his help with something.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
Much has transpired since then. Dire warnings of global destruction and chaos are rife throughout the land. A force has been dispatched to deal with Antharas, and evil spirits are wreaking havoc in several parts of the kingdom. Warlords are battling against each other for the privilege of ruling the territories. We haven't much time; we must quickly finish our preparations.<br>
Have you heard of the <font color="LEVEL">Scepter of Judgment</font>? Legend states that whoever holds it becomes invincible in battle. Of course this is complete nonsense, but the problem is that everyone believes it to be true, commoner and soldier alike....<br>
Take this letter to <font color="LEVEL">Sir Eric Rodemai</font> in the <font color="LEVEL">Town of Aden</font>. He and his family are all my faithful servants. He will tell you what you are to do when you see him.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
You must find the <font color="LEVEL">Scepter of Judgment</font> and secure it before it falls into the wrong hands. Go and see <font color="LEVEL">Sir Eric Rodemai</font> in the <font color="LEVEL">Town of Aden</font>. Give him the letter I gave you and he will tell you what to do next.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
I hear that you have met with Sir Rodemai. As you know, you must find the <font color="LEVEL">Scepter of Judgment</font>. If it falls into the hands of our rivals, it will bring chaos and destruction to all that we know.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
Wonderful work! You managed to obtain the <font color="LEVEL">Scepter of Judgment</font>! Now quick... hand it over!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-20.html">"Here, take it."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-21.html">"What do you intend to do with it?"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
Wonderful! You were able to secure the Scepter of Judgement! Where is your clan leader, by the way? I trust he wasn't hurt?
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
Well, our time together has finally come to an end. I pray that one day your clan will become strong enough to establish peace on this continent, but fear that it will take a great many deaths before peace can be established here.<br>
Now I bestow upon your clan the Seal of Aspiration. Since the days of King Rauhel this honor has been given to Aden's most promising young lords who dare to dream great dreams. Present this seal to High Priests and Grand Masters and you'll receive help in strengthening your clan.
</body></html>

View File

@ -0,0 +1,10 @@
<html><body>Sir Gustav Athebaldt:<br>
I see from your face that Sir Rodemai has been talking about me....<br>
Please don't misunderstand my intentions; When King Rauhel was alive, I served him faithfully, and I have been as truthful with you as I thought I could be, but I believe my country needs a strong ruler such as myself....<br>
Ah yes, the mighty Scepter of Judgment! Ha! Even if it has no genuine powers, the reputation it has garnered and the fear it instills in others almost makes it as powerful as the legend. Now with the scepter by my side I can rally my troops and make our enemies tremble! I will become invincible!<br>
And what of you? I must admit, I took advantage of your clan, but didn't you also use me for your own purposes? You will certainly need my help in the future. There may come a day when we will face each other as enemies, but for now, what is it that you need the most?<br>
Perhaps the very thing I have in my hand? The <font color="LEVEL">Seal of Aspiration</font>?<br>
We can each help ourselves by helping each other! A fair trade, no?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-22.html">"No. Not like this."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-23.html">"Very well. Let's trade."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Gustav Athebaldt:<br>
You are an... an idiot! How can you be so short-sighted! What a hypocrite! I certainly judged you wrong!<br>
Even now the Black Legion is coming for this, and you will be powerless to fight back. They will wash over you like the incoming tide, and when they have what they want they will leave, leaving you little more than broken, ruined potential.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
I suppose I misjudged you. We all seek what we think is most important. Here you go. Take the <font color="LEVEL">Seal of Aspiration</font>--it will bring you one step closer to your dream.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Gustav Athebaldt:<br>
An elder knows when to change his mind; a child does not. What were you thinking by refusing me the scepter? You must have known that you couldn't keep it from me--I am destined to possess it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-22.html">"We'll see about that."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30760-23.html">"Fine, take it."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Gustav Athebaldt:<br>
Go and tell your clan leader that he must relinquish the scepter immediately. It is of no use to your clan. If he values his own life and that of his clan he will comply.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Corpse of Fritz:<br>
A dead Dwarf with a large bag.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30761-02.html">Open the bag</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Fritz:<br>
There are three Blitz Wyrm Eggs inside.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Fritz:<br>
There is nothing there.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Corpse of Lutz:<br>
The corpse of a Dwarf with a large bag.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30762-02.html">Open the bag</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Lutz:<br>
There are three Blitz Wyrm Eggs and four Mist Drake Eggs inside.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Lutz:<br>
It is empty.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Corpse of Kurtz:<br>
A seriously injured Dwarf, gasping for his last breath.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30763-02.html">"Hey! Are you OK?"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Kurtz:<br>
Uhhhh... Luh, luh, look here... I was wrong... Woe is me!... What an awful way to die... Eggs of drake... Tuh, tuh, take them to Martien... And, this brooch... Puh, puh, please... take it to muh, my brother Kusto...! Maphr... welcomes... my... soul... Arghhhh...
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Corpse of Kurtz:<br>
The still-warm corpse of a Dwarf.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Balthazar:<br>
Sir Athebaldt has told me that your clan would be helpful in my research. I don't have the time to repeat myself, where is the leader of your fine clan?
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Balthazar:<br>
From what Sir Athebaldt has told me, your clan has decided to aid my research. Is that true? Excellent! Oh, you want to know some details about my studies? Of course; I will gladly tell you, my friend. I am working with my old friend Tajif Goldgather to find a new energy source. If we are successful, we will be able to maximize the efficiency of a number of devices. Exciting, isn't it?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30764-03.html">Ask how to help.</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Balthazar:<br>
Ah! I need more Spiteful Soul energy to complete my research. Go to the Massacre Fields. There you will find the Spiteful Soul Captain, who possesses the energies of several vengeful spirits. It will not be easy to defeat him because he surrounds himself with followers, but I think your party is powerful enough to do so. Defeat the<br>
<font color="LEVEL">Spiteful Soul Captain</font> and obtain the <font color="LEVEL">Spiteful Soul Energy</font> before the souls disappear. If they are destroyed, they are worthless to me... Bring me at least <font color="LEVEL">10</font> and I will be exceedingly grateful.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Balthazar:<br>
From what Sir Athebaldt has told me, your clan has decided to aid my research. Is that true? Excellent! Oh, you want to know some details about my studies? Of course; I will gladly tell you, my friend. My old friend Tajif Goldgather recently found some mysterious documents in the Cruma Tower. To make a long story short, we are researching a potential energy source. If we are successful, we will be able to maximize the efficiency of a number of devices.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30764-05.html">Ask how to help.</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Balthazar:<br>
Ah! I need more Spiteful Soul energy to complete my research. Go to the Massacre Fields. There you will find the Spiteful Soul Captain, who possesses the energies of several vengeful spirits. It will not be easy to defeat him because he surrounds himself with followers, but I think your party is powerful enough to do so. Defeat the<br>
<font color="LEVEL">Spiteful Soul Captain</font> and obtain the <font color="LEVEL">Spiteful Soul Energy</font> before the souls disappear. If they are destroyed, they are worthless to me... Bring me at least <font color="LEVEL">10</font> and I will be exceedingly grateful. Very well, then...wait! <font color="LEVEL">What is that coin? Let me see it!</font><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30764-06.html">Show him the coin.</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Balthazar:<br>
This is a guild coin! You must have helped a member of the Black Anvil Guild... Well, we Dwarves have long memories for those who render us aid. I will give you one item that prove helpful to you in this task. This is a <font color="LEVEL">recipe</font> for converting partial Spiteful Souls into useable energy. If there is a Dwarf in your midst, he will be able to use this on your behalf. Now then, may Maphr bring you a prosperous journey!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Balthazar:<br>
As I already told you, I need <font color="LEVEL">10 Spiteful Soul Energies</font>. After defeating the <font color="LEVEL">Spiteful Soul Captain</font> in the Massacre Fields, collect the energies before his body vanishes. Remember, though -- I need the Spiteful Soul Energies, not the Spiteful Souls themselves!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Balthazar:<br>
Excellent! You have brought all Spiteful Soul Energies I asked for. Shall I take a look? Join me, my friend! Ah...I can feel the power of the souls thrumming like the string of a lyre! If we can tap this source, we will be able to develop an almost unlimited source of energy! Then my name will be sung forever in the halls of my descendants!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Balthazar:<br>
Thanks to you my research is proceeding as scheduled. Soon we shall all see the amazing results! The prototype is almost finished!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Imperial Coffer:<br>
The box is secured with six locks.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30765-02.html">Open coffer</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Imperial Coffer:<br>
This box may only be opened by a clan leader.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Imperial Coffer:<br>
The box is secured with six locks.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30765-04.html">Open coffer</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Imperial Coffer:<br>
You have discovered the Scepter of Judgment.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Imperial Coffer:<br>
The box is secured with six locks.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30765-05a.html">Open coffer</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Imperial Coffer:<br>
It will not open.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Cleo:<br>
I must find the leader of the brothers of blood. They are warriors united by their firm resolve and ambition. I must guide him to a priceless royal symbol of no monetary value...
</body></html>

View File

@ -0,0 +1,4 @@
<html><head>Witch Cleo:<br>
Welcome leader of the resolute and anmitious brothers of blood. I have been expecting you...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30766-03.html">"Tell me about the Scepter of Judgment."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Witch Cleo:<br>
Listen carefully. There is one whose path freely traverses time and space. The holder of 6 keys, the great king of grave lookouts... If he is pierced with a two-pronged spear, he will be brought down, and then his effects shall become yours... Or if you wish, I could tell you another story.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30766-04.html">"Tell me another story."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Cleo:<br>
The path of a king is rife with blood and honor, war and death, ambition and power. Soon you will know all of them well. Such has it always been and such shall it always be. Soon you will be forced to choose whether to stand against the waves of fate or to ride over them...
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Cleo:<br>
I never repeat myself. If you don't understand what I have already explained to you, go and see Sir Eric Rodemai. His family often visits me to listen to the ramblings of a crazy old woman.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Witch Cleo:<br>
Did you hear what I said? Riding the waves of fate or standing against them. Although fate may be cruel regardless of which you choose, you still must make a choice.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Witch Cleo:<br>
The Scepter of Judgment is desperately sought after by many of the military elite... You can trade it for something you would find much more useful. Why have you brought it to me? Can I touch it?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30766-08.html">Show her the Scepter of Judgment</Button>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Witch Cleo:<br>
Ah, the scepter of shunaiman! It's been many years since I laid eyes on it. Its color has completely faded!<br>
Although it is quite ancient it is very fragile. For instance, if I were to drop it while standing on a stone floor...<br>
Clang!! It would break just like that! Ha!<br>
Destruction and chaos! It's what I live for! Stop frowning, it was of no use to you anyway. Why else would you have handed it over so willingly...<br>
Instead, why don't you take this? It was given to me by a young king who had gotten it from the lady of the lake. Take it with you. When next we meet you shall be drenched in blood, and I will be waiting...
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Eric Rodemai:<br>
Gustav Athebaldt told me about you. It's an honor to finally get to work with you. Actually my father Sir Kristof Rodemai often speaks of you. He says that you and your race have embarked on a great mission, and I should watch you carefully and learn. I wish to meet the lord of your clan as soon as possible.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Eric Rodemai:<br>
Gustav Athebaldt told me about you. It's an honor to finally get to work with you. Actually my father Sir Kristof Rodemai often speaks of you. He says that you and your race have embarked on a great mission, and I should watch you carefully and learn. I wish to meet the lord of your clan as soon as possible.<br>
Generations ago my family agreed to work for the Athebaldt family. Now they have ordered us to recover the Scepter of Judgment, a relic of the ancient kingdom. It may actually be just a legend, we have been searching everywhere without success.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30868-03.html">"Tell me more about the scepter of judgement."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Eric Rodemai:<br>
As you may know, it is said that the scepter makes its possessor invincible in battle. Although this is probably just a legend, having it will greatly boost our soldiers' morale. However, we are losing hope of finding it. We hired Dwarven Bounty Hunters to find it and they have had no success either. My father has recommended that I ask the <font color="LEVEL">witches' advice</font> regarding this matter...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30868-04.html">"Tell me more about the witches."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Eric Rodemai:<br>
It is impossible to guess how old these three women are. They typically show up, mumble some incomprehensible incantations and vanish. My father has become obsessed by their remarks. I'm not sure if these witches have been of any help to my family in the past. If it was up to me I wouldn't have anything to do with those blasphemous old women. Would you be willing to visit them on my behalf? It is said that the youngest of the three sisters, <font color="LEVEL">Cleo</font>, can be found east of the village. Cross the bridge and you will find her.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Eric Rodemai:<br>
Please find Cleo and ask her advice on the Scepter of Judgment. East of the village you will find a bridge. Cross it and you will find her.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Eric Rodemai:<br>
An Imperial grave? A grave keeper? Guardian of a key? Traveling freely through time and space? Must be pierced with two-pronged lance? I've got a pretty good idea what they mean...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30868-06a.html">"What do these words mean?"</Button>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Sir Eric Rodemai:<br>
Let me see if I can put them together...<br>
<font color="LEVEL">It is at the National Cemetery...</font><br>
<font color="LEVEL">Once you defeat the grave keeper a key master will show up and give you a key...</font><br>
<font color="LEVEL">When you collect all six keys, you must overpower the imperial grave keeper and find the scepter... </font><br>
<font color="LEVEL">You must take care, as the Imperial grave keeper can move through time and space... This will appear as instantaneous attacks... You must divide your team into two parts to defeat him.</font>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Eric Rodemai:<br>
You have obtained an important clue from the witch regarding the Scepter of Judgment? Now you must go and find it! I must speak with your clan lord regarding this matter. Please bring him to me at once!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Eric Rodemai:<br>
Will it be possible to find the Scepter of Judgment by following the obscure clues of the witches?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30868-06a.html">"What do the clues mean?"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Eric Rodemai:<br>
Ah, at last, the <font color="LEVEL">Scepter of Judgment</font>! It truly does exist! This is a great accomplishment... Sir Gustav Athebaldt sends word that he would like for all of you to bring the scepter to him. However, I must ask you something... Why are you allowing yourselves to be taken advantage of by someone like Sir Gustav Athebaldt? My father has told me a lot about you and that's why I ask. With your skills you can follow your own path.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00503_PursuitOfClanAmbition 30868-10.html">"What do you mean by this?"</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Eric Rodemai:<br>
Sir Gustav Athebaldt is an uncle of King Amadeo Cadmus. He is next in succession to the royal throne. He feigns a disinterest in politics to dispel people's suspicions, while in reality he controls many cliques which are undermining the power of the king. He ulimately plans to seize the throne!<br>
The dragon eggs you have collected will be used to create his own private army of striders. Even now Dwarven Artisans are completing the gigantic siege weapons he will use in the coup.<br>
This is all I will say on the subject. Please go to Sir Gustav Athebaldt.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Sir Eric Rodemai:<br>
Despite his outward appearance Sir Athebaldt is a very crafty man. You must take care that he doesn't take advantage of you.
</body></html>

View File

@ -0,0 +1,845 @@
/*
* 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 quests.Q00503_PursuitOfClanAmbition;
import com.l2jserver.gameserver.enums.ChatType;
import com.l2jserver.gameserver.model.L2Clan;
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.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.NpcSay;
import com.l2jserver.gameserver.util.Util;
/**
* Pursuit Of Clan Ambition (503)
* @author ivantotov, Zoey76
*/
public final class Q00503_PursuitOfClanAmbition extends Quest
{
// NPCs
private static final int HEAD_BLACKSMITH_KUSTO = 30512;
private static final int MARTIEN = 30645;
private static final int WITCH_ATHREA = 30758;
private static final int WITCH_KALIS = 30759;
private static final int SIR_GUSTAV_ATHEBALDT = 30760;
private static final int CORPSE_OF_FRITZ = 30761;
private static final int CORPSE_OF_LUTZ = 30762;
private static final int CORPSE_OF_KURTZ = 30763;
private static final int BALTHAZAR = 30764;
private static final int IMPERIAL_COFFER = 30765;
private static final int WITCH_CLEO = 30766;
private static final int SIR_ERIC_RODEMAI = 30868;
// Items
private static final int MIST_DRAKES_EGG = 3839;
private static final int BLITZ_WYRM_EGG = 3840;
private static final int DRAKES_EGG = 3841;
private static final int THUNDER_WYRM_EGG = 3842;
private static final int BROOCH_OF_THE_MAGPIE = 3843;
private static final int IMPERIAL_KEY = 3847;
private static final int GUSTAVS_1ST_LETTER = 3866;
private static final int GUSTAVS_2ND_LETTER = 3867;
private static final int GUSTAVS_3RD_LETTER = 3868;
private static final int SCEPTER_OF_JUDGMENT = 3869;
private static final int BLACK_ANVIL_COIN = 3871;
private static final int RECIPE_SPITEFUL_SOUL_ENERGY = 14854;
private static final int SPITEFUL_SOUL_ENERGY = 14855;
private static final int SPITEFUL_SOUL_VENGEANCE = 14856;
// Reward
private static final int SEAL_OF_ASPIRATION = 3870;
// Monsters
private static final int DRAKE = 20137;
private static final int DRAKE2 = 20285;
private static final int THUNDER_WYRM = 20243;
private static final int THUNDER_WYRM2 = 20282;
private static final int GRAVE_GUARD = 20668;
private static final int SPITEFUL_SOUL_LEADER = 20974;
// Quest Monster
private static final int GRAVE_KEYMASTER = 27179;
private static final int IMPERIAL_GRAVEKEEPER = 27181;
private static final int BLITZ_WYRM = 27178;
public Q00503_PursuitOfClanAmbition()
{
super(503, Q00503_PursuitOfClanAmbition.class.getSimpleName(), "Pursuit Of Clan Ambition");
addStartNpc(SIR_GUSTAV_ATHEBALDT);
addTalkId(SIR_GUSTAV_ATHEBALDT, HEAD_BLACKSMITH_KUSTO, MARTIEN, WITCH_ATHREA, WITCH_KALIS, CORPSE_OF_FRITZ, CORPSE_OF_LUTZ, CORPSE_OF_KURTZ, BALTHAZAR, IMPERIAL_COFFER, WITCH_CLEO, SIR_ERIC_RODEMAI);
addKillId(DRAKE, DRAKE2, THUNDER_WYRM, THUNDER_WYRM2, GRAVE_GUARD, SPITEFUL_SOUL_LEADER, GRAVE_KEYMASTER, BLITZ_WYRM, IMPERIAL_GRAVEKEEPER);
addSpawnId(WITCH_ATHREA, WITCH_KALIS, IMPERIAL_COFFER, BLITZ_WYRM);
registerQuestItems(MIST_DRAKES_EGG, BLITZ_WYRM_EGG, DRAKES_EGG, THUNDER_WYRM_EGG, BROOCH_OF_THE_MAGPIE, IMPERIAL_KEY, GUSTAVS_1ST_LETTER, GUSTAVS_2ND_LETTER, GUSTAVS_3RD_LETTER, SCEPTER_OF_JUDGMENT, BLACK_ANVIL_COIN, RECIPE_SPITEFUL_SOUL_ENERGY, SPITEFUL_SOUL_ENERGY, SPITEFUL_SOUL_VENGEANCE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if (event.startsWith("DESPAWN"))
{
npc.deleteMe();
return super.onAdvEvent(event, npc, player);
}
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30760-08.html":
{
if (qs.isCreated())
{
giveItems(player, GUSTAVS_1ST_LETTER, 1);
qs.startQuest();
qs.setMemoState(1000);
htmltext = event;
}
break;
}
case "30760-12.html":
{
giveItems(player, GUSTAVS_2ND_LETTER, 1);
qs.setMemoState(4000);
qs.setCond(4);
htmltext = event;
break;
}
case "30760-16.html":
{
giveItems(player, GUSTAVS_3RD_LETTER, 1);
qs.setMemoState(7000);
qs.setCond(7);
htmltext = event;
break;
}
case "30760-20.html":
{
if (hasQuestItems(player, SCEPTER_OF_JUDGMENT))
{
giveItems(player, SEAL_OF_ASPIRATION, 1);
addExpAndSp(player, 0, 250000);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "30760-22.html":
{
qs.setMemoState(10000);
qs.setCond(12);
htmltext = event;
break;
}
case "30760-23.html":
{
if (hasQuestItems(player, SCEPTER_OF_JUDGMENT))
{
giveItems(player, SEAL_OF_ASPIRATION, 1);
addExpAndSp(player, 0, 250000);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "30512-03.html":
{
if (hasQuestItems(player, BROOCH_OF_THE_MAGPIE))
{
takeItems(player, BROOCH_OF_THE_MAGPIE, -1);
giveItems(player, BLACK_ANVIL_COIN, 1);
}
htmltext = event;
break;
}
case "30645-03.html":
{
takeItems(player, GUSTAVS_1ST_LETTER, -1);
qs.setMemoState(2000);
qs.setCond(2, true);
htmltext = event;
break;
}
case "30761-02.html":
{
if (qs.isMemoState(2000) || qs.isMemoState(2011) || qs.isMemoState(2010) || qs.isMemoState(2001))
{
giveItems(player, BLITZ_WYRM_EGG, 3);
qs.setMemoState(qs.getMemoState() + 100);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
startQuestTimer("DESPAWN", 10000, npc, player);
htmltext = event;
}
else if (qs.isMemoState(2100) || qs.isMemoState(2111) || qs.isMemoState(2110) || qs.isMemoState(2101))
{
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
startQuestTimer("DESPAWN", 10000, npc, player);
htmltext = "30761-03.html";
}
break;
}
case "30762-02.html":
{
if (qs.isMemoState(2000) || qs.isMemoState(2101) || qs.isMemoState(2001) || qs.isMemoState(2100))
{
giveItems(player, BLITZ_WYRM_EGG, 3);
giveItems(player, MIST_DRAKES_EGG, 4);
qs.setMemoState(qs.getMemoState() + 10);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
startQuestTimer("DESPAWN", 10000, npc, player);
htmltext = event;
}
else if (qs.isMemoState(2100) || qs.isMemoState(2111) || qs.isMemoState(2011) || qs.isMemoState(2110))
{
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
addAttackPlayerDesire(addSpawn(BLITZ_WYRM, npc, true, 0, false), player);
startQuestTimer("DESPAWN", 10000, npc, player);
htmltext = "30762-03.html";
}
break;
}
case "30763-02.html":
{
if (qs.isMemoState(2000) || qs.isMemoState(2110) || qs.isMemoState(2010) || qs.isMemoState(2100))
{
giveItems(player, BROOCH_OF_THE_MAGPIE, 1);
giveItems(player, MIST_DRAKES_EGG, 6);
qs.setMemoState(qs.getMemoState() + 1);
npc.deleteMe();
htmltext = event;
}
break;
}
case "30764-03.html":
{
takeItems(player, GUSTAVS_2ND_LETTER, -1);
qs.setMemoState(5000);
qs.setCond(5, true);
htmltext = event;
break;
}
case "30764-06.html":
{
takeItems(player, GUSTAVS_2ND_LETTER, -1);
takeItems(player, BLACK_ANVIL_COIN, -1);
giveItems(player, RECIPE_SPITEFUL_SOUL_ENERGY, 1);
qs.setMemoState(5000);
qs.setCond(5, true);
htmltext = event;
break;
}
case "30765-04.html":
{
takeItems(player, IMPERIAL_KEY, -1);
giveItems(player, SCEPTER_OF_JUDGMENT, 1);
qs.setMemoState(8700);
htmltext = event;
break;
}
case "30766-04.html":
{
qs.setMemoState(8100);
qs.setCond(9, true);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BLOOD_AND_HONOR));
startQuestTimer("SPAWN_WITCH", 5000, npc, player);
htmltext = event;
break;
}
case "30766-08.html":
{
if (hasQuestItems(player, SCEPTER_OF_JUDGMENT))
{
giveItems(player, SEAL_OF_ASPIRATION, 1);
addExpAndSp(player, 0, 250000);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "30868-04.html":
{
takeItems(player, GUSTAVS_3RD_LETTER, -1);
qs.setMemoState(8000);
qs.setCond(8, true);
htmltext = event;
break;
}
case "30868-10.html":
{
qs.setMemoState(9000);
qs.setCond(11, true);
htmltext = event;
break;
}
case "30645-06.html":
case "30760-05.html":
case "30760-06.html":
case "30760-07.html":
case "30760-21.html":
case "30764-05.html":
case "30765-02.html":
case "30765-05a.html":
case "30766-03.html":
case "30868-03.html":
case "30868-06a.html":
{
htmltext = event;
break;
}
case "SPAWN_WITCH":
{
addSpawn(WITCH_ATHREA, 160688, 21296, -3714, 0, false, 5000);
addSpawn(WITCH_KALIS, 160690, 21176, -3712, 0, false, 5000);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !qs.isStarted() || !Util.checkIfInRange(1500, npc, killer, true))
{
return super.onKill(npc, killer, isSummon);
}
final L2Clan clan = killer.getClan();
if (clan == null)
{
return super.onKill(npc, killer, isSummon);
}
final L2PcInstance leader = clan.getLeader().getPlayerInstance();
if ((leader == null) || !Util.checkIfInRange(1500, npc, leader, true))
{
return super.onKill(npc, killer, isSummon);
}
final QuestState leaderQS = getQuestState(leader, false);
if (leaderQS == null)
{
return super.onKill(npc, killer, isSummon);
}
switch (npc.getId())
{
case DRAKE:
case DRAKE2:
{
if ((leaderQS.getMemoState() >= 2000) || (leaderQS.getMemoState() < 3000))
{
giveItemRandomly(leader, MIST_DRAKES_EGG, 1, 10, 0.1, true);
giveItemRandomly(leader, DRAKES_EGG, 1, 10, 0.5, true);
}
break;
}
case THUNDER_WYRM:
case THUNDER_WYRM2:
{
if ((leaderQS.getMemoState() >= 2000) || (leaderQS.getMemoState() < 3000))
{
giveItemRandomly(leader, THUNDER_WYRM_EGG, 1, 10, 0.5, true);
}
break;
}
case GRAVE_GUARD:
{
if ((leaderQS.getMemoState() < 8511) || (leaderQS.getMemoState() >= 8500))
{
leaderQS.setMemoState(leaderQS.getMemoState() + 1);
if ((leaderQS.getMemoState() >= 8505) && (getRandom(100) < 50))
{
leaderQS.setMemoState(8500);
addSpawn(GRAVE_KEYMASTER, npc, true, 0, false);
}
else if (leaderQS.getMemoState() >= 8510)
{
leaderQS.setMemoState(8500);
addSpawn(GRAVE_KEYMASTER, npc, true, 0, false);
}
}
break;
}
case SPITEFUL_SOUL_LEADER:
{
if (leaderQS.getMemoState() == 5000)
{
final int rand = getRandom(100);
if (rand < 10)
{
giveItemRandomly(leader, SPITEFUL_SOUL_ENERGY, 1, 10, 1, false);
}
else if (rand < 60)
{
giveItems(leader, SPITEFUL_SOUL_VENGEANCE, 1);
}
}
break;
}
case BLITZ_WYRM:
{
if ((leaderQS.getMemoState() >= 2000) || (leaderQS.getMemoState() < 3000))
{
giveItemRandomly(leader, BLITZ_WYRM_EGG, 1, 10, 1, true);
}
break;
}
case GRAVE_KEYMASTER:
{
if (leaderQS.getMemoState() >= 8500)
{
giveItemRandomly(leader, IMPERIAL_KEY, 1, 6, 1, true);
}
break;
}
case IMPERIAL_GRAVEKEEPER:
{
if ((leaderQS.getMemoState() < 8511) || (leaderQS.getMemoState() >= 8500))
{
addSpawn(IMPERIAL_COFFER, npc, true, 0, false);
}
break;
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
final QuestState lqs = getLeaderQuestState(player, getName());
String htmltext = getNoQuestMsg(player);
if (qs.isCreated() || qs.isCompleted())
{
if (npc.getId() == SIR_GUSTAV_ATHEBALDT)
{
if (lqs != null)
{
if (player.isClanLeader())
{
L2Clan clan = player.getClan();
if (clan != null)
{
if (clan.getLevel() < 4)
{
htmltext = "30760-01.html";
}
else if (clan.getLevel() >= 5)
{
htmltext = "30760-02.html";
}
else if ((clan.getLevel() == 4) && hasQuestItems(player, SEAL_OF_ASPIRATION))
{
htmltext = "30760-03.html";
}
else if ((clan.getLevel() == 4) && !hasQuestItems(player, SEAL_OF_ASPIRATION))
{
htmltext = "30760-04.html";
}
}
}
else
{
htmltext = "30760-04t.html";
}
}
}
}
else if (qs.isStarted())
{
switch (npc.getId())
{
case SIR_GUSTAV_ATHEBALDT:
{
if (lqs != null)
{
if (qs.getMemoState() == 1000)
{
htmltext = "30760-09.html";
}
else if (qs.getMemoState() == 2000)
{
htmltext = "30760-10.html";
}
else if (qs.getMemoState() == 3000)
{
if (!player.isClanLeader())
{
htmltext = "30760-11t.html";
}
else
{
htmltext = "30760-11.html";
}
}
else if (qs.getMemoState() == 4000)
{
htmltext = "30760-13.html";
}
else if (qs.getMemoState() == 5000)
{
htmltext = "30760-14.html";
}
else if (qs.getMemoState() == 6000)
{
if (!player.isClanLeader())
{
htmltext = "30760-15t.html";
}
else
{
htmltext = "30760-15.html";
}
}
else if (qs.getMemoState() == 7000)
{
htmltext = "30760-17.html";
}
else if ((qs.getMemoState() >= 8000) && (qs.getMemoState() < 8700))
{
htmltext = "30760-18.html";
}
else if ((qs.getMemoState() >= 8700) && (qs.getMemoState() < 10000) && player.isClanLeader())
{
htmltext = "30760-19.html";
}
else if ((qs.getMemoState() == 9000) && !player.isClanLeader())
{
htmltext = "30760-19t.html";
}
else if (qs.getMemoState() == 10000)
{
if (!player.isClanLeader())
{
htmltext = "30760-24t.html";
}
else
{
htmltext = "30760-24.html";
}
}
}
break;
}
case HEAD_BLACKSMITH_KUSTO:
{
if ((lqs != null) && !player.isClanLeader())
{
htmltext = "30512-01a.html";
}
else if (!hasAtLeastOneQuestItem(player, BROOCH_OF_THE_MAGPIE, BLACK_ANVIL_COIN))
{
htmltext = "30512-01.html";
}
else if (hasQuestItems(player, BROOCH_OF_THE_MAGPIE))
{
htmltext = "30512-02.html";
}
else if ((lqs != null) && hasQuestItems(player, BLACK_ANVIL_COIN) && !hasQuestItems(player, BROOCH_OF_THE_MAGPIE))
{
htmltext = "30512-04.html";
}
break;
}
case MARTIEN:
{
if (lqs != null)
{
if ((qs.getMemoState() == 1000))
{
if (!player.isClanLeader())
{
htmltext = "30645-01.html";
}
else
{
htmltext = "30645-02.html";
}
}
else if ((qs.getMemoState() < 3000) && (qs.getMemoState() >= 2000))
{
if ((getQuestItemsCount(player, MIST_DRAKES_EGG) < 10) || (getQuestItemsCount(player, BLITZ_WYRM_EGG) < 10) || (getQuestItemsCount(player, THUNDER_WYRM_EGG) < 10) || (getQuestItemsCount(player, DRAKES_EGG) < 10))
{
htmltext = "30645-04.html";
}
else
{
takeItems(player, MIST_DRAKES_EGG, -1);
takeItems(player, BLITZ_WYRM_EGG, -1);
takeItems(player, DRAKES_EGG, -1);
takeItems(player, THUNDER_WYRM_EGG, -1);
qs.setMemoState(3000);
qs.setCond(3, true);
htmltext = "30645-05.html";
}
}
else if ((qs.getMemoState() == 3000))
{
htmltext = "30645-07.html";
}
else if ((qs.getMemoState() > 3000))
{
htmltext = "30645-08.html";
}
}
break;
}
case WITCH_ATHREA:
{
if (lqs != null)
{
htmltext = "30758-01.html";
}
break;
}
case WITCH_KALIS:
{
if (lqs != null)
{
htmltext = "30759-01.html";
}
break;
}
case CORPSE_OF_FRITZ:
{
if ((qs.getMemoState() < 3000) && (qs.getMemoState() >= 2000))
{
htmltext = "30761-01.html";
}
break;
}
case CORPSE_OF_LUTZ:
{
if ((qs.getMemoState() < 3000) && (qs.getMemoState() >= 2000))
{
htmltext = "30762-01.html";
}
break;
}
case CORPSE_OF_KURTZ:
{
if (((qs.getMemoState() < 3000) && (qs.getMemoState() == 2000)) || (qs.getMemoState() == 2110) || (qs.getMemoState() == 2010) || (qs.getMemoState() == 2100))
{
htmltext = "30763-01.html";
}
else if ((qs.getMemoState() == 2001) || (qs.getMemoState() == 2111) || (qs.getMemoState() == 2011) || (qs.getMemoState() == 2101))
{
htmltext = "30763-03.html";
}
break;
}
case BALTHAZAR:
{
if (lqs != null)
{
if ((qs.getMemoState() == 4000))
{
if (!player.isClanLeader())
{
htmltext = "30764-01.html";
}
else if (!hasQuestItems(player, BLACK_ANVIL_COIN) && player.isClanLeader())
{
htmltext = "30764-02.html";
}
else if (hasQuestItems(player, BLACK_ANVIL_COIN))
{
htmltext = "30764-04.html";
}
}
else if ((qs.getMemoState() == 5000))
{
if (getQuestItemsCount(player, SPITEFUL_SOUL_ENERGY) < 10)
{
htmltext = "30764-07a.html";
}
else
{
takeItems(player, SPITEFUL_SOUL_ENERGY, -1);
qs.setMemoState(6000);
qs.setCond(6, true);
htmltext = "30764-08a.html";
}
}
else if ((qs.getMemoState() >= 6000))
{
htmltext = "30764-09.html";
}
}
break;
}
case IMPERIAL_COFFER:
{
if (lqs != null)
{
if ((qs.getMemoState() >= 8500) && (qs.getMemoState() < 8700))
{
if (getQuestItemsCount(player, IMPERIAL_KEY) >= 6)
{
if (!player.isClanLeader())
{
htmltext = "30765-01.html";
}
else
{
htmltext = "30765-03.html";
}
}
}
else if (qs.getMemoState() >= 8700)
{
htmltext = "30765-05.html";
}
}
break;
}
case WITCH_CLEO:
{
if (lqs != null)
{
if (!player.isClanLeader())
{
htmltext = "30766-01.html";
}
else if (qs.getMemoState() == 8000)
{
htmltext = "30766-02.html";
}
else if (qs.getMemoState() == 8100)
{
htmltext = "30766-05.html";
}
else if ((qs.getMemoState() > 8100) && (qs.getMemoState() < 10000))
{
htmltext = "30766-06.html";
}
else if ((qs.getMemoState() == 10000) && player.isClanLeader())
{
htmltext = "30766-07.html";
}
}
break;
}
case SIR_ERIC_RODEMAI:
{
if (lqs != null)
{
if (qs.getMemoState() == 7000)
{
if (!player.isClanLeader())
{
htmltext = "30868-01.html";
}
else
{
htmltext = "30868-02.html";
}
}
else if (qs.getMemoState() == 8000)
{
htmltext = "30868-05.html";
}
else if (qs.getMemoState() == 8100)
{
if (player.isClanLeader())
{
qs.setMemoState(8500);
qs.setCond(10, true);
htmltext = "30868-06.html";
}
else
{
htmltext = "30868-07.html";
}
}
else if ((qs.getMemoState() < 8511) && (qs.getMemoState() >= 8500))
{
htmltext = "30868-08.html";
}
else if (qs.getMemoState() == 8700)
{
htmltext = "30868-09.html";
}
else if (qs.getMemoState() >= 9000)
{
htmltext = "30868-11.html";
}
break;
}
}
}
}
return htmltext;
}
@Override
public String onSpawn(L2Npc npc)
{
switch (npc.getId())
{
case WITCH_ATHREA:
{
startQuestTimer("DESPAWN_WITCH_ATHREA", 5000, npc, null);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.WAR_AND_DEATH));
break;
}
case WITCH_KALIS:
{
startQuestTimer("DESPAWN_WITCH_KALIS", 5000, npc, null);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.AMBITION_AND_POWER));
break;
}
case IMPERIAL_COFFER:
{
startQuestTimer("DESPAWN_IMPERIAL_COFFER", 180000, npc, null);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.CURSE_OF_THE_GODS_ON_THE_ONE_THAT_DEFILES_THE_PROPERTY_OF_THE_EMPIRE));
break;
}
case BLITZ_WYRM:
{
startQuestTimer("DESPAWN_BLITZ_WYRM", 180000, npc, null);
break;
}
}
return super.onSpawn(npc);
}
private static QuestState getLeaderQuestState(L2PcInstance player, String quest)
{
if (player.getClan() != null)
{
final L2PcInstance leader = player.getClan().getLeader().getPlayerInstance();
if (leader != null)
{
return leader.getQuestState(quest);
}
}
return null;
}
}

View File

@ -125,6 +125,7 @@ import quests.Q00458_PerfectForm.Q00458_PerfectForm;
import quests.Q00463_IMustBeaGenius.Q00463_IMustBeaGenius;
import quests.Q00464_Oath.Q00464_Oath;
import quests.Q00501_ProofOfClanAlliance.Q00501_ProofOfClanAlliance;
import quests.Q00503_PursuitOfClanAmbition.Q00503_PursuitOfClanAmbition;
import quests.Q00504_CompetitionForTheBanditStronghold.Q00504_CompetitionForTheBanditStronghold;
import quests.Q00508_AClansReputation.Q00508_AClansReputation;
import quests.Q00509_AClansFame.Q00509_AClansFame;
@ -358,6 +359,7 @@ public class QuestMasterHandler
Q00463_IMustBeaGenius.class,
Q00464_Oath.class,
Q00501_ProofOfClanAlliance.class,
Q00503_PursuitOfClanAmbition.class,
Q00504_CompetitionForTheBanditStronghold.class,
Q00508_AClansReputation.class,
Q00509_AClansFame.class,

View File

@ -124,7 +124,6 @@ public final class Config
public static double RESPAWN_RESTORE_CP;
public static double RESPAWN_RESTORE_HP;
public static double RESPAWN_RESTORE_MP;
public static boolean ALT_GAME_TIREDNESS;
public static boolean ENABLE_MODIFY_SKILL_DURATION;
public static Map<Integer, Integer> SKILL_DURATION_LIST;
public static boolean ENABLE_MODIFY_SKILL_REUSE;
@ -1407,7 +1406,6 @@ public final class Config
HP_REGEN_MULTIPLIER = character.getDouble("HpRegenMultiplier", 100) / 100;
MP_REGEN_MULTIPLIER = character.getDouble("MpRegenMultiplier", 100) / 100;
CP_REGEN_MULTIPLIER = character.getDouble("CpRegenMultiplier", 100) / 100;
ALT_GAME_TIREDNESS = character.getBoolean("AltGameTiredness", false);
ENABLE_MODIFY_SKILL_DURATION = character.getBoolean("EnableModifySkillDuration", false);
// Create Map only if enabled
@ -3427,9 +3425,6 @@ public final class Config
case "announcemammonspawn":
ANNOUNCE_MAMMON_SPAWN = Boolean.parseBoolean(pValue);
break;
case "altgametiredness":
ALT_GAME_TIREDNESS = Boolean.parseBoolean(pValue);
break;
case "enablefallingdamage":
ENABLE_FALLING_DAMAGE = Boolean.parseBoolean(pValue);
break;

Some files were not shown because too many files have changed in this diff Show More