L2j Server Gracia Final Rev.6775 By Bas
Представляю вашему вниманию последнюю на данный момент сборку от команды L2jServer Gracia Final rev.6775
Что в ней реализованно:
1.CommunityBoard поддерживает русские ники.
2.В CommunityBoard имеется встроенный ГМшоп.
3.Реализованна поддержка цветных ников и титулов в игре.
4.Возможность создавать русские ники в игре.
5.Убраны все возможные копирайты сборки и тимов из чата.
6.Для удобства переведены все самые необходимые конфиги.
Возможно для большинства людей посещающие данный портал,сайт,форум покажется что это может сделать и 10ти летний ребёнок но всё же осмелюсь выложить так как многим просто либо лень делать всё это своими руками и тратить своё время или же просто не умеют.
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый
Да забыл написать если кому нужно выложу под эту сборку Баффера с анимацией баффов и ГлобалГК под эту сборочку.
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый
BAS: Да забыл написать если кому нужно выложу под эту сборку Баффера с анимацией баффов и ГлобалГК под эту сборочку.
Был бы очень признателен
Выкладываю Баффера с анимацией баффов и ГлобалГК для этой сборки как и обещал.
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый
BAS: Выкладываю Баффера с анимацией баффов и ГлобалГК для этой сборки как и обещал.![]()
<!--private_data=0-->
Мб у тебя еще есть что то вкусненькое к этому серверу?)
Нет я просто взял исходники L2jServer Gracia Final rev.6775 и добавил немножко своего то что чаще просили и хотели бы видеть список добавленного в первом посту.
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый
BAS: 1.CommunityBoard поддерживает русские ники.
2.В CommunityBoard имеется встроенный ГМшоп.
3.Реализованна поддержка цветных ников и титулов в игре.
Поделись .diff
DjTonik: Спс=)
оффтоп\\Вообще для этого существует кнопочка да бы не флудить постами.\\оффтоп
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый
да простите если сочтете за офф топ, подскажите на сборках l2jserver на счет класс мастрера... он дает либо 3 профы либо никак... на других сборках он настриваемый... здесь как то можно сделать?
— 32
На последних ревизиях у л2ж уже конфигурируемый классмастер. :)
Insane666: На последних ревизиях у л2ж уже конфигурируемый классмастер. :)
как ни странно не вижу нифига... компилировал сам, рева последняя, свежая, эпилог
— 32
Значить, видимо, всетаки не последняя. :)
_http://www.l2jserver.com/trac/changeset/3838
Insane666: Значить, видимо, всетаки не последняя. :)
_http://www.l2jserver.com/trac/changeset/3838
ахтыжбля )) 3789 моя
они клепают ревы ппц :) вот как успеть за ними )))
на сколько я знаю фринтезза у них не работает?
— 32
Нет, не работает. Вот рабочая фринтезза, успешно пижжена\конвертирована с л2жо на л2ж.
core:
#P L2_GameServer
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 3749)
+++ java/com/l2jserver/Config.java (working copy)
@@ -914,6 +914,8 @@
public static int Random_Of_QueenAnt_Spawn;
public static int Interval_Of_Zaken_Spawn;
public static int Random_Of_Zaken_Spawn;
+ public static int Interval_Of_Frintezza_Spawn;
+ public static int Random_Of_Frintezza_Spawn;
//chatfilter
public static ArrayList<String> FILTER_LIST;
@@ -2311,7 +2313,16 @@
if (Random_Of_Zaken_Spawn < 1 || Random_Of_Zaken_Spawn > 192)
Random_Of_Zaken_Spawn = 35;
Random_Of_Zaken_Spawn = Random_Of_Zaken_Spawn * 3600000;
-
+
+ Interval_Of_Frintezza_Spawn = Integer.parseInt(grandbossSettings.getProperty("IntervalOfFrintezzaSpawn", "121"));
+ if (Interval_Of_Frintezza_Spawn < 1 || Interval_Of_Frintezza_Spawn > 480)
+ Interval_Of_Frintezza_Spawn = 121;
+ Interval_Of_Frintezza_Spawn = Interval_Of_Frintezza_Spawn * 3600000;
+
+ Random_Of_Frintezza_Spawn = Integer.parseInt(grandbossSettings.getProperty("RandomOfFrintezzaSpawn", "8"));
+ if (Random_Of_Frintezza_Spawn < 1 || Random_Of_Frintezza_Spawn > 192)
+ Random_Of_Frintezza_Spawn = 8;
+ Random_Of_Frintezza_Spawn = Random_Of_Frintezza_Spawn * 3600000;
}
catch (Exception e)
{
Index: java/com/l2jserver/gameserver/model/zone/type/L2BossZone.java
===================================================================
--- java/com/l2jserver/gameserver/model/zone/type/L2BossZone.java (revision 3749)
+++ java/com/l2jserver/gameserver/model/zone/type/L2BossZone.java (working copy)
@@ -23,6 +23,9 @@
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.zone.L2ZoneType;
import com.l2jserver.util.L2FastList;
+import java.util.Map;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket;
import javolution.util.FastMap;
@@ -365,4 +368,41 @@
public void onReviveInside(L2Character character)
{
}
+
+ public void broadcastPacket(L2GameServerPacket packet)
+ {
+ if (_characterList == null || _characterList.isEmpty())
+ return;
+
+ for (L2Character character : _characterList.values())
+ {
+ if (character == null)
+ continue;
+ if (character instanceof L2PcInstance)
+ {
+ L2PcInstance player = (L2PcInstance) character;
+ if (player.isOnline() == 1)
+ player.sendPacket(packet);
+ }
+ }
+ }
+
+ public void updateKnownList(L2Npc npc)
+ {
+ if (_characterList == null || _characterList.isEmpty())
+ return;
+
+ Map<Integer, L2PcInstance> npcKnownPlayers = npc.getKnownList().getKnownPlayers();
+ for (L2Character character : _characterList.values())
+ {
+ if (character == null)
+ continue;
+ if (character instanceof L2PcInstance)
+ {
+ L2PcInstance player = (L2PcInstance) character;
+ if (player.isOnline() == 1)
+ npcKnownPlayers.put(player.getObjectId(), player);
+ }
+ }
+ }
}
Index: java/config/Grandboss.properties
===================================================================
--- java/config/Grandboss.properties (revision 3749)
+++ java/config/Grandboss.properties (working copy)
@@ -67,3 +67,11 @@
# Random interval. Range 1-192
RandomOfZakenSpawn = 35
+# ---------------------------------------------------------------------------
+# Frintezza
+# ---------------------------------------------------------------------------
+# Interval time of Frintezza. Value is hour. Range 1-480
+IntervalOfFrintezzaSpawn = 121
+
+# Random interval. Range 1-192
+RandomOfFrintezzaSpawn = 8
datapack:
#P datapack_development
Index: sql/grandboss_data.sql
===================================================================
--- sql/grandboss_data.sql (revision 6825)
+++ sql/grandboss_data.sql (working copy)
@@ -19,6 +19,7 @@
(29020, 116033, 17447, 10104, 40188, 0, 2700852, 19980, 0), -- Baium (75)
(29022, 55312, 219168, -3223, 0, 0, 569941, 199800, 0), -- Zaken (60)
(29028, -105200, -253104, -15264, 0, 0, 11850000, 1998000, 0), -- Valakas (85)
+(29045, 0, 0, 0, 0, 0, 1216600, 11100, 0), -- Frintezza (85)
(29066, 185708, 114298, -8221,32768, 0, 11186000, 1998000, 0), -- Antharas Weak (79)
(29067, 185708, 114298, -8221,32768, 0, 14518000, 1998000, 0), -- Antharas Normal (79)
(29068, 185708, 114298, -8221,32768, 0, 17850000, 1998000, 0); -- Antharas Strong (79)
@@ -30,4 +31,4 @@
-- (29150, 0, 0, 0, 0, 0, 8727677, 204995, 0), -- Ekimus (?)
-- (29151, 0, 0, 0, 0, 0, 6690, 204995, 0), -- Feral (?)
-- (29152, 0, 0, 0, 0, 0, 6690, 204995, 0), -- Feral (?)
--- (29163, 0, 0, 0, 0, 0, 8727677, 204995, 0), -- Tiat (87)
\ No newline at end of file
+-- (29163, 0, 0, 0, 0, 0, 8727677, 204995, 0); -- Tiat (87)
\ No newline at end of file
Index: data/stats/skills/5000-5099.xml
===================================================================
--- data/stats/skills/5000-5099.xml (revision 6825)
+++ data/stats/skills/5000-5099.xml (working copy)
@@ -74,54 +74,102 @@
Lvl 5: Hypnotic Mazurka (Instantly immobilizes the target by making it dance involuntarily).
-->
<table name="#isMagic"> true false false true true </table>
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <table name="#RegHp">10000 0 0 0 0</table>
+ <table name="#RunSpd">1 80 1 1 1</table>
+ <table name="#Atk">1 1 1.3 1 1</table>
+ <table name="#GainHp">1 1 1 0.5 1</table>
+ <table name="#Def">1 1 1 1 0.5</table>
+ <set name="target" val="TARGET_ONE"/>
+ <set name="skillType" val="BUFF"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="isMagic" val="#isMagic" />
+ <for>
+ <effect name="Buff" time="25" val="0">
+ <add order="0x40" stat="regHp" val="#RegHp"/>
+ <add order="0x40" stat="runSpd" val="#RunSpd"/>
+ <mul order="0x30" stat="pAtk" val="#Atk"/>
+ <mul order="0x30" stat="pAtkSpd" val="#Atk"/>
+ <mul order="0x30" stat="gainHp" val="#GainHp"/>
+ <mul order="0x30" stat="pDef" val="#Def"/>
+ <mul order="0x30" stat="mDef" val="#Def"/>
+ <mul order="0x30" stat="rEvas" val="#Def"/>
+ </effect>
+ </for>
</skill>
<skill id="5009" levels="1" name="Frintezza's Ghostly Fighter">
<!-- Lvl 1: A portrait ghost that can make physical attacks. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="power" val="300"/>
+ <set name="target" val="TARGET_ONE"/>
+ <set name="skillType" val="PDAM"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="150" />
+ <set name="effectRange" val="650"/>
<set name="hitTime" val="2500" />
+ <set name="reuseDelay" val="4000"/>
</skill>
<skill id="5010" levels="1" name="Frintezza's Ghostly Mage">
<!-- Lvl 1: A portrait ghost that can make magical attacks. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="power" val="400"/>
+ <set name="target" val="TARGET_ONE"/>
+ <set name="skillType" val="MDAM"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="500" />
<set name="effectRange" val="1000" />
<set name="hitTime" val="2500" />
+ <set name="reuseDelay" val="4000"/>
<set name="isMagic" val="true" />
</skill>
<skill id="5011" levels="1" name="Frintezza's Bomber Ghost">
<!-- Lvl 1: A portrait ghost who can create a suicide explosion. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="power" val="2000"/>
+ <set name="target" val="TARGET_AURA"/>
+ <set name="skillRadius" val="100"/>
<set name="hitTime" val="1000" />
+ <set name="skillType" val="MDAM"/>
+ <set name="isMagic" val="false"/>
+ <set name="isSuicideAttack" val="true"/>
+ <set name="element" val="0"/>
+ <set name="elementPower" val="20"/>
+ <set name="operateType" val="OP_ACTIVE"/>
+ <cond>
+ <player hp="10"/>
+ </cond>
</skill>
<skill id="5012" levels="1" name="Breath of Scarlet">
<!-- Lvl 1: Instantly immobilizes. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="magicLvl" val="85"/>
+ <set name="power" val="80"/>
+ <set name="lvlDepend" val="2"/>
+ <set name="target" val="TARGET_ONE"/>
+ <set name="reuseDelay" val="4000"/>
+ <set name="hitTime" val="1500"/>
+ <set name="isDebuff" val="true"/>
+ <set name="skillType" val="ROOT"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="40" />
<set name="effectRange" val="400" />
- <set name="hitTime" val="1500" />
+ <for>
+ <effect name="Root" time="20" val="0" stackOrder="1" stackType="Root"/>
+ </for>
</skill>
<skill id="5013" levels="1" name="Frintezza Ghost Drain">
<!-- Lvl 1: Portrait ghost drains HP. -->
- <set name="element" val="5" /> <!-- Dark -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="element" val="5"/>
+ <set name="power" val="200"/>
+ <set name="target" val="TARGET_ONE"/>
+ <set name="skillType" val="DRAIN"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="40" />
<set name="effectRange" val="400" />
+ <set name="reuseDelay" val="5000"/>
<set name="isMagic" val="true" />
+ <set name="absorbPart" val="0.8"/>
</skill>
<skill id="5014" levels="3" name="Frintezza's Daemon Attack">
<!--
@@ -129,11 +177,22 @@
Lvl 2: Demon 2 general attack.
Lvl 3: Demon 3 general attack.
-->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
- <set name="castRange" val="150" />
+ <!-- Update by rocknow -->
+ <table name="#FRadius">300 300 400 400 400 400</table>
+ <table name="#SRadius">300 300 400 400 400 400</table>
+ <table name="#Power">1000 1500 2000 3000 3500 4000</table>
+ <set name="flyCourse" val="180"/>
+ <set name="flyRadius" val="#FRadius"/>
<set name="hitTime" val="1300" />
+ <set name="operateType" val="OP_ACTIVE"/>
+ <set name="power" val="#Power"/>
+ <set name="reuseDelay" val="5000"/>
+ <set name="skillRadius" val="#SRadius"/>
+ <set name="skillType" val="PDAM"/>
+ <set name="target" val="TARGET_FRONT_AREA"/>
+ <for>
+ <effect self="1" name="Warp" val="0" noicon="1"/>
+ </for>
</skill>
<skill id="5015" levels="6" name="Frintezza's Daemon Charge">
<!--
@@ -152,36 +211,66 @@
</skill>
<skill id="5016" levels="1" name="Yoke of Scarlet">
<!-- Lvl 1: Instantly Immobilizes. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="magicLvl" val="99"/>
+ <set name="target" val="TARGET_AREA"/>
+ <set name="skillType" val="DEBUFF"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="500" />
<set name="effectRange" val="1000" />
<set name="hitTime" val="3000" />
+ <set name="reuseDelay" val="5000"/>
+ <set name="isDebuff" val="true"/>
+ <for>
+ <effect name="Debuff" time="25" val="0">
+ <mul order="0x30" stat="pDef" val="0.5"/>
+ <mul order="0x30" stat="mDef" val="0.5"/>
+ <mul order="0x30" stat="rEvas" val="0.5"/>
+ </effect>
+ </for>
</skill>
<skill id="5017" levels="1" name="Frintezza's Daemon Morph">
<!-- Lvl 1: Demon 1 metamorphosis. -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ !-- Update by rocknow -->
+ <set name="target" val="TARGET_SELF"/>
+ <set name="skillType" val="BUFF"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="hitTime" val="1000" />
+ <for>
+ <effect name="Buff" time="18000" val="0">
+ <mul order="0x30" stat="pAtk" val="1.2"/>
+ <mul order="0x30" stat="mAtk" val="1.2"/>
+ <mul order="0x30" stat="pDef" val="1.3"/>
+ <mul order="0x30" stat="mDef" val="1.3"/>
+ </effect>
+ </for>
</skill>
<skill id="5018" levels="2" name="Frintezza's Daemon Field">
<!--
Lvl 1: Demon 2 magic field. Lvl 2: Demon 3 magic field.
-->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <table name="#Power">10000 20000</table>
+ <set name="power" val="#Power"/>
+ <set name="target" val="TARGET_AURA"/>
+ <set name="skillType" val="PDAM"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="hitTime" val="7000" />
+ <set name="reuseDelay" val="10000"/>
+ <set name="skillRadius" val="700"/>
</skill>
<skill id="5019" levels="1" name="Frintezza's Daemon Drain">
<!-- Lvl 1: Demon 3 HP drain range. -->
- <set name="element" val="5" /> <!-- Dark -->
- <set name="target" val="TARGET_NONE" />
- <set name="skillType" val="NOTDONE" />
- <set name="operateType" val="OP_PASSIVE" />
+ <!-- Update by rocknow -->
+ <set name="element" val="5"/>
+ <set name="power" val="2000"/>
+ <set name="target" val="TARGET_AURA"/>
+ <set name="skillType" val="DRAIN"/>
+ <set name="operateType" val="OP_ACTIVE"/>
<set name="hitTime" val="6000" />
+ <set name="reuseDelay" val="10000"/>
+ <set name="skillRadius" val="700"/>
+ <set name="absorbPart" val="0.8"/>
</skill>
<skill id="5020" levels="1" name="Forced Action">
<!-- Crumples to the ground because of unknown power. -->
Index: data/scripts/ai/individual/Frintezza.java
===================================================================
--- data/scripts/ai/individual/Frintezza.java (revision 0)
+++ data/scripts/ai/individual/Frintezza.java (revision 0)
@@ -0,0 +1,1441 @@
+/*
+ * 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.individual;
+
+import java.util.List;
+
+import javolution.util.FastList;
+import com.l2jserver.Config;
+import com.l2jserver.gameserver.ai.CtrlIntention;
+import com.l2jserver.gameserver.datatables.DoorTable;
+import com.l2jserver.gameserver.datatables.SkillTable;
+import com.l2jserver.gameserver.instancemanager.GrandBossManager;
+import com.l2jserver.gameserver.model.L2CommandChannel;
+import com.l2jserver.gameserver.model.L2Party;
+import com.l2jserver.gameserver.model.L2Skill;
+import com.l2jserver.gameserver.model.actor.L2Attackable;
+import com.l2jserver.gameserver.model.actor.L2Character;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2GrandBossInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.zone.type.L2BossZone;
+import com.l2jserver.gameserver.network.SystemMessageId;
+import com.l2jserver.gameserver.network.serverpackets.Earthquake;
+import com.l2jserver.gameserver.network.serverpackets.MagicSkillCanceld;
+import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
+import com.l2jserver.gameserver.network.serverpackets.NpcSay;
+import com.l2jserver.gameserver.network.serverpackets.PlaySound;
+import com.l2jserver.gameserver.network.serverpackets.SocialAction;
+import com.l2jserver.gameserver.network.serverpackets.SpecialCamera;
+import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
+import com.l2jserver.gameserver.network.serverpackets.AbstractNpcInfo.NpcInfo;
+import com.l2jserver.gameserver.skills.AbnormalEffect;
+import com.l2jserver.gameserver.templates.StatsSet;
+import com.l2jserver.util.Rnd;
+import ai.group_template.L2AttackableAIScript;
+
+/**
+ * Frintezza AI
+ * @author Darki699
+ * @author SANDMAN L2J_JP(modified)
+ * @author JOJO
+ * Update by rocknow
+ */
+public class Frintezza extends L2AttackableAIScript
+{
+ private static final int[][] _invadeLoc =
+ {
+ { 173235, -76884, -5107 },
+ { 175003, -76933, -5107 },
+ { 174196, -76190, -5107 },
+ { 174013, -76120, -5107 },
+ { 173263, -75161, -5107 }
+ };
+
+ private static final int[][] _skill =
+ {
+ { 5015, 1, 5000 },
+ { 5015, 4, 5000 },
+ { 5015, 2, 5000 },
+ { 5015, 5, 5000 },
+ { 5018, 1, 10000 },
+ { 5016, 1, 5000 },
+ { 5015, 3, 5000 },
+ { 5015, 6, 5000 },
+ { 5018, 2, 10000 },
+ { 5019, 1, 10000 },
+ { 5016, 1, 5000 }
+ };
+
+ private static final int[][] _mobLoc =
+ {
+ { 18328,172894,-76019,-5107,243 },
+ { 18328,174095,-77279,-5107,16216 },
+ { 18328,174111,-74833,-5107,49043 },
+ { 18328,175344,-76042,-5107,32847 },
+ { 18330,173489,-76227,-5134,63565 },
+ { 18330,173498,-75724,-5107,58498 },
+ { 18330,174365,-76745,-5107,22424 },
+ { 18330,174570,-75584,-5107,31968 },
+ { 18330,174613,-76179,-5107,31471 },
+ { 18332,173620,-75981,-5107,4588 },
+ { 18332,173630,-76340,-5107,62454 },
+ { 18332,173755,-75613,-5107,57892 },
+ { 18332,173823,-76688,-5107,2411 },
+ { 18332,174000,-75411,-5107,54718 },
+ { 18332,174487,-75555,-5107,33861 },
+ { 18332,174517,-76471,-5107,21893 },
+ { 18332,174576,-76122,-5107,31176 },
+ { 18332,174600,-75841,-5134,35927 },
+ { 18329,173481,-76043,-5107,61312 },
+ { 18329,173539,-75678,-5107,59524 },
+ { 18329,173584,-76386,-5107,3041 },
+ { 18329,173773,-75420,-5107,51115 },
+ { 18329,173777,-76650,-5107,12588 },
+ { 18329,174585,-76510,-5107,21704 },
+ { 18329,174623,-75571,-5107,40141 },
+ { 18329,174744,-76240,-5107,29202 },
+ { 18329,174769,-75895,-5107,29572 },
+ { 18333,173861,-76011,-5107,383 },
+ { 18333,173872,-76461,-5107,8041 },
+ { 18333,173898,-75668,-5107,51856 },
+ { 18333,174422,-75689,-5107,42878 },
+ { 18333,174460,-76355,-5107,27311 },
+ { 18333,174483,-76041,-5107,30947 },
+ { 18331,173515,-76184,-5107,6971 },
+ { 18331,173516,-75790,-5134,3142 },
+ { 18331,173696,-76675,-5107,6757 },
+ { 18331,173766,-75502,-5134,60827 },
+ { 18331,174473,-75321,-5107,37147 },
+ { 18331,174493,-76505,-5107,34503 },
+ { 18331,174568,-75654,-5134,41661 },
+ { 18331,174584,-76263,-5107,31729 },
+ { 18339,173892,-81592,-5123,50849 },
+ { 18339,173958,-81820,-5123,7459 },
+ { 18339,174128,-81805,-5150,21495 },
+ { 18339,174245,-81566,-5123,41760 },
+ { 18334,173264,-81529,-5072,1646 },
+ { 18334,173265,-81656,-5072,441 },
+ { 18334,173267,-81889,-5072,0 },
+ { 18334,173271,-82015,-5072,65382 },
+ { 18334,174867,-81655,-5073,32537 },
+ { 18334,174868,-81890,-5073,32768 },
+ { 18334,174869,-81485,-5073,32315 },
+ { 18334,174871,-82017,-5073,33007 },
+ { 18335,173074,-80817,-5107,8353 },
+ { 18335,173128,-82702,-5107,5345 },
+ { 18335,173181,-82544,-5107,65135 },
+ { 18335,173191,-80981,-5107,6947 },
+ { 18335,174859,-80889,-5134,24103 },
+ { 18335,174924,-82666,-5107,38710 },
+ { 18335,174947,-80733,-5107,22449 },
+ { 18335,175096,-82724,-5107,42205 },
+ { 18336,173435,-80512,-5107,65215 },
+ { 18336,173440,-82948,-5107,417 },
+ { 18336,173443,-83120,-5107,1094 },
+ { 18336,173463,-83064,-5107,286 },
+ { 18336,173465,-80453,-5107,174 },
+ { 18336,173465,-83006,-5107,2604 },
+ { 18336,173468,-82889,-5107,316 },
+ { 18336,173469,-80570,-5107,65353 },
+ { 18336,173469,-80628,-5107,166 },
+ { 18336,173492,-83121,-5107,394 },
+ { 18336,173493,-80683,-5107,0 },
+ { 18336,173497,-80510,-5134,417 },
+ { 18336,173499,-82947,-5107,0 },
+ { 18336,173521,-83063,-5107,316 },
+ { 18336,173523,-82889,-5107,128 },
+ { 18336,173524,-80627,-5134,65027 },
+ { 18336,173524,-83007,-5107,0 },
+ { 18336,173526,-80452,-5107,64735 },
+ { 18336,173527,-80569,-5134,65062 },
+ { 18336,174602,-83122,-5107,33104 },
+ { 18336,174604,-82949,-5107,33184 },
+ { 18336,174609,-80514,-5107,33234 },
+ { 18336,174609,-80684,-5107,32851 },
+ { 18336,174629,-80627,-5107,33346 },
+ { 18336,174632,-80570,-5107,32896 },
+ { 18336,174632,-83066,-5107,32768 },
+ { 18336,174635,-82893,-5107,33594 },
+ { 18336,174636,-80456,-5107,32065 },
+ { 18336,174639,-83008,-5107,33057 },
+ { 18336,174660,-80512,-5107,33057 },
+ { 18336,174661,-83121,-5107,32768 },
+ { 18336,174663,-82948,-5107,32768 },
+ { 18336,174664,-80685,-5107,32676 },
+ { 18336,174687,-83008,-5107,32520 },
+ { 18336,174691,-83066,-5107,32961 },
+ { 18336,174692,-80455,-5107,33202 },
+ { 18336,174692,-80571,-5107,32768 },
+ { 18336,174693,-80630,-5107,32994 },
+ { 18336,174693,-82889,-5107,32622 },
+ { 18337,172837,-82382,-5107,58363 },
+ { 18337,172867,-81123,-5107,64055 },
+ { 18337,172883,-82495,-5107,64764 },
+ { 18337,172916,-81033,-5107,7099 },
+ { 18337,172940,-82325,-5107,58998 },
+ { 18337,172946,-82435,-5107,58038 },
+ { 18337,172971,-81198,-5107,14768 },
+ { 18337,172992,-81091,-5107,9438 },
+ { 18337,173032,-82365,-5107,59041 },
+ { 18337,173064,-81125,-5107,5827 },
+ { 18337,175014,-81173,-5107,26398 },
+ { 18337,175061,-82374,-5107,43290 },
+ { 18337,175096,-81080,-5107,24719 },
+ { 18337,175169,-82453,-5107,37672 },
+ { 18337,175172,-80972,-5107,32315 },
+ { 18337,175174,-82328,-5107,41760 },
+ { 18337,175197,-81157,-5107,27617 },
+ { 18337,175245,-82547,-5107,40275 },
+ { 18337,175249,-81075,-5107,28435 },
+ { 18337,175292,-82432,-5107,42225 },
+ { 18338,173014,-82628,-5107,11874 },
+ { 18338,173033,-80920,-5107,10425 },
+ { 18338,173095,-82520,-5107,49152 },
+ { 18338,173115,-80986,-5107,9611 },
+ { 18338,173144,-80894,-5107,5345 },
+ { 18338,173147,-82602,-5107,51316 },
+ { 18338,174912,-80825,-5107,24270 },
+ { 18338,174935,-80899,-5107,18061 },
+ { 18338,175016,-82697,-5107,39533 },
+ { 18338,175041,-80834,-5107,25420 },
+ { 18338,175071,-82549,-5107,39163 },
+ { 18338,175154,-82619,-5107,36345 }
+ };
+
+ private static final int SCARLET1 = 29046;
+ private static final int SCARLET2 = 29047;
+ private static final int FRINTEZZA = 29045;
+ private static final int GUIDE = 32011;
+ private static final int CUBE = 29061;
+
+ //Frintezza Status Tracking :
+ private static final byte DORMANT = 0; //Frintezza is spawned and no one has entered yet. Entry is unlocked
+ private static final byte WAITING = 1; //Frintezza is spawend and someone has entered, triggering a 30 minute window for additional people to enter
+ //before he unleashes his attack. Entry is unlocked
+ private static final byte FIGHTING = 2; //Frintezza is engaged in battle, annihilating his foes. Entry is locked
+ private static final byte DEAD = 3; //Frintezza has been killed. Entry is locked
+
+ private static long _LastAction = 0;
+ private static int _Angle = 0;
+ private static int _Heading = 0;
+ private static int _LocCycle = 0;
+ private static int _Bomber = 0;
+ private static int _CheckDie = 0;
+ private static int _OnCheck = 0;
+ private static int _OnSong = 0;
+ private static int _Abnormal = 0;
+ private static int _OnMorph = 0;
+ private static int _Scarlet_x = 0;
+ private static int _Scarlet_y = 0;
+ private static int _Scarlet_z = 0;
+ private static int _Scarlet_h = 0;
+ private static double _Scarlet_hp = 0;
+ private static double _Scarlet_mp = 0;
+ private static int _SecondMorph = 0;
+ private static int _ThirdMorph = 0;
+ private static int _KillHallAlarmDevice = 0;
+ private static int _KillDarkChoirPlayer = 0;
+ private static int _KillDarkChoirCaptain = 0;
+
+ private static L2BossZone _Zone;
+ private L2GrandBossInstance frintezza, weakScarlet, strongScarlet, activeScarlet;
+ private L2MonsterInstance demon1, demon2, demon3, demon4, portrait1, portrait2, portrait3, portrait4;
+ private L2Npc _frintezzaDummy, _overheadDummy, _portraitDummy1, _portraitDummy3, _scarletDummy;
+ private static List<L2PcInstance> _PlayersInside = new FastList<L2PcInstance>();
+ private static List<L2Npc> _Room1Mobs = new FastList<L2Npc>();
+ private static List<L2Npc> _Room2Mobs = new FastList<L2Npc>();
+ private static List<L2Attackable> Minions = new FastList<L2Attackable>();
+
+ // Boss: Frintezza
+ public Frintezza(int id, String name, String descr)
+ {
+ super(id,name,descr);
+ int[] mob = {SCARLET1, SCARLET2, FRINTEZZA, 18328, 18329, 18330, 18331, 18332, 18333, 18334, 18335, 18336, 18337, 18338, 18339, 29048, 29049, 29050, 29051};
+ _Zone = GrandBossManager.getInstance().getZone(174232, -88020, -5116);
+ registerMobs(mob);
+ addStartNpc(GUIDE);
+ addTalkId(GUIDE);
+ addStartNpc(CUBE);
+ addTalkId(CUBE);
+ StatsSet info = GrandBossManager.getInstance().getStatsSet(FRINTEZZA);
+ int status = GrandBossManager.getInstance().getBossStatus(FRINTEZZA);
+ if (status == DEAD)
+ {
+ long temp = (info.getLong("respawn_time") - System.currentTimeMillis());
+ if (temp > 0)
+ startQuestTimer("frintezza_unlock", temp, null, null);
+ else
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DORMANT);
+ }
+ else if (status != DORMANT)
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DORMANT);
+
+ //tempfix for messed door cords
+ for (int i = 0; i < 8; i++)
+ DoorTable.getInstance().getDoor(25150051+i).setRange(0, 0, 0, 0, 0, 0);
+ }
+
+ public String onAdvEvent (String event, L2Npc npc, L2PcInstance player)
+ {
+ long temp = 0;
+ if (event.equalsIgnoreCase("waiting"))
+ {
+ startQuestTimer("close", 27000, npc, null);
+ startQuestTimer("camera_1", 30000, npc, null);
+ _Zone.broadcastPacket(new Earthquake(174232, -88020, -5116, 45, 27));
+ }
+ else if (event.equalsIgnoreCase("room1_spawn"))
+ {
+ for (int i = 0; i <= 17; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room1Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room1_spawn2"))
+ {
+ for (int i = 18; i <= 26; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room1Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room1_spawn3"))
+ {
+ for (int i = 27; i <= 32; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room1Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room1_spawn4"))
+ {
+ for (int i = 33; i <= 40; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room1Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room2_spawn"))
+ {
+ for (int i = 41; i <= 44; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room2Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room2_spawn2"))
+ {
+ for (int i = 45; i <= 131; i++)
+ {
+ L2Npc mob = addSpawn(_mobLoc[i][0],_mobLoc[i][1],_mobLoc[i][2],_mobLoc[i][3],_mobLoc[i][4],false,0);
+ _Room2Mobs.add(mob);
+ }
+ }
+ else if (event.equalsIgnoreCase("room1_del"))
+ {
+ for (L2Npc mob : _Room1Mobs)
+ {
+ if (mob != null)
+ mob.deleteMe();
+ }
+ _Room1Mobs.clear();
+ }
+ else if (event.equalsIgnoreCase("room2_del"))
+ {
+ for (L2Npc mob : _Room2Mobs)
+ {
+ if (mob != null)
+ mob.deleteMe();
+ }
+ _Room2Mobs.clear();
+ }
+ else if (event.equalsIgnoreCase("room3_del"))
+ {
+ if (demon1 != null)
+ demon1.deleteMe();
+ if (demon2 != null)
+ demon2.deleteMe();
+ if (demon3 != null)
+ demon3.deleteMe();
+ if (demon4 != null)
+ demon4.deleteMe();
+ if (portrait1 != null)
+ portrait1.deleteMe();
+ if (portrait2 != null)
+ portrait2.deleteMe();
+ if (portrait3 != null)
+ portrait3.deleteMe();
+ if (portrait4 != null)
+ portrait4.deleteMe();
+ if (frintezza != null)
+ frintezza.deleteMe();
+ if (weakScarlet != null)
+ weakScarlet.deleteMe();
+ if (strongScarlet != null)
+ strongScarlet.deleteMe();
+
+ demon1 = null;
+ demon2 = null;
+ demon3 = null;
+ demon4 = null;
+ portrait1 = null;
+ portrait2 = null;
+ portrait3 = null;
+ portrait4 = null;
+ frintezza = null;
+ weakScarlet = null;
+ strongScarlet = null;
+ activeScarlet = null;
+ }
+ else if (event.equalsIgnoreCase("clean"))
+ {
+ _LastAction = 0;
+ _LocCycle = 0;
+ _CheckDie = 0;
+ _OnCheck = 0;
+ _Abnormal = 0;
+ _OnMorph = 0;
+ _SecondMorph = 0;
+ _ThirdMorph = 0;
+ _KillHallAlarmDevice = 0;
+ _KillDarkChoirPlayer = 0;
+ _KillDarkChoirCaptain = 0;
+ _PlayersInside.clear();
+ }
+ else if (event.equalsIgnoreCase("close"))
+ {
+ for (int i = 25150051; i <= 25150058; i++)
+ DoorTable.getInstance().getDoor(i).closeMe();
+ for (int i = 25150061; i <= 25150070; i++)
+ DoorTable.getInstance().getDoor(i).closeMe();
+
+ DoorTable.getInstance().getDoor(25150042).closeMe();
+ DoorTable.getInstance().getDoor(25150043).closeMe();
+ DoorTable.getInstance().getDoor(25150045).closeMe();
+ DoorTable.getInstance().getDoor(25150046).closeMe();
+ }
+ else if (event.equalsIgnoreCase("loc_check"))
+ {
+ if (GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ if (!_Zone.isInsideZone(npc))
+ npc.teleToLocation(174232,-88020,-5116);
+ if (npc.getX() < 171932 || npc.getX() > 176532 || npc.getY() < -90320 || npc.getY() > -85720 || npc.getZ() < -5130)
+ npc.teleToLocation(174232,-88020,-5116);
+ }
+ }
+ else if (event.equalsIgnoreCase("camera_1"))
+ {
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,FIGHTING);
+
+ _frintezzaDummy = addSpawn(29052,174240,-89805,-5022,16048,false,0);
+ _frintezzaDummy.setIsInvul(true);
+ _frintezzaDummy.setIsImmobilized(true);
+
+ _overheadDummy = addSpawn(29052,174232,-88020,-5116,16384,false,0);
+ _overheadDummy.setIsInvul(true);
+ _overheadDummy.setIsImmobilized(true);
+ _overheadDummy.setCollisionHeight(600);
+ _Zone.broadcastPacket(new NpcInfo(_overheadDummy, null));
+
+ _portraitDummy1 = addSpawn(29052, 172450, -87890, -5089, 16048,false,0);
+ _portraitDummy1.setIsImmobilized(true);
+ _portraitDummy1.setIsInvul(true);
+
+ _portraitDummy3 = addSpawn(29052, 176012, -87890, -5089, 16048,false,0);
+ _portraitDummy3.setIsImmobilized(true);
+ _portraitDummy3.setIsInvul(true);
+
+ _scarletDummy = addSpawn(29053,174232,-88020,-5116,16384,false,0);
+ _scarletDummy.setIsInvul(true);
+ _scarletDummy.setIsImmobilized(true);
+
+ startQuestTimer("stop_pc", 0, npc, null);
+ startQuestTimer("camera_2", 1000, _overheadDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_2"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_overheadDummy.getObjectId(),0, 75, -89, 0, 100));
+ startQuestTimer("camera_2b", 0, _overheadDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_2b"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_overheadDummy.getObjectId(),0, 75, -89, 0, 100));
+ startQuestTimer("camera_3", 0, _overheadDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_3"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_overheadDummy.getObjectId(),300, 90, -10, 6500, 7000));
+
+ frintezza = (L2GrandBossInstance) addSpawn(FRINTEZZA,174240,-89805,-5022,16048,false,0);
+ GrandBossManager.getInstance().addBoss(frintezza);
+ frintezza.setIsImmobilized(true);
+ frintezza.setIsInvul(true);
+ frintezza.disableAllSkills();
+ _Zone.updateKnownList(frintezza);
+
+ demon2 = (L2MonsterInstance) addSpawn(29051, 175876, -88713, -4972, 28205,false,0);
+ demon2.setIsImmobilized(true);
+ demon2.disableAllSkills();
+ _Zone.updateKnownList(demon2);
+
+ demon3 = (L2MonsterInstance) addSpawn(29051, 172608, -88702, -4972, 64817,false,0);
+ demon3.setIsImmobilized(true);
+ demon3.disableAllSkills();
+ _Zone.updateKnownList(demon3);
+
+ demon1 = (L2MonsterInstance) addSpawn(29050, 175833, -87165, -4972, 35048,false,0);
+ demon1.setIsImmobilized(true);
+ demon1.disableAllSkills();
+ _Zone.updateKnownList(demon1);
+
+ demon4 = (L2MonsterInstance) addSpawn(29050, 172634, -87165, -4972, 57730,false,0);
+ demon4.setIsImmobilized(true);
+ demon4.disableAllSkills();
+ _Zone.updateKnownList(demon4);
+
+ startQuestTimer("camera_4", 6500, _overheadDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_4"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_frintezzaDummy.getObjectId(),1800, 90, 8, 6500, 7000));
+ startQuestTimer("camera_5", 900, _frintezzaDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_5"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_frintezzaDummy.getObjectId(),140, 90, 10, 2500, 4500));
+ startQuestTimer("camera_5b", 4000, _frintezzaDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_5b"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),40, 75, -10, 0, 1000));
+ startQuestTimer("camera_6", 0, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_6"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),40, 75, -10, 0, 12000));
+ startQuestTimer("camera_7", 1350, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_7"))
+ {
+ _Zone.broadcastPacket(new SocialAction(frintezza.getObjectId(),2));
+ startQuestTimer("camera_8", 7000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_8"))
+ {
+ startQuestTimer("camera_9", 1000, frintezza, null);
+ _frintezzaDummy.deleteMe();
+ _frintezzaDummy = null;
+ }
+ else if (event.equalsIgnoreCase("camera_9"))
+ {
+ _Zone.broadcastPacket(new SocialAction(demon2.getObjectId(),1));
+ _Zone.broadcastPacket(new SocialAction(demon3.getObjectId(),1));
+ startQuestTimer("camera_9b", 400, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_9b"))
+ {
+ _Zone.broadcastPacket(new SocialAction(demon1.getObjectId(),1));
+ _Zone.broadcastPacket(new SocialAction(demon4.getObjectId(),1));
+
+ for (L2Character pc : _Zone.getCharactersInside().values())
+ {
+ if (pc instanceof L2PcInstance)
+ {
+ if (pc.getX() < 174232)
+ pc.broadcastPacket(new SpecialCamera(_portraitDummy1.getObjectId(),1000, 118, 0, 0, 1000));
+ else
+ pc.broadcastPacket(new SpecialCamera(_portraitDummy3.getObjectId(),1000, 62, 0, 0, 1000));
+ }
+ }
+ startQuestTimer("camera_9c", 0, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_9c"))
+ {
+ for (L2Character pc : _Zone.getCharactersInside().values())
+ {
+ if (pc instanceof L2PcInstance)
+ {
+ if (pc.getX() < 174232)
+ pc.broadcastPacket(new SpecialCamera(_portraitDummy1.getObjectId(),1000, 118, 0, 0, 10000));
+ else
+ pc.broadcastPacket(new SpecialCamera(_portraitDummy3.getObjectId(),1000, 62, 0, 0, 10000));
+ }
+ }
+ startQuestTimer("camera_10", 2000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_10"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),240, 90, 0, 0, 1000));
+ startQuestTimer("camera_11", 0, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_11"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),240, 90, 25, 5500, 10000));
+ _Zone.broadcastPacket(new SocialAction(frintezza.getObjectId(),3));
+ _portraitDummy1.deleteMe();
+ _portraitDummy3.deleteMe();
+ _portraitDummy1 = null;
+ _portraitDummy3 = null;
+
+ startQuestTimer("camera_12", 4500, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_12"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),100, 195, 35, 0, 10000));
+ startQuestTimer("camera_13", 700, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_13"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),100, 195, 35, 0, 10000));
+ startQuestTimer("camera_14", 1300, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_14"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),120, 180, 45, 1500, 10000));
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5006, 1, 34000, 0));
+ startQuestTimer("camera_16", 1500, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_16"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),520, 135, 45, 8000, 10000));
+ startQuestTimer("camera_17", 7500, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_17"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),1500, 110, 25, 10000, 13000));
+ startQuestTimer("camera_18", 9500, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("camera_18"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_overheadDummy.getObjectId(),930, 160, -20, 0, 1000));
+ startQuestTimer("camera_18b", 0, _overheadDummy, null);
+ }
+ else if (event.equalsIgnoreCase("camera_18b"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(_overheadDummy.getObjectId(),930, 160, -20, 0, 10000));
+
+ weakScarlet = (L2GrandBossInstance) addSpawn(29046,174232,-88020,-5116,16384,false,0);
+ weakScarlet.setIsInvul(true);
+ weakScarlet.setIsImmobilized(true);
+ weakScarlet.disableAllSkills();
+ _Zone.updateKnownList(weakScarlet);
+ activeScarlet = weakScarlet;
+
+ _Zone.broadcastPacket(new MagicSkillUse(_scarletDummy,_overheadDummy, 5004, 1, 5800, 0));
+
+ startQuestTimer("camera_19", 5500, _scarletDummy, null);
+ startQuestTimer("camera_19b", 5400, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("camera_19"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),800, 160, 5, 1000, 10000));
+ startQuestTimer("camera_20", 2100, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("camera_19b"))
+ {
+ _Zone.broadcastPacket(new SocialAction(weakScarlet.getObjectId(),3));
+ }
+ else if (event.equalsIgnoreCase("camera_20"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),300, 60, 8, 0, 10000));
+ startQuestTimer("camera_21", 2000, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("camera_21"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),500, 90, 10, 3000, 5000));
+ startQuestTimer("camera_22", 3000, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("camera_22"))
+ {
+ portrait2 = (L2MonsterInstance) addSpawn(29049, 175876, -88713, -4972, 28205,false,0);
+ portrait2.setIsImmobilized(true);
+ portrait2.disableAllSkills();
+ _Zone.updateKnownList(portrait2);
+
+ portrait3 = (L2MonsterInstance) addSpawn(29049, 172608, -88702, -4972, 64817,false,0);
+ portrait3.setIsImmobilized(true);
+ portrait3.disableAllSkills();
+ _Zone.updateKnownList(portrait3);
+
+ portrait1 = (L2MonsterInstance) addSpawn(29048, 175833, -87165, -4972, 35048,false,0);
+ portrait1.setIsImmobilized(true);
+ portrait1.disableAllSkills();
+ _Zone.updateKnownList(portrait1);
+
+ portrait4 = (L2MonsterInstance) addSpawn(29048, 172634, -87165, -4972, 57730,false,0);
+ portrait4.setIsImmobilized(true);
+ portrait4.disableAllSkills();
+ _Zone.updateKnownList(portrait4);
+
+ _overheadDummy.deleteMe();
+ _scarletDummy.deleteMe();
+ _overheadDummy = null;
+ _scarletDummy = null;
+
+ startQuestTimer("camera_23", 2000, weakScarlet, null);
+ startQuestTimer("start_pc", 2000, weakScarlet, null);
+ startQuestTimer("loc_check", 60000, weakScarlet, null, true);
+ startQuestTimer("songs_play", 10000 + Rnd.get(10000), frintezza, null);
+ startQuestTimer("skill01", 10000 + Rnd.get(10000), weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("camera_23"))
+ {
+ demon1.setIsImmobilized(false);
+ demon2.setIsImmobilized(false);
+ demon3.setIsImmobilized(false);
+ demon4.setIsImmobilized(false);
+ demon1.enableAllSkills();
+ demon2.enableAllSkills();
+ demon3.enableAllSkills();
+ demon4.enableAllSkills();
+ portrait1.setIsImmobilized(false);
+ portrait2.setIsImmobilized(false);
+ portrait3.setIsImmobilized(false);
+ portrait4.setIsImmobilized(false);
+ portrait1.enableAllSkills();
+ portrait2.enableAllSkills();
+ portrait3.enableAllSkills();
+ portrait4.enableAllSkills();
+ weakScarlet.setIsInvul(false);
+ weakScarlet.setIsImmobilized(false);
+ weakScarlet.enableAllSkills();
+ weakScarlet.setRunning();
+
+ startQuestTimer("spawn_minion", 20000, portrait1, null);
+ startQuestTimer("spawn_minion", 20000, portrait2, null);
+ startQuestTimer("spawn_minion", 20000, portrait3, null);
+ startQuestTimer("spawn_minion", 20000, portrait4, null);
+ }
+ else if (event.equalsIgnoreCase("stop_pc"))
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ cha.abortAttack();
+ cha.abortCast();
+ cha.disableAllSkills();
+ cha.setTarget(null);
+ cha.stopMove(null);
+ cha.setIsImmobilized(true);
+ cha.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
+ }
+ }
+ else if (event.equalsIgnoreCase("stop_npc"))
+ {
+ _Heading = npc.getHeading();
+ if (_Heading < 32768)
+ _Angle = Math.abs(180 - (int)(_Heading / 182.044444444));
+ else
+ _Angle = Math.abs(540 - (int)(_Heading / 182.044444444));
+ }
+ else if (event.equalsIgnoreCase("start_pc"))
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ if (cha != frintezza)
+ {
+ cha.enableAllSkills();
+ cha.setIsImmobilized(false);
+ }
+ }
+ }
+ else if (event.equalsIgnoreCase("start_npc"))
+ {
+ npc.setRunning();
+ npc.setIsInvul(false);
+ }
+ else if (event.equalsIgnoreCase("morph_end"))
+ {
+ _OnMorph = 0;
+ }
+ else if (event.equalsIgnoreCase("morph_01"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),250, _Angle, 12, 2000, 15000));
+ startQuestTimer("morph_02", 3000, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_02"))
+ {
+ _Zone.broadcastPacket(new SocialAction(weakScarlet.getObjectId(),1));
+ weakScarlet.setRHandId(7903);
+ startQuestTimer("morph_03", 4000, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_03"))
+ {
+ startQuestTimer("morph_04", 1500, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_04"))
+ {
+ _Zone.broadcastPacket(new SocialAction(weakScarlet.getObjectId(),4));
+ L2Skill skill = SkillTable.getInstance().getInfo(5017, 1);
+ if (skill != null)
+ skill.getEffects(weakScarlet, weakScarlet);
+
+ startQuestTimer("morph_end", 6000, weakScarlet, null);
+ startQuestTimer("start_pc", 3000, weakScarlet, null);
+ startQuestTimer("start_npc", 3000, weakScarlet, null);
+ startQuestTimer("songs_play", 10000 + Rnd.get(10000), frintezza, null);
+ startQuestTimer("skill02", 10000 + Rnd.get(10000), weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_05a"))
+ {
+ _Zone.broadcastPacket(new SocialAction(frintezza.getObjectId(),4));
+ }
+ else if (event.equalsIgnoreCase("morph_05"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),250, 120, 15, 0, 1000));
+ startQuestTimer("morph_06", 0, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_06"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),250, 120, 15, 0, 10000));
+
+ cancelQuestTimers("loc_check");
+
+ _Scarlet_x = weakScarlet.getX();
+ _Scarlet_y = weakScarlet.getY();
+ _Scarlet_z = weakScarlet.getZ();
+ _Scarlet_h = weakScarlet.getHeading();
+ _Scarlet_hp = weakScarlet.getCurrentHp();
+ _Scarlet_mp = weakScarlet.getCurrentMp();
+ weakScarlet.deleteMe();
+ weakScarlet = null;
+ activeScarlet = null;
+ weakScarlet = (L2GrandBossInstance) addSpawn(29046, _Scarlet_x, _Scarlet_y, _Scarlet_z, _Scarlet_h, false,0);
+ weakScarlet.setIsInvul(true);
+ weakScarlet.setIsImmobilized(true);
+ weakScarlet.disableAllSkills();
+ weakScarlet.setRHandId(7903);
+ _Zone.updateKnownList(weakScarlet);
+
+ startQuestTimer("morph_07", 7000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_07"))
+ {
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5006, 1, 34000, 0));
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),500, 70, 15, 3000, 10000));
+ startQuestTimer("morph_08", 3000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_08"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),2500, 90, 12, 6000, 10000));
+ startQuestTimer("morph_09", 3000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_09"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),250, _Angle, 12, 0, 1000));
+ startQuestTimer("morph_10", 0, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_10"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),250, _Angle, 12, 0, 10000));
+ startQuestTimer("morph_11", 500, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_11"))
+ {
+ weakScarlet.doDie(weakScarlet);
+ _Zone.broadcastPacket(new SpecialCamera(weakScarlet.getObjectId(),450, _Angle, 14, 8000, 8000));
+
+ startQuestTimer("morph_12", 6250, weakScarlet, null);
+ startQuestTimer("morph_13", 7200, weakScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_12"))
+ {
+ weakScarlet.deleteMe();
+ weakScarlet = null;
+ }
+ else if (event.equalsIgnoreCase("morph_13"))
+ {
+ strongScarlet = (L2GrandBossInstance) addSpawn(SCARLET2, _Scarlet_x, _Scarlet_y, _Scarlet_z, _Scarlet_h, false,0);
+ strongScarlet.setIsInvul(true);
+ strongScarlet.setIsImmobilized(true);
+ strongScarlet.disableAllSkills();
+ strongScarlet.setCurrentHpMp(_Scarlet_hp, _Scarlet_mp);
+ _Zone.updateKnownList(strongScarlet);
+ activeScarlet = strongScarlet;
+
+ _Zone.broadcastPacket(new SpecialCamera(strongScarlet.getObjectId(),450, _Angle, 12, 500, 14000));
+
+ startQuestTimer("morph_14", 3000, strongScarlet, null);
+ startQuestTimer("loc_check", 60000, strongScarlet, null, true);
+ }
+ else if (event.equalsIgnoreCase("morph_14"))
+ {
+ startQuestTimer("morph_15", 5100, strongScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_15"))
+ {
+ _Zone.broadcastPacket(new SocialAction(strongScarlet.getObjectId(),2));
+ L2Skill skill = SkillTable.getInstance().getInfo(5017, 1);
+ if (skill != null)
+ skill.getEffects(strongScarlet, strongScarlet);
+
+ startQuestTimer("morph_end", 9000, strongScarlet, null);
+ startQuestTimer("start_pc", 6000, strongScarlet, null);
+ startQuestTimer("start_npc", 6000, strongScarlet, null);
+ startQuestTimer("songs_play", 10000 + Rnd.get(10000), frintezza, null);
+ startQuestTimer("skill03", 10000 + Rnd.get(10000), strongScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_16"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(strongScarlet.getObjectId(),300, _Angle - 180 , 5, 0, 7000));
+ startQuestTimer("morph_17", 0, strongScarlet, null);
+ }
+ else if (event.equalsIgnoreCase("morph_17"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(strongScarlet.getObjectId(),200, _Angle, 85, 4000, 10000));
+ startQuestTimer("morph_17b", 7400, frintezza, null);
+ startQuestTimer("morph_18", 7500, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_17b"))
+ {
+ frintezza.doDie(frintezza);
+ }
+ else if (event.equalsIgnoreCase("morph_18"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),100, 120, 5, 0, 7000));
+ startQuestTimer("morph_19", 0, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_19"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),100, 90, 5, 5000, 15000));
+ startQuestTimer("morph_20", 7000, frintezza, null);
+ startQuestTimer("spawn_cubes", 7000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("morph_20"))
+ {
+ _Zone.broadcastPacket(new SpecialCamera(frintezza.getObjectId(),900, 90, 25, 7000, 10000));
+ startQuestTimer("start_pc", 7000, frintezza, null);
+ }
+ else if (event.equalsIgnoreCase("songs_play"))
+ {
+ if (frintezza != null && !frintezza.isDead() && _OnMorph == 0)
+ {
+ _OnSong = Rnd.get(1, 5);
+ if (_OnSong == 1 && _ThirdMorph == 1 && strongScarlet.getCurrentHp() < strongScarlet.getMaxHp() * 0.6 && Rnd.get(100) < 80)
+ {
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5007, 1, 32000, 0));
+ startQuestTimer("songs_effect", 5000, frintezza, null);
+ startQuestTimer("songs_play", 32000 + Rnd.get(10000), frintezza, null);
+ }
+ else if (_OnSong == 2 || _OnSong == 3)
+ {
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5007, _OnSong, 32000, 0));
+ startQuestTimer("songs_effect", 5000, frintezza, null);
+ startQuestTimer("songs_play", 32000 + Rnd.get(10000), frintezza, null);
+ }
+ else if (_OnSong == 4 && _SecondMorph == 1)
+ {
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5007, 4, 31000, 0));
+ startQuestTimer("songs_effect", 5000, frintezza, null);
+ startQuestTimer("songs_play", 31000 + Rnd.get(10000), frintezza, null);
+ }
+ else if (_OnSong == 5 && _ThirdMorph == 1 && _Abnormal == 0)
+ {
+ _Abnormal = 1;
+ _Zone.broadcastPacket(new MagicSkillUse(frintezza, frintezza, 5007, 5, 35000, 0));
+ startQuestTimer("songs_effect", 5000, frintezza, null);
+ startQuestTimer("songs_play", 35000 + Rnd.get(10000), frintezza, null);
+ }
+ else
+ startQuestTimer("songs_play", 5000 + Rnd.get(5000), frintezza, null);
+ }
+ }
+ else if (event.equalsIgnoreCase("songs_effect"))
+ {
+ L2Skill skill = SkillTable.getInstance().getInfo(5008, _OnSong);
+ if (skill == null)
+ return null;
+
+ if (_OnSong == 1 || _OnSong == 2 || _OnSong == 3)
+ {
+ if (frintezza != null && !frintezza.isDead() && activeScarlet != null && !activeScarlet.isDead())
+ skill.getEffects(frintezza, activeScarlet);
+ }
+ else if (_OnSong == 4)
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ if (cha instanceof L2PcInstance && Rnd.get(100) < 80)
+ {
+ skill.getEffects(frintezza, cha);
+ cha.sendPacket(new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(5008, 4));
+ }
+ }
+ }
+ else if (_OnSong == 5)
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ if (cha instanceof L2PcInstance && Rnd.get(100) < 70)
+ {
+ cha.abortAttack();
+ cha.abortCast();
+ cha.disableAllSkills();
+ cha.stopMove(null);
+ cha.setIsParalyzed(true);
+ cha.setIsImmobilized(true);
+ cha.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
+ skill.getEffects(frintezza, cha);
+ cha.startAbnormalEffect(AbnormalEffect.DANCE_STUNNED);
+ cha.sendPacket(new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(5008, 5));
+ }
+ }
+ startQuestTimer("stop_effect", 25000, frintezza, null);
+ }
+ }
+ else if (event.equalsIgnoreCase("stop_effect"))
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ if (cha instanceof L2PcInstance)
+ {
+ cha.stopAbnormalEffect(AbnormalEffect.DANCE_STUNNED);
+ cha.stopAbnormalEffect(AbnormalEffect.FLOATING_ROOT);
+ cha.enableAllSkills();
+ cha.setIsImmobilized(false);
+ cha.setIsParalyzed(false);
+ }
+ }
+ _Abnormal = 0;
+ }
+ else if (event.equalsIgnoreCase("attack_stop"))
+ {
+ cancelQuestTimers("skill01");
+ cancelQuestTimers("skill02");
+ cancelQuestTimers("skill03");
+ cancelQuestTimers("songs_play");
+ cancelQuestTimers("songs_effect");
+
+ _Zone.broadcastPacket(new MagicSkillCanceld(frintezza.getObjectId()));
+ }
+ else if (event.equalsIgnoreCase("check_hp"))
+ {
+ if (npc.isDead())
+ {
+ _OnMorph = 1;
+ _Zone.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
+
+ startQuestTimer("attack_stop", 0, frintezza, null);
+ startQuestTimer("stop_pc", 0, npc, null);
+ startQuestTimer("stop_npc", 0, npc, null);
+ startQuestTimer("morph_16", 0, npc, null);
+ }
+ else
+ {
+ _CheckDie = _CheckDie + 10;
+ if (_CheckDie < 3000)
+ startQuestTimer("check_hp", 10, npc, null);
+ else
+ {
+ _OnCheck = 0;
+ _CheckDie = 0;
+ }
+ }
+ }
+ else if (event.equalsIgnoreCase("skill01"))
+ {
+ if (weakScarlet != null && !weakScarlet.isDead() && _SecondMorph == 0 && _ThirdMorph == 0 && _OnMorph == 0)
+ {
+ int i = Rnd.get(0,1);
+ L2Skill skill = SkillTable.getInstance().getInfo(_skill[i][0],_skill[i][1]);
+ if (skill != null)
+ weakScarlet.doCast(skill);
+
+ startQuestTimer("skill01", _skill[i][2] + 5000 + Rnd.get(10000), npc, null);
+ }
+ }
+ else if (event.equalsIgnoreCase("skill02"))
+ {
+ if (weakScarlet != null && !weakScarlet.isDead() && _SecondMorph == 1 && _ThirdMorph == 0 && _OnMorph == 0)
+ {
+ int i = 0;
+ if (_Abnormal == 0)
+ i = Rnd.get(2,5);
+ else
+ i = Rnd.get(2,4);
+
+ L2Skill skill = SkillTable.getInstance().getInfo(_skill[i][0],_skill[i][1]);
+ if (skill != null)
+ weakScarlet.doCast(skill);
+
+ startQuestTimer("skill02", _skill[i][2] + 5000 + Rnd.get(10000), npc, null);
+
+ if (i == 5)
+ {
+ _Abnormal = 1;
+ startQuestTimer("float_effect", 4000, weakScarlet, null);
+ }
+ }
+ }
+ else if (event.equalsIgnoreCase("skill03"))
+ {
+ if (strongScarlet != null && !strongScarlet.isDead() && _SecondMorph == 1 && _ThirdMorph == 1 && _OnMorph == 0)
+ {
+ int i = 0;
+ if (_Abnormal == 0)
+ i = Rnd.get(6,10);
+ else
+ i = Rnd.get(6,9);
+
+ L2Skill skill = SkillTable.getInstance().getInfo(_skill[i][0],_skill[i][1]);
+ if (skill != null)
+ strongScarlet.doCast(skill);
+
+ startQuestTimer("skill03", _skill[i][2] + 5000 + Rnd.get(10000), npc, null);
+
+ if (i == 10)
+ {
+ _Abnormal = 1;
+ startQuestTimer("float_effect", 3000, npc, null);
+ }
+ }
+ }
+ else if (event.equalsIgnoreCase("float_effect"))
+ {
+ if (npc.isCastingNow())
+ {
+ startQuestTimer("float_effect", 500, npc, null);
+ }
+ else
+ {
+ for (L2Character cha : _Zone.getCharactersInside().values())
+ {
+ if (cha instanceof L2PcInstance)
+ {
+ if (cha.getFirstEffect(5016) != null)
+ {
+ cha.abortAttack();
+ cha.abortCast();
+ cha.disableAllSkills();
+ cha.stopMove(null);
+ cha.setIsParalyzed(true);
+ cha.setIsImmobilized(true);
+ cha.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
+ cha.startAbnormalEffect(AbnormalEffect.FLOATING_ROOT);
+ }
+ }
+ }
+ startQuestTimer("stop_effect", 25000, npc, null);
+ }
+ }
+ else if (event.equalsIgnoreCase("action"))
+ {
+ _Zone.broadcastPacket(new SocialAction(npc.getObjectId(),1));
+ }
+ else if (event.equalsIgnoreCase("bomber"))
+ {
+ _Bomber = 0;
+ }
+ else if (event.equalsIgnoreCase("room_final"))
+ {
+ _Zone.broadcastPacket(new NpcSay(npc.getObjectId(),1,npc.getNpcId(),"Exceeded his time limit, challenge failed!"));
+ _Zone.oustAllPlayers();
+
+ cancelQuestTimers("waiting");
+ cancelQuestTimers("frintezza_despawn");
+ startQuestTimer("clean", 1000, npc, null);
+ startQuestTimer("close", 1000, npc, null);
+ startQuestTimer("room1_del", 1000, npc, null);
+ startQuestTimer("room2_del", 1000, npc, null);
+
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DORMANT);
+ }
+ else if (event.equalsIgnoreCase("frintezza_despawn"))
+ {
+ temp = (System.currentTimeMillis() - _LastAction);
+ if (temp > 900000)
+ {
+ _Zone.oustAllPlayers();
+
+ cancelQuestTimers("waiting");
+ cancelQuestTimers("loc_check");
+ cancelQuestTimers("room_final");
+ cancelQuestTimers("spawn_minion");
+ startQuestTimer("clean", 1000, npc, null);
+ startQuestTimer("close", 1000, npc, null);
+ startQuestTimer("attack_stop", 1000, npc, null);
+ startQuestTimer("room1_del", 1000, npc, null);
+ startQuestTimer("room2_del", 1000, npc, null);
+ startQuestTimer("room3_del", 1000, npc, null);
+ startQuestTimer("minions_despawn", 1000, npc, null);
+
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DORMANT);
+
+ cancelQuestTimers("frintezza_despawn");
+ }
+ }
+ else if (event.equalsIgnoreCase("minions_despawn"))
+ {
+ for (int i = 0; i < Minions.size(); i++)
+ {
+ L2Attackable mob = Minions.get(i);
+ if (mob != null)
+ mob.decayMe();
+ }
+ Minions.clear();
+ }
+ else if (event.equalsIgnoreCase("spawn_minion"))
+ {
+ if (npc != null && !npc.isDead() && frintezza != null && !frintezza.isDead())
+ {
+ L2Npc mob = addSpawn(npc.getNpcId()+2,npc.getX(),npc.getY(),npc.getZ(),npc.getHeading(),false,0);
+ mob.setIsRaidMinion(true);
+ Minions.add((L2Attackable)mob);
+
+ startQuestTimer("action", 200, mob, null);
+ startQuestTimer("spawn_minion", 18000, npc, null);
+ }
+ }
+ else if (event.equalsIgnoreCase("spawn_cubes"))
+ {
+ addSpawn(CUBE,174232,-88020,-5114,16384,false,900000);
+ }
+ else if (event.equalsIgnoreCase("frintezza_unlock"))
+ {
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DORMANT);
+ }
+ else if (event.equalsIgnoreCase("remove_players"))
+ {
+ _Zone.oustAllPlayers();
+ }
+
+ return super.onAdvEvent(event, npc, player);
+ }
+
+ public String onTalk (L2Npc npc, L2PcInstance player)
+ {
+ if (npc.getNpcId() == CUBE)
+ {
+ int x = 150037 + Rnd.get(500);
+ int y = -57720 + Rnd.get(500);
+ player.teleToLocation(x, y, -2976);
+ return null;
+ }
+
+ String htmltext = "";
+ if (GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == DORMANT)
+ {
+ if ((!player.isInParty() || !player.getParty().isLeader(player))
+ || (player.getParty().getCommandChannel() == null)
+ || (player.getParty().getCommandChannel().getChannelLeader() != player))
+ htmltext = "<html><body>No reaction. Contact must be initiated by the Command Channel Leader.</body></html>";
+ else if (player.getInventory().getItemByItemId(8073) == null)
+ htmltext = "<html><body>You dont have required item.</body></html>";
+ else
+ {
+ player.destroyItemByItemId("Quest", 8073, 1, player, true);
+ L2CommandChannel CC = player.getParty().getCommandChannel();
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA, WAITING);
+
+ startQuestTimer("close", 0, npc, null);
+ startQuestTimer("room1_spawn", 5000, npc, null);
+ startQuestTimer("room_final", 2100000, npc, null);
+ startQuestTimer("frintezza_despawn", 60000, npc, null, true);
+
+ _LastAction = System.currentTimeMillis();
+ for (L2Party party : CC.getPartys())
+ {
+ if (party == null)
+ continue;
+ for (L2PcInstance member : party.getPartyMembers())
+ {
+ if (member == null || member.getLevel() < 74)
+ continue;
+ if (!member.isInsideRadius(npc, 700, false, false))
+ continue;
+ if (_PlayersInside.size() > 45)
+ {
+ member.sendMessage("The number of challenges have been full, so can not enter.");
+ break;
+ }
+ _PlayersInside.add(member);
+ _Zone.allowPlayerEntry(member, 300);
+ member.teleToLocation(_invadeLoc[_LocCycle][0] + Rnd.get(50), _invadeLoc[_LocCycle][1] + Rnd.get(50), _invadeLoc[_LocCycle][2]);
+ }
+ if (_PlayersInside.size() > 45)
+ break;
+
+ _LocCycle++;
+ if (_LocCycle >= 5)
+ _LocCycle = 0;
+ }
+ }
+ }
+ else
+ htmltext = "<html><body>Someone else is already inside the Magic Force Field. Try again later.</body></html>";
+
+ return htmltext;
+ }
+
+ public String onAttack (L2Npc npc, L2PcInstance attacker, int damage, boolean isPet)
+ {
+ _LastAction = System.currentTimeMillis();
+ if (npc.getNpcId() == FRINTEZZA)
+ {
+ npc.setCurrentHpMp(npc.getMaxHp(), 0);
+ return null;
+ }
+ if (npc.getNpcId() == SCARLET1 && _SecondMorph == 0 && _ThirdMorph == 0 && _OnMorph == 0 && npc.getCurrentHp() < npc.getMaxHp() * 0.75 && GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ startQuestTimer("attack_stop", 0, frintezza, null);
+
+ _SecondMorph = 1;
+ _OnMorph = 1;
+
+ startQuestTimer("stop_pc", 1000, npc, null);
+ startQuestTimer("stop_npc", 1000, npc, null);
+ startQuestTimer("morph_01", 1100, npc, null);
+ }
+ else if (npc.getNpcId() == SCARLET1 && _SecondMorph == 1 && _ThirdMorph == 0 && _OnMorph == 0 && npc.getCurrentHp() < npc.getMaxHp() * 0.5 && GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ startQuestTimer("attack_stop", 0, frintezza, null);
+
+ _ThirdMorph = 1;
+ _OnMorph = 1;
+
+ startQuestTimer("stop_pc", 2000, npc, null);
+ startQuestTimer("stop_npc", 2000, npc, null);
+ startQuestTimer("morph_05a", 2000, npc, null);
+ startQuestTimer("morph_05", 2100, npc, null);
+ }
+ else if (npc.getNpcId() == SCARLET2 && _SecondMorph == 1 && _ThirdMorph == 1 && _OnCheck == 0 && damage >= npc.getCurrentHp() && GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ _OnCheck = 1;
+ startQuestTimer("check_hp", 0, npc, null);
+ }
+ else if ((npc.getNpcId() == 29050 || npc.getNpcId() == 29051) && _Bomber == 0)
+ {
+ if (npc.getCurrentHp() < npc.getMaxHp() * 0.1)
+ {
+ if (Rnd.get(100) < 30)
+ {
+ _Bomber = 1;
+ startQuestTimer("bomber", 3000, npc, null);
+
+ L2Skill skill = SkillTable.getInstance().getInfo(5011,1);
+ if (skill != null)
+ npc.doCast(skill);
+ }
+ }
+ }
+
+ return super.onAttack(npc, attacker, damage, isPet);
+ }
+
+ public String onKill (L2Npc npc, L2PcInstance killer, boolean isPet)
+ {
+ if (npc.getNpcId() == FRINTEZZA)
+ {
+ return null;
+ }
+ else if (npc.getNpcId() == SCARLET2 && _OnCheck == 0 && GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ _OnCheck = 1;
+ startQuestTimer("stop_pc", 0, npc, null);
+ startQuestTimer("stop_npc", 0, npc, null);
+ startQuestTimer("morph_16", 0, npc, null);
+ }
+ else if (npc.getNpcId() == SCARLET2 && _OnCheck == 1 && GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == FIGHTING)
+ {
+ cancelQuestTimers("loc_check");
+ cancelQuestTimers("spawn_minion");
+ cancelQuestTimers("frintezza_despawn");
+ startQuestTimer("clean", 30000, npc, null);
+ startQuestTimer("close", 30000, npc, null);
+ startQuestTimer("room3_del", 60000, npc, null);
+ startQuestTimer("minions_despawn", 60000, npc, null);
+ startQuestTimer("remove_players", 900000, npc, null);
+
+ GrandBossManager.getInstance().setBossStatus(FRINTEZZA,DEAD);
+ long respawnTime = (long)Config.Interval_Of_Frintezza_Spawn + Rnd.get(Config.Random_Of_Frintezza_Spawn);
+ startQuestTimer("frintezza_unlock", respawnTime, npc, null);
+ // also save the respawn time so that the info is maintained past reboots
+ StatsSet info = GrandBossManager.getInstance().getStatsSet(FRINTEZZA);
+ info.set("respawn_time", System.currentTimeMillis() + respawnTime);
+ GrandBossManager.getInstance().setStatsSet(FRINTEZZA,info);
+ }
+ else if (npc.getNpcId() == 18328)
+ {
+ _KillHallAlarmDevice++;
+ if (_KillHallAlarmDevice == 4)
+ {
+ startQuestTimer("room1_del", 100, npc, null);
+ startQuestTimer("room2_spawn", 100, npc, null);
+
+ DoorTable.getInstance().getDoor(25150042).openMe();
+ DoorTable.getInstance().getDoor(25150043).openMe();
+ // DoorTable.getInstance().getDoor(25150045).openMe();
+ // DoorTable.getInstance().getDoor(25150046).openMe();
+ for (int i = 25150051; i <= 25150058; i++)
+ DoorTable.getInstance().getDoor(i).openMe();
+ }
+ }
+ else if (npc.getNpcId() == 18339)
+ {
+ _KillDarkChoirPlayer ++;
+ if (_KillDarkChoirPlayer == 2)
+ {
+ DoorTable.getInstance().getDoor(25150042).closeMe();
+ DoorTable.getInstance().getDoor(25150043).closeMe();
+ DoorTable.getInstance().getDoor(25150045).closeMe();
+ DoorTable.getInstance().getDoor(25150046).closeMe();
+ int outside = 0;
+ for (L2PcInstance room2_pc : _PlayersInside)
+ {
+ if (_Zone.isInsideZone(room2_pc) && room2_pc.getY() > -86130)
+ outside++;
+ }
+ if (outside == 0)
+ {
+ startQuestTimer("room2_del", 100, npc, null);
+ startQuestTimer("waiting", 180000, npc, null);
+ cancelQuestTimers("room_final");
+ }
+ else
+ {
+ for (int i = 25150061; i <= 25150070; i++)
+ DoorTable.getInstance().getDoor(i).openMe();
+
+ startQuestTimer("room2_spawn2", 1000, npc, null);
+ }
+ }
+ }
+ else if (npc.getNpcId() == 18334)
+ {
+ _KillDarkChoirCaptain ++;
+ if (_KillDarkChoirCaptain == 8)
+ {
+ startQuestTimer("room2_del", 100, npc, null);
+
+ DoorTable.getInstance().getDoor(25150045).openMe();
+ DoorTable.getInstance().getDoor(25150046).openMe();
+
+ startQuestTimer("waiting", 180000, npc, null);
+ cancelQuestTimers("room_final");
+ }
+ }
+
+ return super.onKill(npc,killer,isPet);
+ }
+
+ public static void main(String[] args)
+ {
+ // now call the constructor (starts up the ai)
+ new Frintezza(-1,"frintezza","ai");
+ }
+}
\ No newline at end of file
Index: sql/npcskills.sql
===================================================================
--- sql/npcskills.sql (revision 6825)
+++ sql/npcskills.sql (working copy)
@@ -33991,4 +33991,12 @@
('22741','5465','1'),
('22741','4410','13'),
('22741','4412','9'),
-('22741','4414','3');
\ No newline at end of file
+('22741','4414','3');
+
+-- Frintezza
+DELETE FROM `npcskills` Where `skillid` IN (5014,5015,5016,5017,5018,5019);
+REPLACE INTO `npcskills` VALUES
+(29050,5010,1),
+(29050,5013,1),
+(29051,5009,1),
+(29051,5013,1);
\ No newline at end of file
Index: data/scripts.cfg
===================================================================
--- data/scripts.cfg (revision 6825)
+++ data/scripts.cfg (working copy)
@@ -29,6 +29,7 @@
ai/individual/DarkWaterDragon.java
ai/individual/DrChaos.java
ai/individual/FleeNpc.java
+ai/individual/Frintezza.java
ai/individual/Gordon.java
ai/individual/IceFairySirra.java
ai/individual/Orfen.java
Index: data/zones/zone.xml
===================================================================
--- data/zones/zone.xml (revision 6825)
+++ data/zones/zone.xml (working copy)
@@ -901,7 +901,7 @@
<stat name="oustY" val="-90493" />
<stat name="oustZ" val="-2914" />
</zone>
- <zone id="12005" type="BossZone" shape="NPoly" minZ="-5120" maxZ="-2500">
+ <zone id="12005" type="BossZone" shape="Cuboid" minZ="-5140" maxZ="-2500">
<stat name="name" val="Lair of Frintezza" />
</zone>
<zone id="12006" type="BossZone" shape="Cuboid" minZ="-8320" maxZ="-4870">
Index: data/html/default/32011.htm
===================================================================
--- data/html/default/32011.htm (revision 6825)
+++ data/html/default/32011.htm (working copy)
@@ -1,7 +1,7 @@
<html><body>
I feel an invisible barrier... Some sort of Magic Force Field has been put in place...<br>
...? The guide of the Imperial mausoleum seems to have something to say.<br><br>
-<a action="bypass -h npc_%objectId%_Chat 2">Enter the Magic Force Field</a><br>
+<a action="bypass -h npc_%objectId%_Quest frintezza">Enter the Magic Force Field</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">Listen to Imperial Tomb Guide</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
Index: sql/zone_vertices.sql
===================================================================
--- sql/zone_vertices.sql (revision 6825)
+++ sql/zone_vertices.sql (working copy)
@@ -4439,4 +4439,12 @@
(112080,6,75632,-156376),
(112080,7,77635,-155680),
(112080,8,79985,-155849),
-(112080,9,80995,-153334);
\ No newline at end of file
+(112080,9,80995,-153334);
+
+--
+-- Addons
+--
+DELETE FROM `zone_vertices` WHERE `id` IN (12005);
+REPLACE INTO `zone_vertices` (`id`,`order`,`x`,`y`) VALUES
+(12005,0,172176,-74106),
+(12005,1,176284,-90033);
\ No newline at end of file
Index: data/html/teleporter/29061.htm
===================================================================
--- data/html/teleporter/29061.htm (revision 0)
+++ data/html/teleporter/29061.htm (revision 0)
@@ -0,0 +1,4 @@
+<html><body>
+Teleportation Cubic:<br>
+<a action="bypass -h npc_%objectId%_Quest frintezza">Exit the Last Imperial Tomb.</a>
+</body></html>
\ No newline at end of file
импорты Эпилога... а есть под грацию финал?
Представляю вашему вниманию последнюю на данный момент сборку от команды L2jServer Gracia Epilogue rev.7031
Что в ней реализованно:
1.CommunityBoard поддерживает русские ники.
2.В CommunityBoard имеется встроенный ГМшоп.
3.Реализованна поддержка цветных ников и титулов в игре.
4.Возможность создавать русские ники в игре.
5.Для удобства переведены все самые необходимые конфиги.
Возможно для большинства людей посещающие данный портал,сайт,форум покажется что это может сделать и 10ти летний ребёнок но всё же осмелюсь выложить так как многим просто либо лень делать всё это своими руками и тратить своё время или же просто не умеют.
Лучший игровой сервер - Земля: карта всего одна,но на 6 миллиардов игроков,читеров нет,админ терпеливый,но если уж забанит...
— Уважаемый





