void OnCombatStart(Unit* mTarget)
 {
     _unit->SendScriptTextChatMessage(SAY_NOVOS_SUMMONER_01);
     _unit->CastSpell(_unit, 47346, false);
     //spawn 4 Ritual Crystal
     for (uint8 i = 0; i < 4; i++)
         SpawnCrystal(i);
     handler_timer = getMSTime() + HANDLER_INTERVAL;
     _unit->GetAIInterface()->disable_melee = true;
     phase = 1;
     for (uint8 i = 0; i < 7; i++)
         _unit->SchoolImmunityList[i] = 1;
     _unit->SendScriptTextChatMessage(SAY_NOVOS_SUMMONER_05);
     _unit->SendScriptTextChatMessage(SAY_NOVOS_SUMMONER_06);
     RegisterAIUpdateEvent(_unit->GetBaseAttackTime(MELEE));
 }
Пример #2
0
    void OnCombatStart(Unit* mTarget)
    {
		//these texts shouldn't be like this
		_unit->SendChatMessage( CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "The chill that you feel is the herald of your doom!");
		_unit->CastSpell( _unit, 47346, false );
		//spawn 4 Ritual Crystal
		for( uint8 i=0; i<4; i++)
			SpawnCrystal(i);
		handler_timer = getMSTime() + HANDLER_INTERVAL;
		_unit->GetAIInterface()->disable_melee = true;
		phase = 1;
		for( uint8 i=0; i<7; i++ )
			_unit->SchoolImmunityList[i] = 1;
		_unit->SendChatMessage( CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "Surely you can see the futility of it all!");
		_unit->SendChatMessage( CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "Just give up and die already! ");
		RegisterAIUpdateEvent(_unit->GetBaseAttackTime(MELEE));
    }