This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Vladimir:<br>
|
||||
What.., is everyone here DEAF?!<br>
|
||||
Hey... you! Can you help me? I ordered meat from that farm..., look at the crap they gave me! I'm too mad to go myself, I wonder if you would return this for me?<br>
|
||||
<a action="bypass -h Quest Q00019_GoToThePastureland 31302-02.htm">Say you will.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Vladimir:<br>
|
||||
Is that you? Here. Take this meat! <font color="LEVEL">Farm Manager Tunatun</font> sent it to me, but it's disgusting.<br>
|
||||
I see red just thinking about it! I can't decide if he doesn't know any better, or if he's trying to slip one by me. Between you and me, I won't buy anything from him!<br>
|
||||
Not if he paid me! But you might like it...
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Vladimir:<br>
|
||||
You? How could someone as inexperienced as you TRULY know how to deal with meat?<br>
|
||||
The answer is... you can't. Come back after you gain more experience.<br>
|
||||
(Only character with level 82 or above can take on this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31302-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Vladimir:<br>
|
||||
Did you find the Farm manager? What are you doing? And can you get rid of this meat before it stinks? The quality isn't good enough.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-01.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-01.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
What? Vladimir said that? Hmm...<br>
|
||||
Actually, that is the best meat I can get. Unless an skilled adventurer shows up...<br>
|
||||
There is nothing else I can do. This is the only time I will accept a return. But I still look forward to doing business. Do I have any change?<br>
|
||||
<a action="bypass -h Quest Q00019_GoToThePastureland 31537-02.html">Say that he said he doesn't need it</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
He's a cranky one, eh!<br>
|
||||
But I can't do that. I can apologize to him later. But you should take this money. I'll feel better that way when I pay a visit later.<br>
|
||||
Now, I'm in need of a skilled, feared, willing adventurer to help me acquire good meat, if ONLY there was one nearby...?
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/31537-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
I see. Then, first return the meat... What? You didn't bring the meat? How would I know if he sent you?
|
||||
</body></html>
|
127
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/Q00019_GoToThePastureland.java
vendored
Normal file
127
trunk/dist/game/data/scripts/quests/Q00019_GoToThePastureland/Q00019_GoToThePastureland.java
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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.Q00019_GoToThePastureland;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Go to the Pastureland (19)<br>
|
||||
* Original Jython script by disKret.
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00019_GoToThePastureland extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int VLADIMIR = 31302;
|
||||
private static final int TUNATUN = 31537;
|
||||
// Items
|
||||
private static final int VEAL = 15532;
|
||||
private static final int YOUNG_WILD_BEAST_MEAT = 7547;
|
||||
|
||||
public Q00019_GoToThePastureland()
|
||||
{
|
||||
super(19, Q00019_GoToThePastureland.class.getSimpleName(), "Go to the Pastureland");
|
||||
addStartNpc(VLADIMIR);
|
||||
addTalkId(VLADIMIR, TUNATUN);
|
||||
registerQuestItems(VEAL, YOUNG_WILD_BEAST_MEAT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
if (event.equalsIgnoreCase("31302-02.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
st.giveItems(VEAL, 1);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("31537-02.html"))
|
||||
{
|
||||
if (st.hasQuestItems(YOUNG_WILD_BEAST_MEAT))
|
||||
{
|
||||
st.giveAdena(50000, true);
|
||||
st.addExpAndSp(136766, 12688);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "31537-02.html";
|
||||
}
|
||||
else if (st.hasQuestItems(VEAL))
|
||||
{
|
||||
st.giveAdena(147200, true);
|
||||
st.addExpAndSp(385040, 75250);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "31537-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31537-03.html";
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
if (npc.getId() == VLADIMIR)
|
||||
{
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (player.getLevel() >= 82)
|
||||
{
|
||||
htmltext = "31302-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31302-03.html";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = "31302-04.html";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if ((npc.getId() == TUNATUN) && (st.isCond(1)))
|
||||
{
|
||||
htmltext = "31537-01.html";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user