Reworked some scripts.

Contributed by Stayway, gigilo1968.
This commit is contained in:
MobiusDev
2017-05-28 18:37:26 +00:00
parent 9cb39dc889
commit 29042a9311
45 changed files with 487 additions and 390 deletions

View File

@@ -16,7 +16,6 @@
*/
package quests.Q10320_LetsGoToTheCentralSquare;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.Movie;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Character;
@@ -31,7 +30,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
/**
@@ -89,11 +87,9 @@ public final class Q10320_LetsGoToTheCentralSquare extends Quest
{
if (qs.isStarted())
{
giveAdena(player, 30, true);
addExpAndSp(player, 30, 5);
addExpAndSp(player, 300, 6);
qs.exitQuest(false, true);
htmltext = event;
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WAIT_WAIT_A_MINUTE_I_STILL_HAVE_TIME);
}
break;
}

View File

@@ -16,13 +16,11 @@
*/
package quests.Q10321_QualificationsOfTheSeeker;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import quests.Q10320_LetsGoToTheCentralSquare.Q10320_LetsGoToTheCentralSquare;
@@ -60,7 +58,7 @@ public final class Q10321_QualificationsOfTheSeeker extends Quest
String htmltext = null;
switch (event)
{
case "32975-03.html":
case "32975-03.htm":
{
qs.startQuest();
qs.setCond(2); // arrow hack
@@ -78,10 +76,8 @@ public final class Q10321_QualificationsOfTheSeeker extends Quest
{
if (qs.isStarted())
{
giveAdena(player, 50, true);
addExpAndSp(player, 40, 5);
addExpAndSp(player, 300, 6);
qs.exitQuest(false, true);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.HM_DON_T_JUST_GO_I_STILL_HAVE_TONS_TO_TEACH_YOU);
htmltext = event;
}
break;

View File

@@ -1,5 +0,0 @@
<html><body>Pantheon:<br>
Gallint is hurt and cannot move, but we must do something about the books before they get stolen.<br>
They're looking for <font color="LEVEL">The War of Gods and Giants</font> mostly, but there are a couple of others they'd probably find useful too.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-02.htm">"The War of Gods and Giants?"</Button>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>Pantheon:<br>
We think they were looking for anything related to the Giants,and tried to steal The War of Gods and Giants, an ancient book that was discovered in Ye Sagira.<br>
It has many stories about the powers of the Giants, how that power can be learned, and about others species from their time. Now that the island has crashed, perhaps we should think about safeguarding the book...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-03.html">"I'd like to help."</Button>
</body></html>

View File

@@ -1,6 +0,0 @@
<html><body>Pantheon:<br>
Thank you!<br1>
When you get to the museum, you should see a number of desks - <font color="LEVEL">one of them</font> has <font color="LEVEL">The War of Giants and Gods</font> on it. Find it, and bring it to me.<br>
Would you like to go to the museum?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"Yes."</Button>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>Pantheon:<br>
You're still here<br1>
Go into the museum!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"On my way!"</Button>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Pantheon:<br>
I just saw suspicious intruders entering the Museum! I fear for the rare valuable articles inside the Museum. Please hurry into the Museum and deal with the intruders!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"Sure. I am going in."</Button>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><head><body>Pantheon:<br>
You've brought the book? Good! It must have been difficult to find it amongst all those others!<br>
I hope you didn't get hurt either - Gallint may be a fool, but plenty have hurt themselves moving books around before him.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-07.html">"I had to fight someone!"</Button>
</body></html>

View File

@@ -1,6 +0,0 @@
<html><body>Pantheon:<br>
What? The thieves are getting more brash by the day!<br>
Hmm... So, I wonder if the books related to Giants... are also related to Embryo. It's just speculation, but something worth considering.<br>
Now, I must apologize for placing you in harm's way. Please accept these Earrings - accessories such as these help protect you against magic!<br>
Remember: you can wear up to two <font color="LEVEL">earrings</font> at a time. Purchase more from the <font color="LEVEL">General Merchant</font> if you wish.
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Pantheon:<br>
I'm still looking into things, friend. I'll let you know when I find anything<br>
(You have already completed this quest.)
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Pantheon:<br>
This mission can't be give to just anyone!<br>
(Only characters below 20, who've completed the "Let's Respect Elders" quest, may start this quest.)
</body></html>

View File

@@ -1,131 +0,0 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.Q10327_IntruderWhoWantsTheBookOfGiants;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
//import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
/**
* Intruder Who Wants the Book of Giants (10327)
* @author Gladicek
*/
public final class Q10327_IntruderWhoWantsTheBookOfGiants extends Quest
{
// NPCs
private static final int PANTHEON = 32972;
// Items
private static final int THE_WAR_OF_GODS_AND_GIANTS = 17575;
// Misc
private static final int MAX_LEVEL = 20;
private static final int APPRENTICE_EARRING = 112;
public Q10327_IntruderWhoWantsTheBookOfGiants()
{
super(10327);
addStartNpc(PANTHEON);
addTalkId(PANTHEON);
registerQuestItems(THE_WAR_OF_GODS_AND_GIANTS);
addCondMaxLevel(MAX_LEVEL, "32972-09.html");
// addCondCompletedQuest(Q10542_SearchingForNewPower.class.getSimpleName(), "32972-09.html");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "32972-02.htm":
{
htmltext = event;
break;
}
case "32972-03.html":
{
qs.startQuest();
htmltext = event;
break;
}
case "32972-07.html":
{
if (qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.ACCESSORIES_HAVE_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
giveAdena(player, 160, true);
giveItems(player, APPRENTICE_EARRING, 2);
addExpAndSp(player, 7800, 5);
qs.exitQuest(false, true);
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = null;
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "32972-01.htm";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "32972-04.html";
break;
}
else if (qs.isCond(2))
{
htmltext = "32972-05.html";
break;
}
else if (qs.isCond(3))
{
htmltext = "32972-06.html";
break;
}
}
case State.COMPLETED:
{
htmltext = "32972-08.html";
break;
}
}
return htmltext;
}
}

View File

@@ -39,7 +39,7 @@ import quests.Q10321_QualificationsOfTheSeeker.Q10321_QualificationsOfTheSeeker;
/**
* Train Like the Real Thing (10541)
* @URL https://l2wiki.com/Train_Like_the_Real_Thing
* @author GIgi
* @author Gigi
*/
public final class Q10541_TrainLikeTheRealThing extends Quest
{
@@ -164,23 +164,30 @@ public final class Q10541_TrainLikeTheRealThing extends Quest
{
case SHANNON:
{
if (qs.isCond(1))
switch (qs.getCond())
{
htmltext = "32974-05.html";
}
else if (qs.isCond(2))
{
startQuestTimer("HTML1", 100, npc, player);
}
else if (qs.isCond(3))
{
htmltext = "32974-07.html";
}
else if (qs.isCond(5))
{
addExpAndSp(player, 2950, 7);
qs.exitQuest(false, true);
startQuestTimer("HTML", 200, npc, player);
case 1:
{
htmltext = "32974-05.html";
break;
}
case 2:
{
startQuestTimer("HTML1", 100, npc, player);
break;
}
case 3:
{
htmltext = "32974-07.html";
break;
}
case 5:
{
addExpAndSp(player, 2550, 7);
qs.exitQuest(false, true);
startQuestTimer("HTML", 200, npc, player);
break;
}
}
break;
}
@@ -198,7 +205,6 @@ public final class Q10541_TrainLikeTheRealThing extends Quest
}
}
break;
}
case State.COMPLETED:
{

View File

@@ -1,4 +1,4 @@
<html><body>Shannon:<br>
Are you really thinking of being a seeker? You've got the will, and you seem to have the skills too, but you'll need a bit of polishing. Hmm... I think you'll first need to learn how to use your new powers. What do you think?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10542_SearchingForNewPower 32974-02.htm">"What is the new power?"</Button>
<button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10542_SearchingForNewPower 32974-02.htm">&quot;What is the new power?&quot;</button>
</body></html>

View File

@@ -3,5 +3,5 @@ There are a wide variety of new powers. The Support Magic you just experienced i
Of course, if you're going to learn something, experiencing it yourself is always going to be the most effective way.<br>
I happen to have been asked by Pantheon to investigate some strange movement in the Museum.<br>
I think this'll be a good training opportunity for you. Prepare yourself mentally first, and tell me when you're done getting ready.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10542_SearchingForNewPower 32974-03.htm">"How do I prepare myself?"</Button>
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10542_SearchingForNewPower check">&quot;How do I prepare myself?&quot;</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Shannon:<br>
Ready already? My, my. Aren't you enthusiastic! Now then, before you head to the Museum, I'll give you some important information first.<br>
First, take these <font color="LEVEL">Spiritshots</font>. They have no grade, but as you get stronger and get better weapons, you can use Grade D, C, B, and eventually R. This is very important in battle.<br>
First, <font color="LEVEL">activate your Spiritshot</font>.
</body></html>

View File

@@ -1,6 +0,0 @@
<html><body>Shannon:<br>
Now that you're done preparing, should we head to the museum?<br>
I'd go with you, but you can't always have me picking up after you, right?<br>
I've told <font color="LEVEL">Toyron</font> at the Museum that I'm sending a promising rookie his way. Go and find Toyron.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest MuseumDungeon enter_instance">"I understand. Please teleport me over."</Button>
</body></html>

View File

@@ -1,4 +1,6 @@
<html><body>Shannon:<br>
You've done well. It turns out what you were dealing with wasn't as minor as I thought it was. I have some trust in you know. What did you think? I told Toyron to help you learn to use your skills properly. Did you learn well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10542_SearchingForNewPower 32974-06.html">"Yes, I did."</Button>
Now that you're done preparing, should we head to the museum?<br>
I'd go with you, but you can't always have me picking up after you, right?<br>
I've told <font color="LEVEL">Toyron</font> at the Museum that I'm sending a promising rookie his way. Go and find Toyron.<br>
<button ALIGN=LEFT ICON="Normal" action="bypass -h Quest MuseumDungeon enter_instance">&quot;I understand. Please teleport me over.&quot;</button>
</body></html>

View File

@@ -1,3 +1,6 @@
<html><body>Shannon:<br>
There's my promising rookie! Good job.
I'm guessing the situation's more dire than we thought. Suspicious intruder, did you say?<br>
But still, we can't give up. Calm yourself down, and this time, make sure you defeat that intruder!<br>
I'll send you back into the museum. Don't let your guard down, and make me proud!<br>
<button ALIGN=LEFT ICON="Normal" action="bypass -h Quest MuseumDungeon enter_instance">&quot;I understand. Please teleport me over.&quot;</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Shannon:<br>
You've done well. It turns out what you were dealing with wasn't as minor as I thought it was. I have some trust in you know. What did you think? I told Toyron to help you learn to use your skills properly. Did you learn well?<br>
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10542_SearchingForNewPower 32974-08.html">&quot;Yes, I did.&quot;</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Shannon:<br>
There's my promising rookie! Good job.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Toyron:<br>
Has Shannon sent you? I don't know how much you know, but it would seem someone after the giants' relics has been here.<br>
Since nobody has exited since I have entered, the intruder must not have been able to escape. However, before we start the search, since we cannot know how dangerous this intruder is, we must prepare thoroughly.<br>
Do you know how to use <font color="LEVEL">skills</font>? Please learn how to employ skills before you proceed, in order to be better prepared against dangers.<br>
<button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10542_SearchingForNewPower 33004-02.html">&quot;Alright.&quot;</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Toyron:<br>
Alright now, let's search for the intruder. It appears it's the Giant's Book he is after. Let us search around the bookshelf.<br>
Keep the tension up while searching, as the intruder may suddenly show himself.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Toyron:<br>
You've retrieved the book, and defeated the intruder as well. He was much stronger than anyone we were expecting, but you've done a great job thwarting him. Now return to Shannon, and tell her that the occurrence at the museum has been neutralized.<br>
<button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Toyron museum_teleport">&quot;Alright.&quot;</button>
</body></html>

View File

@@ -16,37 +16,47 @@
*/
package quests.Q10542_SearchingForNewPower;
import java.util.HashSet;
import java.util.Set;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.NpcLogListHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
/**
* Searching for New Power (10542)
* @URL https://l2wiki.com/Searching_for_New_Power
* @author GIgi
* @author Gigi
*/
public final class Q10542_SearchingForNewPower extends Quest
{
// NPCs
private static final int SHANNON = 32974;
private static final int TOYRON = 33004;
private static final int THIEF = 23121;
// Items
private static final int SOULSHOT = 1835;
private static final int THE_WAR_OF_GODS_AND_GIANTS = 17575;
private static final int SOULSHOTS = 5789;
private static final int SPIRITSHOTS = 5790;
// Misc
public static final int KILL_COUNT_VAR = 0;
private static final int MAX_LEVEL = 20;
public Q10542_SearchingForNewPower()
{
super(10542);
addStartNpc(SHANNON);
addTalkId(SHANNON);
addTalkId(SHANNON, TOYRON);
registerQuestItems(THE_WAR_OF_GODS_AND_GIANTS);
addCondNotRace(Race.ERTHEIA, "noRace.html");
addCondMaxLevel(MAX_LEVEL, "noLevel.html");
@@ -70,22 +80,41 @@ public final class Q10542_SearchingForNewPower extends Quest
htmltext = event;
break;
}
case "32974-03.htm":
case "check":
{
qs.startQuest();
showOnScreenMsg(player, NpcStringId.AUTOMATE_SOULSHOT_AS_SHOWN_IN_THE_TUTORIAL, ExShowScreenMessage.TOP_CENTER, 10000);
if (!hasQuestItems(player, SOULSHOT))
if (player.isInCategory(CategoryType.MAGE_GROUP))
{
giveItems(player, SOULSHOT, 100);
giveItems(player, SPIRITSHOTS, 100);
showOnScreenMsg(player, NpcStringId.AUTOMATE_SPIRITSHOT_AS_SHOWN_IN_THE_TUTORIAL, ExShowScreenMessage.TOP_CENTER, 4500);
htmltext = "32974-04.htm";
}
else
{
giveItems(player, SOULSHOTS, 100);
showOnScreenMsg(player, NpcStringId.AUTOMATE_SOULSHOT_AS_SHOWN_IN_THE_TUTORIAL, ExShowScreenMessage.TOP_CENTER, 4500);
htmltext = "32974-03.htm";
}
htmltext = event;
break;
}
case "32974-06.html":
case "33004-02.html":
{
addExpAndSp(player, 3200, 8);
qs.exitQuest(false, true);
htmltext = event;
if (qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.AMONG_THE_4_BOOKSHELVES_FIND_THE_ONE_CONTAINING_A_VOLUME_CALLED_THE_WAR_OF_GODS_AND_GIANTS, ExShowScreenMessage.TOP_CENTER, 4500);
htmltext = "32974-08.html";
}
break;
}
case "32974-08.html":
{
if (qs.isCond(5))
{
giveItems(player, (player.isInCategory(CategoryType.MAGE_GROUP) ? SPIRITSHOTS : SOULSHOTS), 100);
addExpAndSp(player, 2550, 7);
qs.exitQuest(false, true);
htmltext = "32974-08.html";
}
break;
}
}
@@ -93,10 +122,10 @@ public final class Q10542_SearchingForNewPower extends Quest
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
String htmltext = null;
switch (qs.getState())
{
@@ -110,14 +139,92 @@ public final class Q10542_SearchingForNewPower extends Quest
}
case State.STARTED:
{
if ((qs.getCond() > 0) && (qs.getCond() < 5))
if (npc.getId() == SHANNON)
{
htmltext = "32974-04.html";
qs.setCond(2);
switch (qs.getCond())
{
case 1:
case 2:
case 3:
{
htmltext = "32974-05.html";
break;
}
case 4:
{
htmltext = "32974-06.html";
break;
}
case 5:
{
htmltext = "32974-07.html";
break;
}
}
break;
}
else if (qs.isCond(5))
else if (npc.getId() == TOYRON)
{
htmltext = "32974-05.html";
if (qs.isCond(2))
{
htmltext = "33004-01.html";
if (!isSimulated)
{
qs.setCond(3, true);
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2text\\QT_004_skill_01.htm", TutorialShowHtml.LARGE_WINDOW));
htmltext = "33004-01.html";
NpcStringId npcStringId = null;
switch (player.getClassId())
{
case FIGHTER:
case ELVEN_FIGHTER:
case DARK_FIGHTER:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_POWER_STRIKE_OR_MORTAL_BLOW;
break;
}
case MAGE:
case ELVEN_MAGE:
case DARK_MAGE:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_WIND_STRIKE;
break;
}
case ORC_FIGHTER:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_POWER_STRIKE_OR_IRON_PUNCH;
break;
}
case ORC_MAGE:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_CHILL_FLAME;
break;
}
case DWARVEN_FIGHTER:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_SPOIL;
break;
}
case MALE_SOLDIER:
case FEMALE_SOLDIER:
{
npcStringId = NpcStringId.PREPARE_TO_USE_THE_SKILL_FALLEN_ATTACK_OR_FALLEN_ARROW;
break;
}
default:
break;
}
if (npcStringId != null)
{
showOnScreenMsg(player, npcStringId, ExShowScreenMessage.TOP_CENTER, 4500);
}
}
}
else if (qs.isCond(5))
{
htmltext = "33004-03.html";
}
}
break;
}
@@ -129,4 +236,16 @@ public final class Q10542_SearchingForNewPower extends Quest
}
return htmltext;
}
@Override
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance player)
{
final Set<NpcLogListHolder> holder = new HashSet<>();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(4))
{
holder.add(new NpcLogListHolder(THIEF, false, qs.getMemoStateEx(KILL_COUNT_VAR)));
}
return holder;
}
}

View File

@@ -16,6 +16,8 @@
*/
package quests.Q10543_SheddingWeight;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -26,8 +28,6 @@ import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
/**
* Shedding Weight (10543)
* @URL https://l2wiki.com/Shedding_Weight
@@ -40,12 +40,7 @@ public final class Q10543_SheddingWeight extends Quest
private static final int WILFORD = 30005;
// Items
// private static final int NOVICE_TRAINING_LOG = 1835; // TODO Find item ID
private static final int WOODEN_ARROW = 17;
private static final int APPRENTICE_ADVENTURERS_STAFF = 7816;
private static final int APPRENTICE_ADVENTURERS_BONE_CLUB = 7817;
private static final int APPRENTICE_ADVENTURERS_KNIFE = 7818;
private static final int APPRENTICE_ADVENTURERS_CESTUS = 7819;
private static final int APPRENTICE_ADVENTURERS_BOW = 7820;
private static final int APPRENTICE_ADVENTURERS_LONG_SWORD = 7821;
// Misc
private static final int MAX_LEVEL = 20;
@@ -88,12 +83,7 @@ public final class Q10543_SheddingWeight extends Quest
}
case "30005-03.html":
{
giveItems(player, WOODEN_ARROW, 500);
giveItems(player, APPRENTICE_ADVENTURERS_STAFF, 1);
giveItems(player, APPRENTICE_ADVENTURERS_BONE_CLUB, 1);
giveItems(player, APPRENTICE_ADVENTURERS_KNIFE, 1);
giveItems(player, APPRENTICE_ADVENTURERS_CESTUS, 1);
giveItems(player, APPRENTICE_ADVENTURERS_BOW, 1);
giveItems(player, APPRENTICE_ADVENTURERS_LONG_SWORD, 1);
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_007_post_01.htm", TutorialShowHtml.LARGE_WINDOW));
showOnScreenMsg(player, NpcStringId.WEAPONS_HAVE_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 10000);

View File

@@ -226,7 +226,6 @@ import quests.Q10317_OrbisWitch.Q10317_OrbisWitch;
import quests.Q10318_DecayingDarkness.Q10318_DecayingDarkness;
import quests.Q10320_LetsGoToTheCentralSquare.Q10320_LetsGoToTheCentralSquare;
import quests.Q10321_QualificationsOfTheSeeker.Q10321_QualificationsOfTheSeeker;
import quests.Q10327_IntruderWhoWantsTheBookOfGiants.Q10327_IntruderWhoWantsTheBookOfGiants;
import quests.Q10330_ToTheRuinsOfYeSagira.Q10330_ToTheRuinsOfYeSagira;
import quests.Q10331_StartOfFate.Q10331_StartOfFate;
import quests.Q10332_ToughRoad.Q10332_ToughRoad;
@@ -646,7 +645,6 @@ public class QuestMasterHandler
Q10318_DecayingDarkness.class,
Q10320_LetsGoToTheCentralSquare.class,
Q10321_QualificationsOfTheSeeker.class,
Q10327_IntruderWhoWantsTheBookOfGiants.class,
Q10330_ToTheRuinsOfYeSagira.class,
Q10331_StartOfFate.class,
Q10332_ToughRoad.class,