Added latest commits for todays sync.

This commit is contained in:
mobius
2015-02-03 22:02:10 +00:00
parent fe25f74122
commit 094651541b
36 changed files with 216 additions and 67 deletions

View File

@@ -18,17 +18,20 @@
*/
package quests.Q10323_TrainLikeItsReal;
import java.util.HashSet;
import java.util.Set;
import quests.Q10322_SearchingForTheMysteriousPower.Q10322_SearchingForTheMysteriousPower;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.ItemHolder;
import com.l2jserver.gameserver.model.holders.NpcLogListHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.ExQuestNpcLogList;
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jserver.gameserver.network.serverpackets.TutorialShowHtml;
@@ -99,9 +102,6 @@ public class Q10323_TrainLikeItsReal extends Quest
if (qs.isCond(1))
{
qs.setCond(2, true);
final ExQuestNpcLogList packet = new ExQuestNpcLogList(getId());
packet.addNpc(TRAINING_GOLEM, 0);
player.sendPacket(packet);
htmltext = event;
}
break;
@@ -256,9 +256,7 @@ public class Q10323_TrainLikeItsReal extends Quest
if (qs.isCond(2))
{
killedGolem++;
final ExQuestNpcLogList packet = new ExQuestNpcLogList(getId());
packet.addNpcString(NpcStringId.ELIMINATE_THE_TRAINING_GOLEM, killedGolem);
killer.sendPacket(packet);
if (killedGolem >= 4)
{
qs.setCond(3, true);
@@ -266,15 +264,14 @@ public class Q10323_TrainLikeItsReal extends Quest
else
{
qs.setMemoState(killedGolem);
sendNpcLogList(killer);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
else if (qs.isCond(6) || qs.isCond(7))
{
killedGolem++;
final ExQuestNpcLogList packet = new ExQuestNpcLogList(getId());
packet.addNpcString(NpcStringId.ELIMINATE_THE_TRAINING_GOLEM2, killedGolem);
killer.sendPacket(packet);
if (killedGolem >= 4)
{
qs.setCond(8, true);
@@ -282,11 +279,30 @@ public class Q10323_TrainLikeItsReal extends Quest
else
{
qs.setMemoState(killedGolem);
sendNpcLogList(killer);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance activeChar)
{
final QuestState qs = getQuestState(activeChar, false);
final Set<NpcLogListHolder> npcLogList = new HashSet<>(1);
if ((qs != null) && (qs.isCond(2)))
{
npcLogList.add(new NpcLogListHolder(NpcStringId.ELIMINATE_THE_TRAINING_GOLEM, qs.getMemoState()));
return npcLogList;
}
else if ((qs != null) && (qs.isCond(6) || qs.isCond(7)))
{
npcLogList.add(new NpcLogListHolder(NpcStringId.ELIMINATE_THE_TRAINING_GOLEM2, qs.getMemoState()));
return npcLogList;
}
return super.getNpcLogList(activeChar);
}
}

View File

@@ -1,4 +1,4 @@
<html><body>Pantheon:<br>
Suspicious Types... Now I remember that in recent times have also seen in the Museum of strange personalities. It seemed to me that they are looking for material on the Giants... Maybe they're one of those bands that were seen in the Ruins?<br><br>
They tried to steal a book called <font color="LEVEL">War of the Gods and the Giants </ font>. In this ancient manuscript contains information in the power of the Giants, the origin of their powers, monsters era Giants and the like. I am afraid that now, after the fall of the Island of Giants, this information can be used for evil purposes. It is necessary to rearrange the book elsewhere.
Suspicious Types... Now I remember that in recent times have also seen in the Museum of strange personalities. It seemed to me that they are looking for material on the Giants... Maybe they're one of those bands that were seen in the Ruins?<br>
They tried to steal a book called <font color="LEVEL">War of the Gods and the Giants</font>. In this ancient manuscript contains information in the power of the Giants, the origin of their powers, monsters era Giants and the like. I am afraid that now, after the fall of the Island of Giants, this information can be used for evil purposes. It is necessary to rearrange the book elsewhere.
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Gallint:<br>
Ah-ah! My back... Something I overworked these documents... Ah... I wanted to give something... How am I so... <br>
Ah-ah! My back... Something I overworked these documents... Ah... I wanted to give something... How am I so...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10326_RespectYourElders 32980-02.htm">"Ask describe the problem in detail"</button>
</body></html>

View File

@@ -1,6 +1,6 @@
<html><body>Gallint:<br>
You know... Today I long for the first time, brought order to the documents. There were so many that had to move folders using magic.<br><br>
But these manuscripts was so much dust that I started sneezing. Distracted, and documents that are carried through the air, dropped over. Now sore lower back.<br><br>
For three days had passed on his feet I stood up, but moving all Yeshe hard. It was necessary to convey something of the Pantheon. Phew. <br>
You know... Today I long for the first time, brought order to the documents. There were so many that had to move folders using magic.<br>
But these manuscripts was so much dust that I started sneezing. Distracted, and documents that are carried through the air, dropped over. Now sore lower back.<br>
For three days had passed on his feet I stood up, but moving all Yeshe hard. It was necessary to convey something of the Pantheon. Phew.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10326_RespectYourElders 32980-03.htm">"Offer Help"</button>
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Gallint:<br>
You are so kind. <font color="LEVEL">Pantheon</font> <font color="LEVEL">is located at the Museum</font>. Tell him: <font color="LEVEL">"In Esagire caught suspicious characters"</ font>. And pass. I beg you.
You are so kind. <font color="LEVEL">Pantheon</font> <font color="LEVEL">is located at the Museum</font>. Tell him: <font color="LEVEL">"In Esagire caught suspicious characters"</font>. And pass. I beg you.
</body></html>

View File

@@ -191,7 +191,11 @@ public class Q10326_RespectYourElders extends Quest
{
case State.CREATED:
{
htmltext = npc.getId() == GALLINT ? "32980-01.htm" : "32972-01a.htm";
if (npc.getId() == GALLINT)
{
htmltext = "32980-01.htm";
break;
}
break;
}
case State.STARTED: