public override void RenderProgress(BaseQuestGump gump) { if (!Completed) { IngredientInfo info = IngredientInfo.Get(Ingredient); gump.AddHtmlLocalized(70, 260, 270, 100, info.Name, BaseQuestGump.Blue); gump.AddLabel(70, 280, 0x64, CurProgress.ToString()); gump.AddLabel(100, 280, 0x64, "/"); gump.AddLabel(130, 280, 0x64, info.Quantity.ToString()); } else { base.RenderProgress(gump); } }
public override void OnKill(BaseCreature creature, Container corpse) { IngredientInfo info = IngredientInfo.Get(Ingredient); for (int i = 0; i < info.Creatures.Length; i++) { Type type = info.Creatures[i]; if (creature.GetType() == type) { System.From.SendLocalizedMessage(1055043, $"#{info.Name}"); // You gather a ~1_INGREDIENT_NAME~ from the corpse. CurProgress++; break; } } }
public override bool IgnoreYoungProtection(Mobile from) { if (Completed) { return(false); } IngredientInfo info = IngredientInfo.Get(Ingredient); Type fromType = from.GetType(); for (int i = 0; i < info.Creatures.Length; i++) { if (fromType == info.Creatures[i]) { return(true); } } return(false); }