This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Chief Donal:<br>
|
||||
The Golden Ram Mercenary Force are in the the Swamp of Screams fighting stakatos. I'm looking for someone to deliver war supplies, are you interested?<br>
|
||||
<a action="bypass -h Quest Q00018_MeetingWithTheGoldenRam 31314-03.html">Say you are interested.</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Chief Donal:<br>
|
||||
This is too difficult for you.<br>
|
||||
(This quest may be undertaken only by characters of level 66 or above.)
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Chief Donal:<br>
|
||||
Get the supplies from my niece Daisy. I heard the Golden Ram might be recruiting if you are interested.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31314-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Chief Donal:<br>
|
||||
Get the supplies from my niece Daisy and take them to the Swamp of Screams.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body> Warehouse Freightman Daisy:<br>
|
||||
Uncle Donal sent you? Here's the box! Heavy, isn't it? Deliver it quickly before the winter comes!<br>
|
||||
<a action="bypass -h Quest Q00018_MeetingWithTheGoldenRam 31315-02.html">"You can count on me."</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Freightman Daisy:<br>
|
||||
Take it to the mercenary forces temporary outpost in the east part of the Swamp of Screams. I'll mark it on your Map. Speak with Mercenary Supplier Abercrombie.<br>
|
||||
Thanks, and be careful!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31315-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Freightman Daisy:<br>
|
||||
Hurry and deliver the box to Mercenary Supplier Abercrombie! I marked the Map, didn't I?
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31555-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31555-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Are these the supplies from Daisy?<br>
|
||||
<a action="bypass -h Quest Q00018_MeetingWithTheGoldenRam 31555-02.html">"Here's the box."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31555-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00018_MeetingWithTheGoldenRam/31555-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Hey, ale and mutton pie! You want a drink? What do you think of mercenary life? We're recruiting!
|
||||
</body></html>
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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.Q00018_MeetingWithTheGoldenRam;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Meeting With The Golden Ram (18)<br>
|
||||
* Original jython script by disKret.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00018_MeetingWithTheGoldenRam extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DONAL = 31314;
|
||||
private static final int DAISY = 31315;
|
||||
private static final int ABERCROMBIE = 31555;
|
||||
// Item
|
||||
private static final int BOX = 7245;
|
||||
|
||||
public Q00018_MeetingWithTheGoldenRam()
|
||||
{
|
||||
super(18, Q00018_MeetingWithTheGoldenRam.class.getSimpleName(), "Meeting With The Golden Ram");
|
||||
addStartNpc(DONAL);
|
||||
addTalkId(DONAL, DAISY, ABERCROMBIE);
|
||||
registerQuestItems(BOX);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31314-03.html":
|
||||
if (player.getLevel() >= 66)
|
||||
{
|
||||
st.startQuest();
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31314-02.html";
|
||||
}
|
||||
break;
|
||||
case "31315-02.html":
|
||||
st.setCond(2, true);
|
||||
st.giveItems(BOX, 1);
|
||||
break;
|
||||
case "31555-02.html":
|
||||
if (st.hasQuestItems(BOX))
|
||||
{
|
||||
st.giveAdena(40000, true);
|
||||
st.addExpAndSp(126668, 11731);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
if (npcId == DONAL)
|
||||
{
|
||||
htmltext = "31314-01.htm";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (npcId == DONAL)
|
||||
{
|
||||
htmltext = "31314-04.html";
|
||||
}
|
||||
else if (npcId == DAISY)
|
||||
{
|
||||
htmltext = (st.getCond() < 2) ? "31315-01.html" : "31315-03.html";
|
||||
}
|
||||
else if ((npcId == ABERCROMBIE) && st.isCond(2) && st.hasQuestItems(BOX))
|
||||
{
|
||||
htmltext = "31555-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user