-----------------------------------
-- Area: Temenos 	
-- NPC: 

-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");

-----------------------------------
-- onMobSpawn Action
-----------------------------------

function onMobSpawn(mob)
end;

-----------------------------------
-- onMobEngaged
-----------------------------------

function onMobEngaged(mob,target)
  if   (IsMobDead(16929010)==true and IsMobDead(16929011)==true and IsMobDead(16929012)==true and
        IsMobDead(16929013)==true and IsMobDead(16929014)==true and IsMobDead(16929015)==true 
    )then
       mob:setMod(MOD_SLASHRES,1400);
       mob:setMod(MOD_PIERCERES,1400);
       mob:setMod(MOD_IMPACTRES,1400);
       mob:setMod(MOD_HTHRES,1400);	   
  else
      mob:setMod(MOD_SLASHRES,300);
      mob:setMod(MOD_PIERCERES,300);
      mob:setMod(MOD_IMPACTRES,300);
      mob:setMod(MOD_HTHRES,300);
  end   
  GetMobByID(16929006):updateEnmity(target);
  GetMobByID(16929007):updateEnmity(target);
end;

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)
          if(IsMobDead(16929005)==true and IsMobDead(16929006)==true and IsMobDead(16929007)==true)then
        	GetNPCByID(16928768+78):setPos(-280,-161,-440);
	        GetNPCByID(16928768+78):setStatus(STATUS_NORMAL);
	        GetNPCByID(16928768+473):setStatus(STATUS_NORMAL);		
          end
end;