public DeliverObjective(Type delivery, int amount, TextDefinition name, Type destination, bool spawnsDelivery) { m_Delivery = delivery; m_Amount = amount; m_Name = name; m_Destination = destination; m_SpawnsDelivery = spawnsDelivery; if (MLQuestSystem.Debug && name.Number > 0) { int itemid = CollectObjective.LabelToItemID(name.Number); if (itemid <= 0 || itemid > 0x4000) { Console.WriteLine("Warning: cliloc {0} is likely giving the wrong item ID", name.Number); } } }
public override void WriteToGump(Gump g, ref int y) { string amount = m_Amount.ToString(); g.AddHtmlLocalized(98, y, 312, 16, 1072207, 0x15F90, false, false); // Deliver g.AddLabel(143, y, 0x481, amount); if (m_Name.Number > 0) { g.AddHtmlLocalized(143 + amount.Length * 15, y, 190, 18, m_Name.Number, 0x77BF, false, false); g.AddItem(350, y, CollectObjective.LabelToItemID(m_Name.Number)); } else if (m_Name.String != null) { g.AddLabel(143 + amount.Length * 15, y, 0x481, m_Name.String); } y += 32; g.AddHtmlLocalized(103, y, 120, 16, 1072379, 0x15F90, false, false); // Deliver to g.AddLabel(223, y, 0x481, QuesterNameAttribute.GetQuesterNameFor(m_Destination)); y += 16; }
public CollectObjectiveInstance(CollectObjective objective, MLQuestInstance instance) : base(instance, objective) { m_Objective = objective; }