#Library "GLOBAL"
#Include "ZCommon.acs"

/*
Achievements:
1 = Book Worm: Collect and use 5 Tomes Of Power
2 = Cattle Prod: Kill a Maulotaur with the Powered Up staff
*/

Script 530 (int AchievementType)
{

//Book Worm 
{
 If(CheckInventory("AchievementBookWorm") == 5 && AchievementType == 1)
   {
   Print(s:"\cgAchievement Unlocked:\cf Book Worm");
   LocalAmbientSound("ITEM/SUPER",64.0);
   TakeInventory("AchievementBookWorm",5);
   }

//Cattle Prod

Else If(AchievementType == 2)
   {
   Print(s:"\cgAchievement Unlocked:\cf Cattle Prod");
   LocalAmbientSound("ITEM/SUPER",64.0);
   TakeInventory("AchievementCattleProd",1);
   }
Else
   {
   }
  }
 }