Addition of Cyrax AI.

This commit is contained in:
MobiusDev
2019-03-07 11:38:25 +00:00
parent 5f57497c45
commit d32df0105e
3 changed files with 65 additions and 12 deletions

View File

@@ -0,0 +1,45 @@
/*
* 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.bosses.Cyrax;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import ai.AbstractNpcAI;
/**
* @author Mobius
*/
public final class Cyrax extends AbstractNpcAI
{
// NPC
private static final int CYRAX = 29374;
// Item
private static final int FONDUS_STONE = 80322;
public Cyrax()
{
addKillId(CYRAX);
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
npc.dropItem(killer, FONDUS_STONE, 1);
return super.onKill(npc, killer, isSummon);
}
}