Moved Gracia scripts to zones package.
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
<html><body>Gracia Survivor:<br>
|
||||
There is a place at the western end of Aden, on the shores of the Sea of Gludio, where airships depart for Gracia. It's a wharf created through ancient Giant technology and the best Aden engineers.<br>
|
||||
Since it floats in mid-air, however, there's no way to go there directly. The only way is to teleport there directly. A gatekeeper from Talking Island or Gludio Castle Village can send you there.<br>
|
||||
We are desperate for help. If you are willing, I can send you up to Gludio Airship Wharf myself. But because some items are consumed, I must charge you something. I feel almost ashamed to ask.<br>
|
||||
I only hope you will see it as a donation to Gracia. If you can't afford it, the Gatekeeper in Gludio Castle Village or Talking Island can also send you there. What would you like to do?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Survivor 32632-2.htm">Move to Gludio Airship Wharf (150,000 Adena).</Button>
|
||||
</body></html>
|
@@ -1,4 +0,0 @@
|
||||
<html><body>Gracia Survivor:<br>
|
||||
I understand. But as I told you earlier, if you're short of money, you can still get to Gracia through another route.<br>
|
||||
Visit the gatekeeper in Gludio Castle Village or Talking Island, and they can send you to the Airship Wharf. I hope you will do so. We can use everyone we can!
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>Gracia Survivor:<br>
|
||||
I understand. But Gracia is not a place to be taken lightly. Given your inexperience, even if you go there you would only be a liability to the effort.<br>
|
||||
Aden also has many monsters and the need for adventurers to fight them. Build skills here, then go to Gracia.<br>
|
||||
(It is recommended that only characters who are level 75 or higher travel to Gracia.)
|
||||
</body></html>
|
@@ -1,80 +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.Survivor;
|
||||
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
|
||||
import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Gracia Survivor teleport AI.<br>
|
||||
* Original Jython script by Kerberos.
|
||||
* @author Plim
|
||||
*/
|
||||
final class Survivor extends AbstractNpcAI
|
||||
{
|
||||
// NPC
|
||||
private static final int SURVIVOR = 32632;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 75;
|
||||
// Location
|
||||
private static final Location TELEPORT = new Location(-149406, 255247, -80);
|
||||
|
||||
private Survivor()
|
||||
{
|
||||
super(Survivor.class.getSimpleName(), "ai/npc/Teleports");
|
||||
addStartNpc(SURVIVOR);
|
||||
addTalkId(SURVIVOR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
if ("32632-2.htm".equals(event))
|
||||
{
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
event = "32632-3.htm";
|
||||
}
|
||||
else if (player.getAdena() < 150000)
|
||||
{
|
||||
return event;
|
||||
}
|
||||
else
|
||||
{
|
||||
takeItems(player, Inventory.ADENA_ID, 150000);
|
||||
player.teleToLocation(TELEPORT);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return "32632-1.htm";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Survivor();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user