Addition of Atelia Refinery AI.
Source: Liamxroy
This commit is contained in:
4
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
4
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
11
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
4
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
11
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
122
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
122
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
/*
|
||||||
|
* 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.areas.AteliaRefinery;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
|
||||||
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NviX
|
||||||
|
*/
|
||||||
|
public class AteliaRefinery extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// NPC
|
||||||
|
private static final int ATELIA_REFINERY_TELEPORT_DEVICE = 34441;
|
||||||
|
// Special Mobs
|
||||||
|
private static final int HARKE = 24161;
|
||||||
|
private static final int ERGALION = 24162;
|
||||||
|
private static final int SPIRA = 24163;
|
||||||
|
// Mobs
|
||||||
|
private static final int[] MOBS =
|
||||||
|
{
|
||||||
|
24144, // Death Rogue
|
||||||
|
24145, // Death Shooter
|
||||||
|
24146, // Death Warrior
|
||||||
|
24147, // Death Sorcerer
|
||||||
|
24148, // Death Pondus
|
||||||
|
24149, // Devil Nightmare
|
||||||
|
24150, // Devil Warrior
|
||||||
|
24151, // Devil Guardian
|
||||||
|
24152, // Devil Sinist
|
||||||
|
24153, // Devil Varos
|
||||||
|
24154, // Demonic Wizard
|
||||||
|
24155, // Demonic Warrior
|
||||||
|
24156, // Demonic Archer
|
||||||
|
24157, // Demonic Keras
|
||||||
|
24158, // Demonic Weiss
|
||||||
|
24159, // Atelia Yuyurina
|
||||||
|
24160 // Atelia Popobena
|
||||||
|
};
|
||||||
|
|
||||||
|
private AteliaRefinery()
|
||||||
|
{
|
||||||
|
addTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addFirstTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addKillId(MOBS);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||||
|
{
|
||||||
|
String htmltext = null;
|
||||||
|
switch (event)
|
||||||
|
{
|
||||||
|
case "first_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-59493, 52620, -8610);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "second_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56096, 49688, -8729);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "third_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56160, 45406, -8847);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fourth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56140, 41067, -8965);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fifth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-251728, 178576, -8928);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
|
{
|
||||||
|
int chance = 1;
|
||||||
|
if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(HARKE, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(ERGALION, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(100000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(SPIRA, npc, false, 300000);
|
||||||
|
}
|
||||||
|
return super.onKill(npc, killer, isSummon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new AteliaRefinery();
|
||||||
|
}
|
||||||
|
}
|
4
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
4
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
11
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
4
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
11
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
122
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
122
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
/*
|
||||||
|
* 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.areas.AteliaRefinery;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
|
||||||
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NviX
|
||||||
|
*/
|
||||||
|
public class AteliaRefinery extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// NPC
|
||||||
|
private static final int ATELIA_REFINERY_TELEPORT_DEVICE = 34441;
|
||||||
|
// Special Mobs
|
||||||
|
private static final int HARKE = 24161;
|
||||||
|
private static final int ERGALION = 24162;
|
||||||
|
private static final int SPIRA = 24163;
|
||||||
|
// Mobs
|
||||||
|
private static final int[] MOBS =
|
||||||
|
{
|
||||||
|
24144, // Death Rogue
|
||||||
|
24145, // Death Shooter
|
||||||
|
24146, // Death Warrior
|
||||||
|
24147, // Death Sorcerer
|
||||||
|
24148, // Death Pondus
|
||||||
|
24149, // Devil Nightmare
|
||||||
|
24150, // Devil Warrior
|
||||||
|
24151, // Devil Guardian
|
||||||
|
24152, // Devil Sinist
|
||||||
|
24153, // Devil Varos
|
||||||
|
24154, // Demonic Wizard
|
||||||
|
24155, // Demonic Warrior
|
||||||
|
24156, // Demonic Archer
|
||||||
|
24157, // Demonic Keras
|
||||||
|
24158, // Demonic Weiss
|
||||||
|
24159, // Atelia Yuyurina
|
||||||
|
24160 // Atelia Popobena
|
||||||
|
};
|
||||||
|
|
||||||
|
private AteliaRefinery()
|
||||||
|
{
|
||||||
|
addTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addFirstTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addKillId(MOBS);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||||
|
{
|
||||||
|
String htmltext = null;
|
||||||
|
switch (event)
|
||||||
|
{
|
||||||
|
case "first_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-59493, 52620, -8610);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "second_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56096, 49688, -8729);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "third_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56160, 45406, -8847);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fourth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56140, 41067, -8965);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fifth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-251728, 178576, -8928);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
|
{
|
||||||
|
int chance = 1;
|
||||||
|
if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(HARKE, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(ERGALION, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(100000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(SPIRA, npc, false, 300000);
|
||||||
|
}
|
||||||
|
return super.onKill(npc, killer, isSummon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new AteliaRefinery();
|
||||||
|
}
|
||||||
|
}
|
4
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
4
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34223-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
11
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34223.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
4
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Giant Pursuers Teleport Device:<br>
|
||||||
|
In order to teleport to the three areas at the entrance to the upper level of the Giant's Cave, you need to have a faction level of 4 or higher with the Blackbird Clan.<br>
|
||||||
|
Your faction level with the Blackbird Clan is lower than 4. You may not teleport.
|
||||||
|
</body></html>
|
11
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
11
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<html><body>Atelia Refinery Teleport Device:<br>
|
||||||
|
This is a Teleport to Atelia Refinery.<br>
|
||||||
|
To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.<br><br>
|
||||||
|
<center>Qualification - <font color="LEVEL">Blackbird Clan faction level 4 and above</font><br1>
|
||||||
|
Location - Entrance to Atelia Refinery, region, controlled by Demonic Pontus, region, controlled by Devil Varos, region controlled by Demonic Weiss</center><br><br>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the entrance</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fifth_area">Teleport to the Atelia Outlet</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the Demonic Pontus region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the Devil Varos region</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery fourth_area">Teleport to the Demonic Weiss Region</Button>
|
||||||
|
</body></html>
|
122
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
122
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
vendored
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
/*
|
||||||
|
* 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.areas.AteliaRefinery;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
|
||||||
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NviX
|
||||||
|
*/
|
||||||
|
public class AteliaRefinery extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// NPC
|
||||||
|
private static final int ATELIA_REFINERY_TELEPORT_DEVICE = 34441;
|
||||||
|
// Special Mobs
|
||||||
|
private static final int HARKE = 24161;
|
||||||
|
private static final int ERGALION = 24162;
|
||||||
|
private static final int SPIRA = 24163;
|
||||||
|
// Mobs
|
||||||
|
private static final int[] MOBS =
|
||||||
|
{
|
||||||
|
24144, // Death Rogue
|
||||||
|
24145, // Death Shooter
|
||||||
|
24146, // Death Warrior
|
||||||
|
24147, // Death Sorcerer
|
||||||
|
24148, // Death Pondus
|
||||||
|
24149, // Devil Nightmare
|
||||||
|
24150, // Devil Warrior
|
||||||
|
24151, // Devil Guardian
|
||||||
|
24152, // Devil Sinist
|
||||||
|
24153, // Devil Varos
|
||||||
|
24154, // Demonic Wizard
|
||||||
|
24155, // Demonic Warrior
|
||||||
|
24156, // Demonic Archer
|
||||||
|
24157, // Demonic Keras
|
||||||
|
24158, // Demonic Weiss
|
||||||
|
24159, // Atelia Yuyurina
|
||||||
|
24160 // Atelia Popobena
|
||||||
|
};
|
||||||
|
|
||||||
|
private AteliaRefinery()
|
||||||
|
{
|
||||||
|
addTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addFirstTalkId(ATELIA_REFINERY_TELEPORT_DEVICE);
|
||||||
|
addKillId(MOBS);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||||
|
{
|
||||||
|
String htmltext = null;
|
||||||
|
switch (event)
|
||||||
|
{
|
||||||
|
case "first_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-59493, 52620, -8610);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "second_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56096, 49688, -8729);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "third_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56160, 45406, -8847);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fourth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-56140, 41067, -8965);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "fifth_area":
|
||||||
|
{
|
||||||
|
player.teleToLocation(-251728, 178576, -8928);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
|
{
|
||||||
|
int chance = 1;
|
||||||
|
if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(HARKE, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(10000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(ERGALION, npc, false, 300000);
|
||||||
|
}
|
||||||
|
else if (getRandom(100000) < chance)
|
||||||
|
{
|
||||||
|
addSpawn(SPIRA, npc, false, 300000);
|
||||||
|
}
|
||||||
|
return super.onKill(npc, killer, isSummon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new AteliaRefinery();
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user