Refactored scripts to match newer branches.
This commit is contained in:
@@ -28,9 +28,9 @@ import com.l2jmobius.gameserver.model.quest.Quest;
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractNpcAI extends Quest
|
public abstract class AbstractNpcAI extends Quest
|
||||||
{
|
{
|
||||||
public AbstractNpcAI(String name, String descr)
|
public AbstractNpcAI()
|
||||||
{
|
{
|
||||||
super(-1, name, descr);
|
super(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.BeastFarm;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -109,7 +109,6 @@ public final class BeastFarm extends AbstractNpcAI
|
|||||||
|
|
||||||
private BeastFarm()
|
private BeastFarm()
|
||||||
{
|
{
|
||||||
super(BeastFarm.class.getSimpleName(), "ai/group_template");
|
|
||||||
addSkillSeeId(FEEDABLE_BEASTS);
|
addSkillSeeId(FEEDABLE_BEASTS);
|
||||||
addKillId(FEEDABLE_BEASTS);
|
addKillId(FEEDABLE_BEASTS);
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.BeastFarm;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -180,7 +180,6 @@ public final class FeedableBeasts extends AbstractNpcAI
|
|||||||
|
|
||||||
private FeedableBeasts()
|
private FeedableBeasts()
|
||||||
{
|
{
|
||||||
super(FeedableBeasts.class.getSimpleName(), "ai/group_template");
|
|
||||||
addKillId(FEEDABLE_BEASTS);
|
addKillId(FEEDABLE_BEASTS);
|
||||||
addSkillSeeId(FEEDABLE_BEASTS);
|
addSkillSeeId(FEEDABLE_BEASTS);
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Tunatun;
|
package ai.areas.BeastFarm.Tunatun;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
@@ -38,7 +38,6 @@ public final class Tunatun extends AbstractNpcAI
|
|||||||
|
|
||||||
private Tunatun()
|
private Tunatun()
|
||||||
{
|
{
|
||||||
super(Tunatun.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(TUNATUN);
|
addStartNpc(TUNATUN);
|
||||||
addFirstTalkId(TUNATUN);
|
addFirstTalkId(TUNATUN);
|
||||||
addTalkId(TUNATUN);
|
addTalkId(TUNATUN);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Alarm;
|
package ai.areas.CrumaTower.Alarm;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ChatType;
|
import com.l2jmobius.gameserver.enums.ChatType;
|
||||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||||
@@ -41,7 +41,6 @@ public final class Alarm extends AbstractNpcAI
|
|||||||
|
|
||||||
private Alarm()
|
private Alarm()
|
||||||
{
|
{
|
||||||
super(Alarm.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(ALARM);
|
addStartNpc(ALARM);
|
||||||
addTalkId(ALARM);
|
addTalkId(ALARM);
|
||||||
addFirstTalkId(ALARM);
|
addFirstTalkId(ALARM);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Teleports.CrumaTower;
|
package ai.areas.CrumaTower;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.Location;
|
import com.l2jmobius.gameserver.model.Location;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -38,7 +38,6 @@ public final class CrumaTower extends AbstractNpcAI
|
|||||||
|
|
||||||
private CrumaTower()
|
private CrumaTower()
|
||||||
{
|
{
|
||||||
super(CrumaTower.class.getSimpleName(), "ai/npc/Teleports");
|
|
||||||
addFirstTalkId(MOZELLA);
|
addFirstTalkId(MOZELLA);
|
||||||
addStartNpc(MOZELLA);
|
addStartNpc(MOZELLA);
|
||||||
addTalkId(MOZELLA);
|
addTalkId(MOZELLA);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.CrumaTower;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -39,7 +39,6 @@ public final class SummonPc extends AbstractNpcAI
|
|||||||
|
|
||||||
private SummonPc()
|
private SummonPc()
|
||||||
{
|
{
|
||||||
super(SummonPc.class.getSimpleName(), "ai/group_template");
|
|
||||||
addAttackId(PORTA, PERUM);
|
addAttackId(PORTA, PERUM);
|
||||||
addSpellFinishedId(PORTA, PERUM);
|
addSpellFinishedId(PORTA, PERUM);
|
||||||
}
|
}
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.DenOfEvil;
|
||||||
|
|
||||||
import com.l2jmobius.commons.concurrent.ThreadPool;
|
import com.l2jmobius.commons.concurrent.ThreadPool;
|
||||||
import com.l2jmobius.gameserver.datatables.SkillData;
|
import com.l2jmobius.gameserver.datatables.SkillData;
|
||||||
@@ -96,7 +96,6 @@ public final class DenOfEvil extends AbstractNpcAI
|
|||||||
|
|
||||||
private DenOfEvil()
|
private DenOfEvil()
|
||||||
{
|
{
|
||||||
super(DenOfEvil.class.getSimpleName(), "ai/group_template");
|
|
||||||
addKillId(EYE_IDS);
|
addKillId(EYE_IDS);
|
||||||
addSpawnId(EYE_IDS);
|
addSpawnId(EYE_IDS);
|
||||||
for (Location loc : EYE_SPAWNS)
|
for (Location loc : EYE_SPAWNS)
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.individual;
|
package ai.areas.DenOfEvil;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||||
import com.l2jmobius.gameserver.enums.ChatType;
|
import com.l2jmobius.gameserver.enums.ChatType;
|
||||||
@@ -46,7 +46,6 @@ public final class FrightenedRagnaOrc extends AbstractNpcAI
|
|||||||
|
|
||||||
private FrightenedRagnaOrc()
|
private FrightenedRagnaOrc()
|
||||||
{
|
{
|
||||||
super(FrightenedRagnaOrc.class.getSimpleName(), "ai/individual");
|
|
||||||
addAttackId(MOB_ID);
|
addAttackId(MOB_ID);
|
||||||
addKillId(MOB_ID);
|
addKillId(MOB_ID);
|
||||||
}
|
}
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.individual;
|
package ai.areas.DenOfEvil;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
|
|
||||||
@@ -30,7 +30,6 @@ public final class RagnaOrcCommander extends AbstractNpcAI
|
|||||||
|
|
||||||
private RagnaOrcCommander()
|
private RagnaOrcCommander()
|
||||||
{
|
{
|
||||||
super(RagnaOrcCommander.class.getSimpleName(), "ai/individual");
|
|
||||||
addSpawnId(RAGNA_ORC_COMMANDER);
|
addSpawnId(RAGNA_ORC_COMMANDER);
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.individual;
|
package ai.areas.DenOfEvil;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
|
|
||||||
@@ -30,7 +30,6 @@ public final class RagnaOrcHero extends AbstractNpcAI
|
|||||||
|
|
||||||
private RagnaOrcHero()
|
private RagnaOrcHero()
|
||||||
{
|
{
|
||||||
super(RagnaOrcHero.class.getSimpleName(), "ai/individual");
|
|
||||||
addSpawnId(RAGNA_ORC_HERO);
|
addSpawnId(RAGNA_ORC_HERO);
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.individual;
|
package ai.areas.DenOfEvil;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
|
|
||||||
@@ -30,7 +30,6 @@ public final class RagnaOrcSeer extends AbstractNpcAI
|
|||||||
|
|
||||||
private RagnaOrcSeer()
|
private RagnaOrcSeer()
|
||||||
{
|
{
|
||||||
super(RagnaOrcSeer.class.getSimpleName(), "ai/individual");
|
|
||||||
addSpawnId(RAGNA_ORC_SEER);
|
addSpawnId(RAGNA_ORC_SEER);
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.DragonValley;
|
||||||
|
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
|
|
||||||
@@ -127,7 +127,6 @@ public final class DragonValley extends AbstractNpcAI
|
|||||||
|
|
||||||
private DragonValley()
|
private DragonValley()
|
||||||
{
|
{
|
||||||
super(DragonValley.class.getSimpleName(), "ai/group_template");
|
|
||||||
addAttackId(NECROMANCER_OF_THE_VALLEY);
|
addAttackId(NECROMANCER_OF_THE_VALLEY);
|
||||||
addAttackId(SUMMON_NPC);
|
addAttackId(SUMMON_NPC);
|
||||||
addKillId(NECROMANCER_OF_THE_VALLEY);
|
addKillId(NECROMANCER_OF_THE_VALLEY);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.DragonVortex;
|
package ai.areas.DragonValley.DragonVortex;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.Location;
|
import com.l2jmobius.gameserver.model.Location;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -51,7 +51,6 @@ public final class DragonVortex extends AbstractNpcAI
|
|||||||
|
|
||||||
private DragonVortex()
|
private DragonVortex()
|
||||||
{
|
{
|
||||||
super(DragonVortex.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(DRAGON_VORTEX);
|
addStartNpc(DRAGON_VORTEX);
|
||||||
addFirstTalkId(DRAGON_VORTEX);
|
addFirstTalkId(DRAGON_VORTEX);
|
||||||
addTalkId(DRAGON_VORTEX);
|
addTalkId(DRAGON_VORTEX);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.DragonValley;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ChatType;
|
import com.l2jmobius.gameserver.enums.ChatType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||||
@@ -46,7 +46,6 @@ public final class LairOfAntharas extends AbstractNpcAI
|
|||||||
|
|
||||||
private LairOfAntharas()
|
private LairOfAntharas()
|
||||||
{
|
{
|
||||||
super(LairOfAntharas.class.getSimpleName(), "ai/group_template");
|
|
||||||
addKillId(DRAGON_KNIGHT, DRAGON_KNIGHT2, DRAGON_GUARD, DRAGON_MAGE);
|
addKillId(DRAGON_KNIGHT, DRAGON_KNIGHT2, DRAGON_GUARD, DRAGON_MAGE);
|
||||||
addSpawnId(DRAGON_KNIGHT, DRAGON_KNIGHT2, DRAGON_GUARD, DRAGON_MAGE);
|
addSpawnId(DRAGON_KNIGHT, DRAGON_KNIGHT2, DRAGON_GUARD, DRAGON_MAGE);
|
||||||
addMoveFinishedId(DRAGON_GUARD, DRAGON_MAGE);
|
addMoveFinishedId(DRAGON_GUARD, DRAGON_MAGE);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Teleports.SeparatedSoul;
|
package ai.areas.DragonValley.SeparatedSoul;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -66,7 +66,6 @@ public final class SeparatedSoul extends AbstractNpcAI
|
|||||||
|
|
||||||
private SeparatedSoul()
|
private SeparatedSoul()
|
||||||
{
|
{
|
||||||
super(SeparatedSoul.class.getSimpleName(), "ai/npc/Teleports");
|
|
||||||
addStartNpc(SEPARATED_SOULS);
|
addStartNpc(SEPARATED_SOULS);
|
||||||
addTalkId(SEPARATED_SOULS);
|
addTalkId(SEPARATED_SOULS);
|
||||||
}
|
}
|
@@ -14,24 +14,25 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.fantasy_isle;
|
package ai.areas.FantasyIsle;
|
||||||
|
|
||||||
import com.l2jmobius.Config;
|
import com.l2jmobius.Config;
|
||||||
import com.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
|
import com.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
|
||||||
import com.l2jmobius.gameserver.model.ArenaParticipantsHolder;
|
import com.l2jmobius.gameserver.model.ArenaParticipantsHolder;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
|
||||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameChangeTimeToStart;
|
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameChangeTimeToStart;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameRequestReady;
|
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameRequestReady;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameTeamList;
|
import com.l2jmobius.gameserver.network.serverpackets.ExCubeGameTeamList;
|
||||||
|
|
||||||
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handys Block Checker Event AI.
|
* Handys Block Checker Event AI.
|
||||||
* @authors BiggBoss, Gigiikun
|
* @authors BiggBoss, Gigiikun
|
||||||
*/
|
*/
|
||||||
public final class HandysBlockCheckerEvent extends Quest
|
public class HandysBlockCheckerEvent extends AbstractNpcAI
|
||||||
{
|
{
|
||||||
// Arena Managers
|
// Arena Managers
|
||||||
private static final int A_MANAGER_1 = 32521;
|
private static final int A_MANAGER_1 = 32521;
|
||||||
@@ -41,7 +42,6 @@ public final class HandysBlockCheckerEvent extends Quest
|
|||||||
|
|
||||||
public HandysBlockCheckerEvent()
|
public HandysBlockCheckerEvent()
|
||||||
{
|
{
|
||||||
super(-1, HandysBlockCheckerEvent.class.getSimpleName(), "Handy's Block Checker Event");
|
|
||||||
addFirstTalkId(A_MANAGER_1, A_MANAGER_2, A_MANAGER_3, A_MANAGER_4);
|
addFirstTalkId(A_MANAGER_1, A_MANAGER_2, A_MANAGER_3, A_MANAGER_4);
|
||||||
HandysBlockCheckerManager.getInstance().startUpParticipantsQueue();
|
HandysBlockCheckerManager.getInstance().startUpParticipantsQueue();
|
||||||
}
|
}
|
@@ -35,7 +35,6 @@ public final class KrateisCube extends AbstractNpcAI
|
|||||||
|
|
||||||
public KrateisCube()
|
public KrateisCube()
|
||||||
{
|
{
|
||||||
super(KrateisCube.class.getSimpleName(), "Krateis Cube");
|
|
||||||
addStartNpc(MANAGER);
|
addStartNpc(MANAGER);
|
||||||
addFirstTalkId(MANAGER);
|
addFirstTalkId(MANAGER);
|
||||||
addTalkId(MANAGER);
|
addTalkId(MANAGER);
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.fantasy_isle;
|
package ai.areas.FantasyIsle;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
@@ -127,8 +127,6 @@ public final class Parade extends AbstractNpcAI
|
|||||||
|
|
||||||
public Parade()
|
public Parade()
|
||||||
{
|
{
|
||||||
super(Parade.class.getSimpleName(), "ai/fantasy_isle");
|
|
||||||
|
|
||||||
// Starts at 8:00 and repeats every 6 hours.
|
// Starts at 8:00 and repeats every 6 hours.
|
||||||
final long diff = timeLeftMilli(8, 0, 0), cycle = 3600000L;
|
final long diff = timeLeftMilli(8, 0, 0), cycle = 3600000L;
|
||||||
ThreadPool.scheduleAtFixedRate(new Start(), diff, cycle);
|
ThreadPool.scheduleAtFixedRate(new Start(), diff, cycle);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.fantasy_isle;
|
package ai.areas.FantasyIsle;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -166,7 +166,6 @@ public final class TalentShow extends AbstractNpcAI
|
|||||||
|
|
||||||
private TalentShow()
|
private TalentShow()
|
||||||
{
|
{
|
||||||
super(TalentShow.class.getSimpleName(), "ai/fantasy_isle");
|
|
||||||
addSpawnId(32433, 32431, 32432, 32442, 32443, 32444, 32445, 32446, 32424, 32425, 32426, 32427, 32428);
|
addSpawnId(32433, 32431, 32432, 32442, 32443, 32444, 32445, 32446, 32424, 32425, 32426, 32427, 32428);
|
||||||
load();
|
load();
|
||||||
scheduleTimer();
|
scheduleTimer();
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.ForgeOfTheGods;
|
package ai.areas.ForgeOfTheGods;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||||
@@ -82,7 +82,6 @@ public final class ForgeOfTheGods extends AbstractNpcAI
|
|||||||
|
|
||||||
private ForgeOfTheGods()
|
private ForgeOfTheGods()
|
||||||
{
|
{
|
||||||
super(ForgeOfTheGods.class.getSimpleName(), "ai/npc");
|
|
||||||
addKillId(FOG_MOBS);
|
addKillId(FOG_MOBS);
|
||||||
addSpawnId(LAVASAURUSES);
|
addSpawnId(LAVASAURUSES);
|
||||||
startQuestTimer("refresh", REFRESH * 1000, null, null, true);
|
startQuestTimer("refresh", REFRESH * 1000, null, null, true);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.ForgeOfTheGods;
|
package ai.areas.ForgeOfTheGods;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ChatType;
|
import com.l2jmobius.gameserver.enums.ChatType;
|
||||||
import com.l2jmobius.gameserver.model.Location;
|
import com.l2jmobius.gameserver.model.Location;
|
||||||
@@ -79,7 +79,6 @@ public final class Rooney extends AbstractNpcAI
|
|||||||
|
|
||||||
private Rooney()
|
private Rooney()
|
||||||
{
|
{
|
||||||
super(Rooney.class.getSimpleName(), "ai/npc");
|
|
||||||
addSeeCreatureId(ROONEY);
|
addSeeCreatureId(ROONEY);
|
||||||
addSpawn(ROONEY, LOCATIONS[getRandom(LOCATIONS.length)], false, 0);
|
addSpawn(ROONEY, LOCATIONS[getRandom(LOCATIONS.length)], false, 0);
|
||||||
}
|
}
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.ForgeOfTheGods;
|
package ai.areas.ForgeOfTheGods;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
@@ -45,7 +45,6 @@ public final class TarBeetle extends AbstractNpcAI
|
|||||||
|
|
||||||
private TarBeetle()
|
private TarBeetle()
|
||||||
{
|
{
|
||||||
super(TarBeetle.class.getSimpleName(), "ai/npc");
|
|
||||||
addAggroRangeEnterId(TAR_BEETLE);
|
addAggroRangeEnterId(TAR_BEETLE);
|
||||||
addSpellFinishedId(TAR_BEETLE);
|
addSpellFinishedId(TAR_BEETLE);
|
||||||
}
|
}
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.ForgeOfTheGods;
|
package ai.areas.ForgeOfTheGods;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -53,7 +53,7 @@ public class TarBeetleSpawn implements IGameXmlReader
|
|||||||
@Override
|
@Override
|
||||||
public void load()
|
public void load()
|
||||||
{
|
{
|
||||||
parseDatapackFile("data/scripts/ai/npc/ForgeOfTheGods/tar_beetle.xml");
|
parseDatapackFile("data/scripts/ai/areas/ForgeOfTheGods/tar_beetle.xml");
|
||||||
if (!zones.isEmpty())
|
if (!zones.isEmpty())
|
||||||
{
|
{
|
||||||
spawnTask = ThreadPool.scheduleAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);
|
spawnTask = ThreadPool.scheduleAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.FreyasSteward;
|
package ai.areas.FrozenLabyrinth.FreyasSteward;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.Location;
|
import com.l2jmobius.gameserver.model.Location;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -37,7 +37,6 @@ public final class FreyasSteward extends AbstractNpcAI
|
|||||||
|
|
||||||
private FreyasSteward()
|
private FreyasSteward()
|
||||||
{
|
{
|
||||||
super(FreyasSteward.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(FREYAS_STEWARD);
|
addStartNpc(FREYAS_STEWARD);
|
||||||
addFirstTalkId(FREYAS_STEWARD);
|
addFirstTalkId(FREYAS_STEWARD);
|
||||||
addTalkId(FREYAS_STEWARD);
|
addTalkId(FREYAS_STEWARD);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.FrozenLabyrinth;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
@@ -36,7 +36,6 @@ public final class FrozenLabyrinth extends AbstractNpcAI
|
|||||||
|
|
||||||
private FrozenLabyrinth()
|
private FrozenLabyrinth()
|
||||||
{
|
{
|
||||||
super(FrozenLabyrinth.class.getSimpleName(), "ai/group_template");
|
|
||||||
addAttackId(PRONGHORN, FROST_BUFFALO);
|
addAttackId(PRONGHORN, FROST_BUFFALO);
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Jinia;
|
package ai.areas.FrozenLabyrinth.Jinia;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
@@ -39,7 +39,6 @@ public final class Jinia extends AbstractNpcAI
|
|||||||
|
|
||||||
private Jinia()
|
private Jinia()
|
||||||
{
|
{
|
||||||
super(Jinia.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(JINIA);
|
addStartNpc(JINIA);
|
||||||
addFirstTalkId(JINIA);
|
addFirstTalkId(JINIA);
|
||||||
addTalkId(JINIA);
|
addTalkId(JINIA);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Rafforty;
|
package ai.areas.FrozenLabyrinth.Rafforty;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
@@ -73,7 +73,6 @@ public final class Rafforty extends AbstractNpcAI
|
|||||||
|
|
||||||
private Rafforty()
|
private Rafforty()
|
||||||
{
|
{
|
||||||
super(Rafforty.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(RAFFORTY);
|
addStartNpc(RAFFORTY);
|
||||||
addFirstTalkId(RAFFORTY);
|
addFirstTalkId(RAFFORTY);
|
||||||
addTalkId(RAFFORTY);
|
addTalkId(RAFFORTY);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Sirra;
|
package ai.areas.FrozenLabyrinth.Sirra;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.instancemanager.InstanceManager;
|
import com.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -37,7 +37,6 @@ public final class Sirra extends AbstractNpcAI
|
|||||||
|
|
||||||
private Sirra()
|
private Sirra()
|
||||||
{
|
{
|
||||||
super(Sirra.class.getSimpleName(), "ai/npc");
|
|
||||||
addFirstTalkId(SIRRA);
|
addFirstTalkId(SIRRA);
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.group_template;
|
package ai.areas.GiantsCave;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ChatType;
|
import com.l2jmobius.gameserver.enums.ChatType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||||
@@ -39,7 +39,6 @@ public final class GiantsCave extends AbstractNpcAI
|
|||||||
|
|
||||||
private GiantsCave()
|
private GiantsCave()
|
||||||
{
|
{
|
||||||
super(GiantsCave.class.getSimpleName(), "ai/group_template");
|
|
||||||
addAttackId(SCOUTS);
|
addAttackId(SCOUTS);
|
||||||
addAggroRangeEnterId(SCOUTS);
|
addAggroRangeEnterId(SCOUTS);
|
||||||
}
|
}
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package ai.npc.Alexandria;
|
package ai.areas.Giran.Alexandria;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -75,7 +75,6 @@ public final class Alexandria extends AbstractNpcAI
|
|||||||
|
|
||||||
private Alexandria()
|
private Alexandria()
|
||||||
{
|
{
|
||||||
super(Alexandria.class.getSimpleName(), "ai/npc");
|
|
||||||
addStartNpc(ALEXANDRIA);
|
addStartNpc(ALEXANDRIA);
|
||||||
addTalkId(ALEXANDRIA);
|
addTalkId(ALEXANDRIA);
|
||||||
addFirstTalkId(ALEXANDRIA);
|
addFirstTalkId(ALEXANDRIA);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package gracia.AI;
|
package ai.areas.Gracia.AI;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -277,7 +277,6 @@ public class EnergySeeds extends AbstractNpcAI
|
|||||||
|
|
||||||
public EnergySeeds()
|
public EnergySeeds()
|
||||||
{
|
{
|
||||||
super(EnergySeeds.class.getSimpleName(), "gracia/AI");
|
|
||||||
registerMobs(SEED_IDS);
|
registerMobs(SEED_IDS);
|
||||||
addFirstTalkId(SEED_IDS);
|
addFirstTalkId(SEED_IDS);
|
||||||
addFirstTalkId(TEMPORARY_TELEPORTER);
|
addFirstTalkId(TEMPORARY_TELEPORTER);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package gracia.AI;
|
package ai.areas.Gracia.AI;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
@@ -53,7 +53,6 @@ public class Lindvior extends AbstractNpcAI
|
|||||||
|
|
||||||
public Lindvior()
|
public Lindvior()
|
||||||
{
|
{
|
||||||
super(Lindvior.class.getSimpleName(), "gracia/AI");
|
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
}
|
}
|
||||||
|
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package gracia.AI;
|
package ai.areas.Gracia.AI;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||||
@@ -28,7 +28,7 @@ import com.l2jmobius.gameserver.model.skills.Skill;
|
|||||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||||
|
|
||||||
import ai.AbstractNpcAI;
|
import ai.AbstractNpcAI;
|
||||||
import gracia.AI.NPC.Nemo.Nemo;
|
import ai.areas.Gracia.AI.NPC.Nemo.Nemo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maguen AI.
|
* Maguen AI.
|
||||||
@@ -74,7 +74,6 @@ public final class Maguen extends AbstractNpcAI
|
|||||||
|
|
||||||
public Maguen()
|
public Maguen()
|
||||||
{
|
{
|
||||||
super(Maguen.class.getSimpleName(), "gracia/AI");
|
|
||||||
addKillId(ELITES);
|
addKillId(ELITES);
|
||||||
addSkillSeeId(MAGUEN);
|
addSkillSeeId(MAGUEN);
|
||||||
addSpellFinishedId(MAGUEN);
|
addSpellFinishedId(MAGUEN);
|
@@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package gracia.AI.NPC.AbyssGaze;
|
package ai.areas.Gracia.AI.NPC.AbyssGaze;
|
||||||
|
|
||||||
import com.l2jmobius.gameserver.instancemanager.SoIManager;
|
import com.l2jmobius.gameserver.instancemanager.SoIManager;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
@@ -30,8 +30,6 @@ public class AbyssGaze extends AbstractNpcAI
|
|||||||
|
|
||||||
public AbyssGaze()
|
public AbyssGaze()
|
||||||
{
|
{
|
||||||
super(AbyssGaze.class.getSimpleName(), "gracia/AI/NPC");
|
|
||||||
|
|
||||||
addStartNpc(ABYSS_GATEKEEPER);
|
addStartNpc(ABYSS_GATEKEEPER);
|
||||||
addFirstTalkId(ABYSS_GATEKEEPER);
|
addFirstTalkId(ABYSS_GATEKEEPER);
|
||||||
addTalkId(ABYSS_GATEKEEPER);
|
addTalkId(ABYSS_GATEKEEPER);
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user