Moved Primeval Isle scripts to zones package.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<html><body>Orahochin:<br>
|
||||
Oh ho -- you have sought me out while battling the dinosaurs, have you? And now you ask me to teleport you to that place? That island was created as as a sanctuary; it is my duty is to protect its inhabitants from external harm. I certainly have no intention of making that place a refuge for reckless adventurers! It is my policy not to teleport any who are engaged in battle, so return after the battle has ended.
|
||||
</body></html>
|
@@ -1,6 +0,0 @@
|
||||
<html><body>Orahochin:<br>
|
||||
Welcome! I am Orahochin, proud warrior of the Elroki tribe! I was sent here to guard this place. In truth, I guard the hope and future of the tribe itself. You don't understand? Ah, my young friend, I hope your feet are quicker than your wits! Ha ha!<br>
|
||||
See the island over there? There you will find a village of innocent, peaceful Elroki natives. They are far different than the degraded Elrokhians you find here, that I can assure you.<br>
|
||||
To protect them, I will transport only those to the island that mean them no harm. Ah... You don't seem like the dangerous sort -- I will teleport you to the island if you wish.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest ElrokiTeleporters">Teleport.</Button>
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Gariachin:<br>
|
||||
Oh, no! This is not good, not good at all. My sincerest apologies -- I cannot tell you what happened in detail -- but I cannot teleport you to your destination at the moment. I'm terribly sorry for the inconvenience.
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>Gariachin:<br>
|
||||
Welcome! I am Gariachin. I am entrusted with the teleportation of visitors to this island. It may sound strange to you, but I've come to love this island and respect its people. It is a precious place, housing the hope, wisdom and future of the Elroki tribe.<br>
|
||||
I will transport you to the southern beach of the Primeval Plains. If you have the chance, will you send my regards to my friend, Orahochin?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest ElrokiTeleporters">Teleport.</Button>
|
||||
</body></html>
|
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* 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.ElrokiTeleporters;
|
||||
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Elroki teleport AI.
|
||||
* @author Plim
|
||||
*/
|
||||
final class ElrokiTeleporters extends AbstractNpcAI
|
||||
{
|
||||
// NPCs
|
||||
private static final int ORAHOCHIN = 32111;
|
||||
private static final int GARIACHIN = 32112;
|
||||
// Locations
|
||||
private static final Location TELEPORT_ORAHOCIN = new Location(4990, -1879, -3178);
|
||||
private static final Location TELEPORT_GARIACHIN = new Location(7557, -5513, -3221);
|
||||
|
||||
private ElrokiTeleporters()
|
||||
{
|
||||
super(ElrokiTeleporters.class.getSimpleName(), "ai/npc/Teleports");
|
||||
addFirstTalkId(ORAHOCHIN, GARIACHIN);
|
||||
addStartNpc(ORAHOCHIN, GARIACHIN);
|
||||
addTalkId(ORAHOCHIN, GARIACHIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance talker)
|
||||
{
|
||||
if (!talker.isInCombat())
|
||||
{
|
||||
talker.teleToLocation((npc.getId() == ORAHOCHIN) ? TELEPORT_ORAHOCIN : TELEPORT_GARIACHIN);
|
||||
}
|
||||
else
|
||||
{
|
||||
return npc.getId() + "-no.html";
|
||||
}
|
||||
return super.onTalk(npc, talker);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new ElrokiTeleporters();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user