Harnak Underground teleport.
Contributed by hlwrave.
This commit is contained in:
@@ -2,6 +2,6 @@
|
|||||||
This place is forsaken and forgotten...a resting place for my master. Where do you head from here, lowly one?<br>
|
This place is forsaken and forgotten...a resting place for my master. Where do you head from here, lowly one?<br>
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me about the Reliquary of the Giants."</Button>
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me about the Reliquary of the Giants."</Button>
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_goto 3334401">"I'll go to the Reliquary of the Giants now."</Button>
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_goto 3334401">"I'll go to the Reliquary of the Giants now."</Button>
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Harnak Underground Ruins!" (only for characters of level 85 or higher who have gone through awakening or the 3rd liberation)</Button>
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest HarnakUnderground">"Harnak Underground Ruins!" (only for characters of level 85 or higher who have gone through awakening or the 3rd liberation)</Button>
|
||||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||||
</body></html>
|
</body></html>
|
1
trunk/dist/game/data/scripts.cfg
vendored
1
trunk/dist/game/data/scripts.cfg
vendored
@@ -72,6 +72,7 @@ ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
|
|||||||
ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java
|
ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java
|
||||||
ai/npc/Teleports/GiantServant/GiantServant.java
|
ai/npc/Teleports/GiantServant/GiantServant.java
|
||||||
ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java
|
ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java
|
||||||
|
ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
|
||||||
ai/npc/Teleports/KargosTeleport/KargosTeleport.java
|
ai/npc/Teleports/KargosTeleport/KargosTeleport.java
|
||||||
ai/npc/Teleports/Klemis/Klemis.java
|
ai/npc/Teleports/Klemis/Klemis.java
|
||||||
ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java
|
ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java
|
||||||
|
66
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
vendored
Normal file
66
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
vendored
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* 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.Teleports.HarnakUnderground;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author hlwrave
|
||||||
|
*/
|
||||||
|
final class HarnakUnderground extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// NPC
|
||||||
|
private final static int HADEL = 33344;
|
||||||
|
// Misc
|
||||||
|
private final static int MIN_LEVEL = 85;
|
||||||
|
// Location
|
||||||
|
private final static Location HARNAK_UNDERGROUND = new Location(-114700, 147909, -7720);
|
||||||
|
|
||||||
|
private HarnakUnderground()
|
||||||
|
{
|
||||||
|
super(HarnakUnderground.class.getSimpleName(), "ai/npc/Teleports");
|
||||||
|
addStartNpc(HADEL);
|
||||||
|
addTalkId(HADEL);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
if ((player.getLevel() >= MIN_LEVEL) && (player.isAwaken()))
|
||||||
|
{
|
||||||
|
player.teleToLocation(HARNAK_UNDERGROUND);
|
||||||
|
}
|
||||||
|
else if (player.getLevel() < MIN_LEVEL)
|
||||||
|
{
|
||||||
|
return "no_level.htm";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "non_awakened.htm";
|
||||||
|
}
|
||||||
|
return super.onTalk(npc, player);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new HarnakUnderground();
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/no_level.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/no_level.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Hadel:<br>
|
||||||
|
I do not believe our paths are meant to cross here. Perhaps later down the road.<br>
|
||||||
|
(Only characters Lv. 85. or Above)
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/non_awakened.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/non_awakened.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Hadel:<br>
|
||||||
|
Sorry, I can't teleport you to "Harnak Underground Ruins!". Come back when you have Awakened to it.
|
||||||
|
</body></html>
|
Reference in New Issue
Block a user