diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html new file mode 100644 index 0000000000..34d34d437c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Harpas to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html new file mode 100644 index 0000000000..ded6875215 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Garp to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html new file mode 100644 index 0000000000..e83d6d8126 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Moricks to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html new file mode 100644 index 0000000000..f937c723dc --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+Raid is already engaged into a battle. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html new file mode 100644 index 0000000000..b0a72a15ae --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+To summon raid, you must have an Soul Quartz. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html new file mode 100644 index 0000000000..9747495d0f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html @@ -0,0 +1,5 @@ +Soul Summon Stone:
+Ordinary-looking, but this altar has seen many bloody sacrifices.
+There is transparent space where you can place an Soul Quartz.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html new file mode 100644 index 0000000000..3459f30153 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html @@ -0,0 +1,12 @@ +Ivory Tower Wizard Valleria:
+ + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html new file mode 100644 index 0000000000..c9537f53ed --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html @@ -0,0 +1,7 @@ +Ivory Tower Wizard Valleria:
+The wind has changed. I don't like how this feels.
+The Embryo are expanding their influence by the day, and the Atelia Fortress is becoming stronger. I heard that they build a Command Post inside the fortress. I hear that terrible things are going on in there.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java new file mode 100644 index 0000000000..1e4dbd0cb3 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java @@ -0,0 +1,101 @@ +/* + * 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 . + */ +package ai.areas.BlackbirdCampsite; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; + +import ai.AbstractNpcAI; + +/** + * Soul Summon Stone AI. + * @author NviX + */ +public final class BlackbirdCampsite extends AbstractNpcAI +{ + // NPCs + private static final int SOUL_SUMMON_STONE = 34434; + private static final int VALLERIA = 34435; + // Bosses + private static final int SUMMONED_HARPAS = 26347; + private static final int SUMMONED_GARP = 26348; + private static final int SUMMONED_MORICKS = 26349; + // Items + private static final int SOUL_QUARTZ = 48536; + // Misc + private Npc BOSS; + + private BlackbirdCampsite() + { + addStartNpc(SOUL_SUMMON_STONE, VALLERIA); + addFirstTalkId(SOUL_SUMMON_STONE, VALLERIA); + addTalkId(SOUL_SUMMON_STONE, VALLERIA); + addKillId(SUMMONED_HARPAS, SUMMONED_GARP, SUMMONED_MORICKS); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + switch (event) + { + case "request_boss": + { + if ((BOSS != null) && !BOSS.isDead()) + { + return "34434-4.html"; + } + if (hasQuestItems(player, SOUL_QUARTZ)) + { + takeItems(player, SOUL_QUARTZ, 1); + int i = getRandom(100); + if (i < 40) + { + BOSS = addSpawn(SUMMONED_HARPAS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-1.html"; + } + else if (i < 80) + { + BOSS = addSpawn(SUMMONED_GARP, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-2.html"; + } + else + { + BOSS = addSpawn(SUMMONED_MORICKS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-3.html"; + } + } + return "34434-5.html"; + } + } + return super.onAdvEvent(event, npc, player); + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + if (npc.getId() == VALLERIA) + { + return "34435.html"; + } + return "34434.html"; + } + + public static void main(String[] args) + { + new BlackbirdCampsite(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html new file mode 100644 index 0000000000..2c156be672 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You no have that medal to exchange. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html new file mode 100644 index 0000000000..c22a9cdee6 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You have successfully received faction points. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html new file mode 100644 index 0000000000..34d34d437c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Harpas to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html new file mode 100644 index 0000000000..ded6875215 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Garp to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html new file mode 100644 index 0000000000..e83d6d8126 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Moricks to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html new file mode 100644 index 0000000000..f937c723dc --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+Raid is already engaged into a battle. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html new file mode 100644 index 0000000000..b0a72a15ae --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+To summon raid, you must have an Soul Quartz. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html new file mode 100644 index 0000000000..9747495d0f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html @@ -0,0 +1,5 @@ +Soul Summon Stone:
+Ordinary-looking, but this altar has seen many bloody sacrifices.
+There is transparent space where you can place an Soul Quartz.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html new file mode 100644 index 0000000000..3459f30153 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html @@ -0,0 +1,12 @@ +Ivory Tower Wizard Valleria:
+ + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html new file mode 100644 index 0000000000..c9537f53ed --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html @@ -0,0 +1,7 @@ +Ivory Tower Wizard Valleria:
+The wind has changed. I don't like how this feels.
+The Embryo are expanding their influence by the day, and the Atelia Fortress is becoming stronger. I heard that they build a Command Post inside the fortress. I hear that terrible things are going on in there.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java new file mode 100644 index 0000000000..1e4dbd0cb3 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java @@ -0,0 +1,101 @@ +/* + * 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 . + */ +package ai.areas.BlackbirdCampsite; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; + +import ai.AbstractNpcAI; + +/** + * Soul Summon Stone AI. + * @author NviX + */ +public final class BlackbirdCampsite extends AbstractNpcAI +{ + // NPCs + private static final int SOUL_SUMMON_STONE = 34434; + private static final int VALLERIA = 34435; + // Bosses + private static final int SUMMONED_HARPAS = 26347; + private static final int SUMMONED_GARP = 26348; + private static final int SUMMONED_MORICKS = 26349; + // Items + private static final int SOUL_QUARTZ = 48536; + // Misc + private Npc BOSS; + + private BlackbirdCampsite() + { + addStartNpc(SOUL_SUMMON_STONE, VALLERIA); + addFirstTalkId(SOUL_SUMMON_STONE, VALLERIA); + addTalkId(SOUL_SUMMON_STONE, VALLERIA); + addKillId(SUMMONED_HARPAS, SUMMONED_GARP, SUMMONED_MORICKS); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + switch (event) + { + case "request_boss": + { + if ((BOSS != null) && !BOSS.isDead()) + { + return "34434-4.html"; + } + if (hasQuestItems(player, SOUL_QUARTZ)) + { + takeItems(player, SOUL_QUARTZ, 1); + int i = getRandom(100); + if (i < 40) + { + BOSS = addSpawn(SUMMONED_HARPAS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-1.html"; + } + else if (i < 80) + { + BOSS = addSpawn(SUMMONED_GARP, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-2.html"; + } + else + { + BOSS = addSpawn(SUMMONED_MORICKS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-3.html"; + } + } + return "34434-5.html"; + } + } + return super.onAdvEvent(event, npc, player); + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + if (npc.getId() == VALLERIA) + { + return "34435.html"; + } + return "34434.html"; + } + + public static void main(String[] args) + { + new BlackbirdCampsite(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html new file mode 100644 index 0000000000..2c156be672 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You no have that medal to exchange. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html new file mode 100644 index 0000000000..c22a9cdee6 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You have successfully received faction points. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html new file mode 100644 index 0000000000..34d34d437c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-1.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Harpas to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html new file mode 100644 index 0000000000..ded6875215 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-2.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Garp to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html new file mode 100644 index 0000000000..e83d6d8126 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-3.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+You've challenged Summoned Moricks to a battle. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html new file mode 100644 index 0000000000..f937c723dc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-4.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+Raid is already engaged into a battle. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html new file mode 100644 index 0000000000..b0a72a15ae --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434-5.html @@ -0,0 +1,3 @@ +Soul Summon Stone:
+To summon raid, you must have an Soul Quartz. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html new file mode 100644 index 0000000000..9747495d0f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34434.html @@ -0,0 +1,5 @@ +Soul Summon Stone:
+Ordinary-looking, but this altar has seen many bloody sacrifices.
+There is transparent space where you can place an Soul Quartz.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html new file mode 100644 index 0000000000..3459f30153 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435-01.html @@ -0,0 +1,12 @@ +Ivory Tower Wizard Valleria:
+ + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html new file mode 100644 index 0000000000..c9537f53ed --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/34435.html @@ -0,0 +1,7 @@ +Ivory Tower Wizard Valleria:
+The wind has changed. I don't like how this feels.
+The Embryo are expanding their influence by the day, and the Atelia Fortress is becoming stronger. I heard that they build a Command Post inside the fortress. I hear that terrible things are going on in there.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java new file mode 100644 index 0000000000..1e4dbd0cb3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/BlackbirdCampsite.java @@ -0,0 +1,101 @@ +/* + * 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 . + */ +package ai.areas.BlackbirdCampsite; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; + +import ai.AbstractNpcAI; + +/** + * Soul Summon Stone AI. + * @author NviX + */ +public final class BlackbirdCampsite extends AbstractNpcAI +{ + // NPCs + private static final int SOUL_SUMMON_STONE = 34434; + private static final int VALLERIA = 34435; + // Bosses + private static final int SUMMONED_HARPAS = 26347; + private static final int SUMMONED_GARP = 26348; + private static final int SUMMONED_MORICKS = 26349; + // Items + private static final int SOUL_QUARTZ = 48536; + // Misc + private Npc BOSS; + + private BlackbirdCampsite() + { + addStartNpc(SOUL_SUMMON_STONE, VALLERIA); + addFirstTalkId(SOUL_SUMMON_STONE, VALLERIA); + addTalkId(SOUL_SUMMON_STONE, VALLERIA); + addKillId(SUMMONED_HARPAS, SUMMONED_GARP, SUMMONED_MORICKS); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + switch (event) + { + case "request_boss": + { + if ((BOSS != null) && !BOSS.isDead()) + { + return "34434-4.html"; + } + if (hasQuestItems(player, SOUL_QUARTZ)) + { + takeItems(player, SOUL_QUARTZ, 1); + int i = getRandom(100); + if (i < 40) + { + BOSS = addSpawn(SUMMONED_HARPAS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-1.html"; + } + else if (i < 80) + { + BOSS = addSpawn(SUMMONED_GARP, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-2.html"; + } + else + { + BOSS = addSpawn(SUMMONED_MORICKS, player.getX() + getRandom(-300, 300), player.getY() + getRandom(-300, 300), player.getZ() + 10, getRandom(64000), false, 0, true); + return "34434-3.html"; + } + } + return "34434-5.html"; + } + } + return super.onAdvEvent(event, npc, player); + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + if (npc.getId() == VALLERIA) + { + return "34435.html"; + } + return "34434.html"; + } + + public static void main(String[] args) + { + new BlackbirdCampsite(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html new file mode 100644 index 0000000000..2c156be672 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/no_medal.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You no have that medal to exchange. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html new file mode 100644 index 0000000000..c22a9cdee6 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/BlackbirdCampsite/success.html @@ -0,0 +1,3 @@ +Ivory Tower Wizard Valleria:
+You have successfully received faction points. + \ No newline at end of file