Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -1,5 +0,0 @@
<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>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00019_GoToThePastureland 31302-02.htm">Say you will.</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<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>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00019_GoToThePastureland 31302-02.htm">"I will."</Button>
</body></html>

View File

@@ -1,5 +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...
<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>

View File

@@ -1,5 +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.)
<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>

View File

@@ -1,3 +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.
<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>

View File

@@ -1,6 +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>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00019_GoToThePastureland 31537-02.html">Say that he said he doesn't need it</Button>
<html><body>Beast Herder Tunatun:<br>
What? Vladimir said that? Hmm...<br>
Actually, that is the best meat I can get. Unless a 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>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00019_GoToThePastureland 31537-02.htm">Say that he said he doesn't need it</Button>
</body></html>

View File

@@ -1,5 +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...?
<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>

View File

@@ -1,3 +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?
<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>

View File

@@ -1,131 +1,122 @@
/*
* 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.Q00019_GoToThePastureland;
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;
/**
* 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 qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
if (event.equalsIgnoreCase("31302-02.htm"))
{
qs.startQuest();
giveItems(player, VEAL, 1);
}
else if (event.equalsIgnoreCase("31537-02.html"))
{
if (hasQuestItems(player, YOUNG_WILD_BEAST_MEAT))
{
giveAdena(player, 50000, true);
addExpAndSp(player, 136766, 12688);
qs.exitQuest(false, true);
htmltext = "31537-02.html";
}
else if (hasQuestItems(player, VEAL))
{
giveAdena(player, 147200, true);
addExpAndSp(player, 385040, 75250);
qs.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 qs = getQuestState(player, true);
if (qs == null)
{
return htmltext;
}
if (npc.getId() == VLADIMIR)
{
switch (qs.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) && qs.isCond(1))
{
htmltext = "31537-01.html";
}
return htmltext;
}
}
/*
* 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.Q00019_GoToThePastureland;
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;
/**
* Go to the Pastureland (19)
* @author malyelfik
*/
public final 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;
// Misc
private static final int MIN_LEVEL = 82;
public Q00019_GoToThePastureland()
{
super(19);
addStartNpc(VLADIMIR);
addTalkId(VLADIMIR, TUNATUN);
registerQuestItems(VEAL, YOUNG_WILD_BEAST_MEAT);
addCondMinLevel(MIN_LEVEL, "31302-03.html");
}
@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();
giveItems(player, VEAL, 1);
}
else if (event.equalsIgnoreCase("31537-02.htm"))
{
if (hasQuestItems(player, YOUNG_WILD_BEAST_MEAT))
{
giveAdena(player, 50000, true);
addExpAndSp(player, 136766, 59); // TODO: Retail like SP value
st.exitQuest(false, true);
htmltext = event;
}
else if (hasQuestItems(player, VEAL))
{
giveAdena(player, 299928, true);
addExpAndSp(player, 1_456_218, 349);
st.exitQuest(false, true);
htmltext = event;
}
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 (npc.getId() == VLADIMIR)
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = "31302-01.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;
}
}