Dark Omens drop and NPC updates.
Contributed by Stayway.
This commit is contained in:
parent
e858fb2e9b
commit
73c97478d2
1
trunk/dist/game/data/scripts.cfg
vendored
1
trunk/dist/game/data/scripts.cfg
vendored
@ -64,6 +64,7 @@ ai/npc/SupportUnitCaptain/SupportUnitCaptain.java
|
|||||||
ai/npc/SymbolMaker/SymbolMaker.java
|
ai/npc/SymbolMaker/SymbolMaker.java
|
||||||
ai/npc/Teleports/AnghelWaterfallPortal/AnghelWaterfallPortal.java
|
ai/npc/Teleports/AnghelWaterfallPortal/AnghelWaterfallPortal.java
|
||||||
ai/npc/Teleports/CrumaTower/CrumaTower.java
|
ai/npc/Teleports/CrumaTower/CrumaTower.java
|
||||||
|
ai/npc/Teleports/DarkOmens/DarkOmens.java
|
||||||
ai/npc/Teleports/DelusionTeleport/DelusionTeleport.java
|
ai/npc/Teleports/DelusionTeleport/DelusionTeleport.java
|
||||||
ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
|
ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
|
||||||
ai/npc/Teleports/GiantServant/GiantServant.java
|
ai/npc/Teleports/GiantServant/GiantServant.java
|
||||||
|
4
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31118-1.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31118-1.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Gatekeeper Ziggurat:<br>
|
||||||
|
A human-like voice comes from a glowing blue orb:.<br>
|
||||||
|
Someone already went in, and Lilith disappeared soon after. There is no point in entering right now.<br>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31118.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31118.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Gatekeeper Ziggurat:<br>
|
||||||
|
A human-like voice comes from a glowing blue orb:<br>
|
||||||
|
Behold the gateway to the Forbidden Sanctuary! No one can pass without my permission<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DarkOmens chat1">"I kinda want to teleport inside."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31124.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/31124.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Gatekeeper Ziggurat:<br>
|
||||||
|
A human-like voice comes from a glowing blue orb:<br>
|
||||||
|
Behold the gateway to the Forbidden Sanctuary! No one can pass without my permission<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DarkOmens chat2">"I kinda want to teleport outside."</Button>
|
||||||
|
</body></html>
|
75
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/DarkOmens.java
vendored
Normal file
75
trunk/dist/game/data/scripts/ai/npc/Teleports/DarkOmens/DarkOmens.java
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2004-2015 L2J DataPack
|
||||||
|
*
|
||||||
|
* This file is part of L2J DataPack.
|
||||||
|
*
|
||||||
|
* L2J DataPack 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.
|
||||||
|
*
|
||||||
|
* L2J DataPack 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.Teleports.DarkOmens;
|
||||||
|
|
||||||
|
import ai.npc.AbstractNpcAI;
|
||||||
|
|
||||||
|
import com.l2jserver.gameserver.model.Location;
|
||||||
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||||
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dark Omens teleport AI.
|
||||||
|
* @author Stayway
|
||||||
|
*/
|
||||||
|
public final class DarkOmens extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// NPC
|
||||||
|
private static final int ZIGURAT_IN = 31118;
|
||||||
|
private static final int ZIGURAT_OUT = 31124;
|
||||||
|
// Locations
|
||||||
|
private static final Location TELEPORT_LOC1 = new Location(-19203, 13517, -4899);
|
||||||
|
private static final Location TELEPORT_LOC2 = new Location(-20091, 13499, -4901);
|
||||||
|
|
||||||
|
private DarkOmens()
|
||||||
|
{
|
||||||
|
super(DarkOmens.class.getSimpleName(), "ai/npc/Teleports");
|
||||||
|
addFirstTalkId(ZIGURAT_IN, ZIGURAT_OUT);
|
||||||
|
addStartNpc(ZIGURAT_IN, ZIGURAT_OUT);
|
||||||
|
addTalkId(ZIGURAT_IN, ZIGURAT_OUT);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
if (event.equals("chat1"))
|
||||||
|
{
|
||||||
|
if ((player.getLevel() < 90) && (player.getLevel() >= 85))
|
||||||
|
{
|
||||||
|
player.teleToLocation(TELEPORT_LOC1, true);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return "31118-1.htm";
|
||||||
|
}
|
||||||
|
else if (event.equals("chat2"))
|
||||||
|
{
|
||||||
|
if ((player.getLevel() < 90) && (player.getLevel() >= 85))
|
||||||
|
{
|
||||||
|
player.teleToLocation(TELEPORT_LOC2, true);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return event;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new DarkOmens();
|
||||||
|
}
|
||||||
|
}
|
@ -784,7 +784,7 @@
|
|||||||
<height normal="15" />
|
<height normal="15" />
|
||||||
</collision>
|
</collision>
|
||||||
</npc>
|
</npc>
|
||||||
<npc id="31118" level="99" type="L2Npc" name="Gatekeeper Ziggurat">
|
<npc id="31118" level="99" type="L2Teleporter" name="Gatekeeper Ziggurat">
|
||||||
<parameters>
|
<parameters>
|
||||||
<param name="Role" value="0" />
|
<param name="Role" value="0" />
|
||||||
<param name="SignNumber" value="2" />
|
<param name="SignNumber" value="2" />
|
||||||
|
Loading…
Reference in New Issue
Block a user