This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
I require a more seasoned adventurer. When you see one in the mirror, come on back.<br>
|
||||
(Only character with level 82 or above can take on this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
We've learned Sel Mahums have begun training for battle. Their training grounds are near the Sel Mahum Training Grounds. This is no coincidence. The Town of Oren's safety is at stake. I won't just wait and see. I've sworn an oath to defend.<br>
|
||||
<a action="bypass -h Quest Q00251_NoSecrets 30201-02.htm">Ask about the Sel Mahum Training Grounds.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
Ah, these lands were once called SkyPaint Grassland. Then the Sel Mahums put their training camp here and dubbed it the Sel Mahum Training Grounds. Anyway, what do you think? Want to give me a hand?<br>
|
||||
<a action="bypass -h Quest Q00251_NoSecrets 30201-03.htm">Say you would.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
The Sel Mahums are training for war, it's up to us to keep the peace. But we need to know more about their training operation. I cannot leave my post, I'm duty bound. I'll need your help. Get the <font color="LEVEL">Sel Mahum training schedule from the training instructor</font> and bring it here.<br>
|
||||
Then bring the <font color="LEVEL">Sel Mahum training log new privates and Sel Mahum soldiers carry</font>.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
Excellent work! Now we know what kind of training the Sel Mahums are doing. Nicely done! Here, you've earned this!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-05.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-05.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
Hey, lackey. While you're relaxing, Sel Mahums are training for war. That means get Ready!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/30201-06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Pinaps:<br>
|
||||
Ah, it has been awhile! Share a pint with me old friend! We can catch up on old times!<br>
|
||||
(You have already performed this quest).
|
||||
</body></html>
|
151
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/Q00251_NoSecrets.java
vendored
Normal file
151
trunk/dist/game/data/scripts/quests/Q00251_NoSecrets/Q00251_NoSecrets.java
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J DataPack is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package quests.Q00251_NoSecrets;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
/**
|
||||
* No Secrets (251)
|
||||
* @author Dumpster
|
||||
*/
|
||||
public class Q00251_NoSecrets extends Quest
|
||||
{
|
||||
public static final int PINAPS = 30201;
|
||||
public static final int DIARY = 15508;
|
||||
public static final int TABLE = 15509;
|
||||
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
22783,
|
||||
22785,
|
||||
22780,
|
||||
22782,
|
||||
22784
|
||||
};
|
||||
|
||||
private static final int[] MOBS2 =
|
||||
{
|
||||
22775,
|
||||
22776,
|
||||
22778
|
||||
};
|
||||
|
||||
public Q00251_NoSecrets()
|
||||
{
|
||||
super(251, Q00251_NoSecrets.class.getSimpleName(), "No Secrets");
|
||||
addStartNpc(PINAPS);
|
||||
addTalkId(PINAPS);
|
||||
addKillId(MOBS);
|
||||
addKillId(MOBS2);
|
||||
registerQuestItems(DIARY, TABLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
if (event.equals("30201-03.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && st.isStarted() && st.isCond(1))
|
||||
{
|
||||
final int npcId = npc.getId();
|
||||
|
||||
if (Util.contains(MOBS, npcId) && (getRandom(100) < 10) && (st.getQuestItemsCount(DIARY) < 10))
|
||||
{
|
||||
st.giveItems(DIARY, 1);
|
||||
if ((st.getQuestItemsCount(DIARY) >= 10) && (st.getQuestItemsCount(TABLE) >= 5))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
else if (Util.contains(MOBS2, npcId) && (getRandom(100) < 5) && (st.getQuestItemsCount(TABLE) < 5))
|
||||
{
|
||||
st.giveItems(TABLE, 1);
|
||||
if ((st.getQuestItemsCount(DIARY) >= 10) && (st.getQuestItemsCount(TABLE) >= 5))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() > 81) ? "30201-01.htm" : "30201-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "30201-05.htm";
|
||||
}
|
||||
else if ((st.isCond(2)) && (st.getQuestItemsCount(DIARY) >= 10) && (st.getQuestItemsCount(TABLE) >= 5))
|
||||
{
|
||||
htmltext = "30201-04.htm";
|
||||
st.giveAdena(313355, true);
|
||||
st.addExpAndSp(56787, 160578);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "30201-06.htm";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user