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.setIsImobilised(true);
frintezza.setIsInvul(false);
frintezza.disableAllSkills();
_Zone.updateKnownList(frintezza);
demon2 = (L2MonsterInstance) addSpawn(29051, 175876, -88713, -5100, 28205,false,0);
demon2.setIsImobilised(true);
demon2.disableAllSkills();
_Zone.updateKnownList(demon2);
demon3 = (L2MonsterInstance) addSpawn(29051, 172608, -88702, -5100, 64817,false,0);
demon3.setIsImobilised(true);
demon3.disableAllSkills();
_Zone.updateKnownList(demon3);
demon1 = (L2MonsterInstance) addSpawn(29050, 175833, -87165, -5100, 35048,false,0);
demon1.setIsImobilised(true);
demon1.disableAllSkills();
_Zone.updateKnownList(demon1);
demon4 = (L2MonsterInstance) addSpawn(29050, 172634, -87165, -5100, 57730,false,0);
demon4.setIsImobilised(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() < getXFix(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() < getXFix(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 MagicSkillUser(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(), 600, 180, -25, 0, 10000));
_Zone.broadcastPacket(new MagicSkillUser(_scarletDummy,_overheadDummy, 5004, 1, 5800, 0));
weakScarlet = (L2GrandBossInstance) addSpawn(SCARLET1, 174232, -88020, -5110, 16384, false, 0);
weakScarlet.setIsInvul(false);
weakScarlet.setIsImobilised(true);
weakScarlet.disableAllSkills();
_Zone.updateKnownList(weakScarlet);
activeScarlet = weakScarlet;
/*
startQuestTimer("camera_19", 2400, _scarletDummy, null);
startQuestTimer("camera_19b", 5000, _scarletDummy, null);
*/
startQuestTimer("camera_19", 5500, _scarletDummy, null);
startQuestTimer("camera_19b", 5400, weakScarlet, null);
}
else if (event.equalsIgnoreCase("camera_19"))
{
weakScarlet.teleToLocation(getXFix(174232), getYFix(-88020), getZFix(-5110));
}
else if (event.equalsIgnoreCase("camera_19b"))
{
_Zone.broadcastPacket(new SpecialCamera(_scarletDummy.getObjectId(), 800, 180, 10, 1000, 10000));
startQuestTimer("camera_20", 2100, _scarletDummy, null);
}
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, -5000, 28205,false,0);
portrait2.setIsImobilised(true);
portrait2.disableAllSkills();
_Zone.updateKnownList(portrait2);
portrait3 = (L2MonsterInstance) addSpawn(29049, 172608, -88702, -5000, 64817,false,0);
portrait3.setIsImobilised(true);
portrait3.disableAllSkills();
_Zone.updateKnownList(portrait3);
portrait1 = (L2MonsterInstance) addSpawn(29048, 175833, -87165, -5000, 35048,false,0);
portrait1.setIsImobilised(true);
portrait1.disableAllSkills();
_Zone.updateKnownList(portrait1);
portrait4 = (L2MonsterInstance) addSpawn(29048, 172634, -87165, -5000, 57730,false,0);
portrait4.setIsImobilised(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.setIsImobilised(false);
demon2.setIsImobilised(false);
demon3.setIsImobilised(false);
demon4.setIsImobilised(false);
demon1.enableAllSkills();
demon2.enableAllSkills();
demon3.enableAllSkills();
demon4.enableAllSkills();
portrait1.setIsImobilised(false);
portrait2.setIsImobilised(false);
portrait3.setIsImobilised(false);
portrait4.setIsImobilised(false);
portrait1.enableAllSkills();
portrait2.enableAllSkills();
portrait3.enableAllSkills();
portrait4.enableAllSkills();
weakScarlet.setIsInvul(false);
weakScarlet.setIsImobilised(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.setIsImobilised(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.setIsImobilised(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, false, false, false);
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();
weakScarlet.deleteMe();
weakScarlet = null;
activeScarlet = null;
weakScarlet = (L2GrandBossInstance) addSpawn(SCARLET1, _Scarlet_x, _Scarlet_y, _Scarlet_z, _Scarlet_h, false,0);
weakScarlet.setIsInvul(false);
weakScarlet.setIsImobilised(true);
weakScarlet.disableAllSkills();
weakScarlet.setRHandId(7903);
_Zone.updateKnownList(weakScarlet);
startQuestTimer("morph_07", 7000, frintezza, null);
}
else if (event.equalsIgnoreCase("morph_07"))
{
_Zone.broadcastPacket(new MagicSkillUser(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, reverseXFix(_Scarlet_x), reverseYFix(_Scarlet_y), reverseZFix(_Scarlet_z), _Scarlet_h, false,0);
strongScarlet.setIsInvul(false);
strongScarlet.setIsImobilised(true);
strongScarlet.disableAllSkills();
_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, false, false, false);
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)