-----------------------------------
-- Area: 
-- NPC:  Diabolos_Club
-----------------------------------
-----------------------------------

require("scripts/globals/titles");
require("scripts/globals/keyitems");
-----------------------------------
-- onMobSpawn Action
-----------------------------------

function OnMobSpawn(mob)
end;

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

function onMobDeath(mob, killer)
     	if(killer:hasKeyItem(DYNAMIS_TAVNAZIA_SLIVER ) == false)then
	    	killer:addKeyItem(DYNAMIS_TAVNAZIA_SLIVER);
		    killer:messageSpecial(KEYITEM_OBTAINED,DYNAMIS_TAVNAZIA_SLIVER);
		end
		-- despawn diabolos 's pet
		if(GetMobAction(16949253)~=0)then
		   DespawnMob(16949253);
        end		
		if(GetMobAction(16949254)~=0)then
		   DespawnMob(16949254);
        end			
	
	killer:addTitle(NIGHTMARE_AWAKENER);
end;