Hunters Village improvements.
Contributed by hlwrave.
This commit is contained in:
5
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-1.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-1.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Merlot:<br>
|
||||
Currently, dimensional teleportation is not available. We can't just send you whenever we want.<br>
|
||||
We can only send you <font color="LEVEL">on weeks when there are no Dimensional Sieges</font>.<br>
|
||||
Also, you must be above <font color="LEVEL">Lv. 99</font>, since the other dimension is very dangerous.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-2.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-2.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Merlot:<br>
|
||||
If you have an Atelia Crystal that you received from defeating the Embryo in this dimension, I'll give you 1 Dimensional Coin and 14 million SP.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Merlot give_coin">"I have an Atelia Crystal."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-3.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-3.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Merlot:<br>
|
||||
I'm exchanging rewards for Dimensional Coins.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3401800">"I want to exchange a Dimensional Coin for a reward."</button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3401801">"I want to exchange a Enhancement Stone Coupon."</button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-5.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/npc/Merlot/34018-5.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Merlot:<br>
|
||||
You don't have an Atelia Energy Crystal. Please check again.<br>
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/ai/npc/Merlot/34018.htm
vendored
Normal file
10
trunk/dist/game/data/scripts/ai/npc/Merlot/34018.htm
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>Merlot:<br>
|
||||
Hello! I'm Merlot.<br>
|
||||
Did you know that the Embryo have started appearing in the other dimension? I've been told by Master Mermoden to defeat those Embryo, and I've been searching for people to help me.<br>
|
||||
And... I came here... and met Aria... and I kind of, uh... fell in love.<br>
|
||||
Well, I'm just here to look for someone who will help me defeat the enemy.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Merlot dimensional_raid">"I want to go into the Dimensional Raid."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Merlot 34018-2.htm">"I want to exchange an Atelia Crystal for a Dimensional Coin."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Merlot 34018-3.htm">"I want to exchange rewards."</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
102
trunk/dist/game/data/scripts/ai/npc/Merlot/Merlot.java
vendored
Normal file
102
trunk/dist/game/data/scripts/ai/npc/Merlot/Merlot.java
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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 ai.npc.Merlot;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Merlot AI.
|
||||
* @author hlwrave
|
||||
*/
|
||||
final class Merlot extends AbstractNpcAI
|
||||
{
|
||||
// NPC
|
||||
private static final int MERLOT = 34018;
|
||||
// Item
|
||||
private static final int ATELIA_CRYSTAL = 45610;
|
||||
private static final int DIMENSIONAL_COIN = 45941;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 99;
|
||||
// Location
|
||||
private static final Location DIMENSIONAL_RAID = new Location(116503, 75392, -2712); // Merlot Position
|
||||
|
||||
private Merlot()
|
||||
{
|
||||
super(Merlot.class.getSimpleName(), "ai/npc");
|
||||
addStartNpc(MERLOT);
|
||||
addTalkId(MERLOT);
|
||||
addFirstTalkId(MERLOT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34018-2.htm":
|
||||
case "34018-3.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "give_coin":
|
||||
{
|
||||
if (hasQuestItems(player, ATELIA_CRYSTAL))
|
||||
{
|
||||
giveItems(player, DIMENSIONAL_COIN, 1);
|
||||
addExpAndSp(player, 0, 14000000);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34018-5.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "dimensional_raid": // Need TODO Dimensional Raid
|
||||
{
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "34018-1.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
player.teleToLocation(DIMENSIONAL_RAID);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return "34018.htm";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Merlot();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user