Addition of Ateld AI.

This commit is contained in:
MobiusDev 2018-05-13 14:45:03 +00:00
parent 0b30ae42eb
commit 966a157ec4
5 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<html><body>Ateld:<br>
Where is your Alliance? You are not seriously going into battle all by yourself, are you? Hahahaha!<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Home</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Ateld:<br>
Have you heard? Antharas has awakened, and Baium has become even stronger! It is great opportunity for you to demonstrate your abilities to Balthus Knights. Do you have the courage to face <font color="LEVEL">Baium</font>?<br>
Although our main target is Antharas, Baium must be defeated first. Kill him and receive Rash's supplies as a reward. Use them wisely!<br>
I can only teleport characters of <font color="LEVEL">level 70</font> and higher. <font color="LEVEL">I will teleport an alliance consisting of 27-300 members to any village of the leader's choice.</font><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Ateld teleToBaium">Teleport to Baium</Button>
</body></html>

View File

@ -0,0 +1,71 @@
/*
* 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.areas.TowerOfInsolence.Ateld;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import ai.AbstractNpcAI;
/**
* @author Mobius
*/
public class Ateld extends AbstractNpcAI
{
// NPC
private static final int ATELD = 31714;
// Location
private static final Location TELEPORT_LOC = new Location(115322, 16756, 9012);
private Ateld()
{
addFirstTalkId(ATELD);
addTalkId(ATELD);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if (event.equals("teleToBaium"))
{
if ((player.getCommandChannel() == null) || (player.getCommandChannel().getMemberCount() < 27) || (player.getCommandChannel().getMemberCount() > 300))
{
return "31714-01.html";
}
for (L2PcInstance member : player.getCommandChannel().getMembers())
{
if ((member != null) && (member.getLevel() > 70))
{
member.teleToLocation(TELEPORT_LOC);
}
}
}
return null;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "31714.html";
}
public static void main(String[] args)
{
new Ateld();
}
}

View File

@ -1637,6 +1637,7 @@
<npc id="19133" x="115000" y="11209" z="-5120" heading="32767" respawnTime="60sec" /> <!-- Antharas -->
<npc id="19133" x="115000" y="11309" z="-5120" heading="32767" respawnTime="60sec" /> <!-- Antharas -->
<npc id="19133" x="115000" y="11409" z="-5120" heading="32767" respawnTime="60sec" /> <!-- Antharas -->
<npc id="31714" x="114922" y="11230" z="-5130" heading="336" respawnTime="60sec" /> <!-- Ateld -->
</group>
</spawn>
</list>

View File

@ -1,5 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="31714" level="75" type="L2Npc" name="Ateld" title="Balthus Knight">
<race>HUMAN</race>
<sex>FEMALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="3038" hpRegen="9.5" mp="1674" mpRegen="3.3" />
<speed>
<walk ground="60" />
<run ground="120" />
</speed>
<attack physical="0" magical="0" critical="4" attackSpeed="253" range="40" />
<defence physical="0" magical="0" />
</stats>
<status attackable="false" />
<collision>
<radius normal="7.0" />
<height normal="21.0" />
</collision>
</npc>
<npc id="31773" level="70" type="L2Warehouse" name="Sonin" title="Warehouse Keeper">
<parameters>
<param name="MoveAroundSocial" value="0" />