// This is the code for the hook we made earlier public static void SheepSlayerTitles_KilledByEvent(BaseCreature creature, PlayerMobile player) { // Test for the creature type(s) that are valid for these titles if (creature is Sheep) { // First create an instance of your slayer title (since this routine is static) SheepSlayerTitles titleSystem = new SheepSlayerTitles(); // Increment the counter and the core does the rest titleSystem.IncrementSlayerCount(player); } }
// This is the code for the hook we made earlier public static void SheepSlayerTitles_KilledByEvent(BaseCreature creature, PlayerMobile player) { // Test for the creature type(s) that are valid for these titles if (creature is Sheep) { // First create an instance of your slayer title (since this routine is static) SheepSlayerTitles titleSystem = new SheepSlayerTitles(); // Increment the counter and the core does the rest titleSystem.IncrementSlayerCount(player); } }