Hunters Village improvements.
Contributed by hlwrave.
This commit is contained in:
parent
9422c17465
commit
3bb717410a
@ -35759,8 +35759,6 @@ INSERT INTO `spawnlist` VALUES
|
||||
("23_20", 1, 33587, 116921, 77195, -2695, 0, 0, 38057, 0, 0, 0, 0),
|
||||
-- Mysterious Butler
|
||||
("23_20", 1, 33685, 116045, 77812, -2680, 0, 0, 49811, 0, 0, 0, 0),
|
||||
-- Aria Furstmater
|
||||
("Aria_Hunter_Vilage", 1, 33918, 116390, 75387, -2712, 0, 0, 12298, 60, 0, 0, 0),
|
||||
|
||||
-- [23_21]
|
||||
|
||||
@ -49716,3 +49714,8 @@ INSERT INTO `spawnlist` VALUES
|
||||
('Altar of Sacrifice', 1, 33887, 48227, -30305, -1680, 0, 0, 48000, 60, 0, 0, 0),
|
||||
('Altar of Sacrifice', 1, 33812, 48471, -30182, -1680, 0, 0, 48000, 60, 0, 0, 0),
|
||||
('Altar of Sacrifice', 1, 33881, 48319, -30204, -1680, 0, 0, 48000, 60, 0, 0, 0);
|
||||
|
||||
-- Hunters Village
|
||||
INSERT INTO `spawnlist` VALUES
|
||||
('HuntersVillage', 1, 34018, 116503, 75392, -2712, 0, 0, 12298, 60, 0, 0, 0),
|
||||
('HuntersVillage', 1, 33918, 116390, 75387, -2712, 0, 0, 12298, 60, 0, 0, 0);
|
||||
|
10
trunk/dist/game/data/html/merchant/33918.htm
vendored
10
trunk/dist/game/data/html/merchant/33918.htm
vendored
@ -1,8 +1,8 @@
|
||||
<html><head><title>Aria Hurstmater</title><body>
|
||||
Aria Hurstmater:<br>
|
||||
Friends, are you? Trusted allies? You are wise. Answers, power. Many a powerful foe fell before me, but yet my love remains imprisoned inside a seal, and I am powerless.<br>
|
||||
What is the purpose of all the knowledge I gathered along the way? All wealth, the power? It's is all to naught.<br>
|
||||
Help me. Slay the foul beasts that haunt me, and I will reward you handsomely.<br>
|
||||
<html><body> Aria Furstmater:<br>
|
||||
Friends, are you? Trusted allies? You are wise.<br>
|
||||
If only I had known. Long have I searched for answers, power. Many a powerful foe fell before me, but yet my love remains imprisoned inside a seal, and I am powerless.<br>
|
||||
What is the purpose of all the knowledge I gathered along the way? All the wealth, the power? It is all to naught. <br>
|
||||
Help me. Slay the foul beasts that haunt me, and I will reward you handsomely. <br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 991001">"With what?"</button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 991003">"Can I change the attribute on Aria's Bracelet first?"</button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 991002">"What, I want to know if you know anything about the bracelets of boss monsters"</Button>
|
||||
|
66
trunk/dist/game/data/multisell/3401800.xml
vendored
Normal file
66
trunk/dist/game/data/multisell/3401800.xml
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>34018</npc> <!-- Merlot -->
|
||||
</npcs>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="2" id="45941" />
|
||||
<!-- Mid-grade Spirit Stone -->
|
||||
<production count="1" id="45930" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="3" id="45941" />
|
||||
<!-- High-grade Spirit Stone -->
|
||||
<production count="1" id="45931" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="8" id="45941" />
|
||||
<!-- Top-grade Spirit Stone -->
|
||||
<production count="1" id="45932" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Spirit Stone -->
|
||||
<ingredient count="5" id="45929" />
|
||||
<!-- Spirit Stone: Accessory -->
|
||||
<production count="1" id="45933" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="8" id="45941" />
|
||||
<!-- Spirit Stone: Hair Accessory -->
|
||||
<production count="1" id="45937" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="10" id="45941" />
|
||||
<!-- Rune Stone -->
|
||||
<production count="1" id="39738" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="19" id="45941" />
|
||||
<!-- Dimensional Hero's Supply Box -->
|
||||
<production count="1" id="45944" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="8" id="45941" />
|
||||
<!-- Dimensional Augment Pack -->
|
||||
<production count="1" id="46075" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="3" id="45941" />
|
||||
<!-- Dimensional Elcyum Pack -->
|
||||
<production count="1" id="46074" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Dimensional Coin -->
|
||||
<ingredient count="7" id="45941" />
|
||||
<!-- Dimensional Enhancement Pack -->
|
||||
<production count="1" id="46076" />
|
||||
</item>
|
||||
</list>
|
18
trunk/dist/game/data/multisell/3401801.xml
vendored
Normal file
18
trunk/dist/game/data/multisell/3401801.xml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>34018</npc> <!-- Merlot -->
|
||||
</npcs>
|
||||
<item>
|
||||
<!-- Bloody Amaranthine Enhancement Stone Coupon -->
|
||||
<ingredient count="1" id="46072" />
|
||||
<!-- Bloody Amaranthine Enhancement Stone -->
|
||||
<production count="1" id="35568" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bloody Eternal Enhancement Stone Coupon -->
|
||||
<ingredient count="1" id="46073" />
|
||||
<!-- Bloody Eternal Enhancement Stone -->
|
||||
<production count="1" id="35569" />
|
||||
</item>
|
||||
</list>
|
4
trunk/dist/game/data/scripts.cfg
vendored
4
trunk/dist/game/data/scripts.cfg
vendored
@ -50,6 +50,7 @@ ai/npc/Milia/Milia.java
|
||||
ai/npc/Minigame/Minigame.java
|
||||
ai/npc/MonkOfChaos/MonkOfChaos.java
|
||||
ai/npc/MonumentOfHeroes/MonumentOfHeroes.java
|
||||
ai/npc/Merlot/Merlot.java
|
||||
ai/npc/Nomi/Nomi.java
|
||||
ai/npc/NpcBuffers/NpcBuffers.java
|
||||
ai/npc/Pantheon/Pantheon.java
|
||||
@ -213,6 +214,9 @@ ai/individual/TrainningSoldier.java
|
||||
ai/individual/Valakas.java
|
||||
ai/individual/WindVortex.java
|
||||
|
||||
# Atelia Fortess AI
|
||||
ai/atelia_fortess/Devianne.java
|
||||
|
||||
# Village Master
|
||||
village_master/Clan/Clan.java
|
||||
village_master/Alliance/Alliance.java
|
||||
|
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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user