SongName = "Frintezza's Song";
break;
}
// Like L2OFF the skill name is printed on screen
_Zone.broadcastPacket(new ExShowScreenMessage(SongName , 6000));
if (_OnSong == 1 && _ThirdMorph == 1 && strongScarlet.getCurrentHp() < strongScarlet.getMaxHp() * 0.6 && Rnd.get(100) < 80)
{
_Zone.broadcastPacket(new MagicSkillUser(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 MagicSkillUser(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 MagicSkillUser(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 MagicSkillUser(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;
String SongName = "";
// Name of the songs are custom, named with client side description.
switch(_OnSong)
{
case 1:
SongName = "Frintezza's Concert Hall Melody";
break;
case 2:
SongName = "Frintezza's Rampaging Opus en masse";
break;
case 3:
SongName = "Frintezza Power Encore";
break;
case 4:
SongName = "Mournful Chorale Prelude";
break;
case 5:
SongName = "Hypnotic Mazurka ";
break;
default:
SongName = "Frintezza's Song";
break;
}
// Like L2OFF the skill name is printed on screen
_Zone.broadcastPacket(new ExShowScreenMessage(SongName , 6000));
if (_OnSong == 1 || _OnSong == 2 || _OnSong == 3)
{
if (frintezza != null && !frintezza.isDead() && activeScarlet != null && !activeScarlet.isDead())
skill.getEffects(frintezza, activeScarlet, false, false, false);