// This is the code for the hook we made earlier public static void DragonSlayerTitles_KilledByEvent(BaseCreature creature, PlayerMobile player) { // Test for the creature type(s) that are valid for these titles if (creature is Dragon || creature is GreaterDragon || creature is AncientWyrm || creature is WhiteWyrm) { // First create an instance of your slayer title (since this routine is static) DragonSlayerTitles titleSystem = new DragonSlayerTitles(); // 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 DragonSlayerTitles_KilledByEvent(BaseCreature creature, PlayerMobile player) { // Test for the creature type(s) that are valid for these titles if (creature is Dragon || creature is GreaterDragon || creature is AncientWyrm || creature is WhiteWyrm) { // First create an instance of your slayer title (since this routine is static) DragonSlayerTitles titleSystem = new DragonSlayerTitles(); // Increment the counter and the core does the rest titleSystem.IncrementSlayerCount(player); } }