public override void RenderProgress(BaseQuestGump gump) { if (!Completed) { gump.AddHtmlLocalized(70, 260, 270, 100, 1054055, BaseQuestGump.Blue, false, false); // Solen Nests Studied : gump.AddLabel(70, 280, 0x64, CurProgress.ToString()); gump.AddLabel(100, 280, 0x64, "/"); gump.AddLabel(130, 280, 0x64, MaxProgress.ToString()); } else { base.RenderProgress(gump); } }
public override void RenderProgress(BaseQuestGump gump) { if (!Completed) { gump.AddHtmlObject(70, 260, 270, 100, 1063318, BaseQuestGump.Blue, false, false); // Deathwatch Beetle Hatchlings killed: gump.AddLabel(70, 280, 0x64, CurProgress.ToString()); gump.AddLabel(100, 280, 0x64, "/"); gump.AddLabel(130, 280, 0x64, MaxProgress.ToString()); } else { base.RenderProgress(gump); } }
public virtual void OnKill(Mobile killed) { if (Completed) { Quest.Owner.SendMessage("You killed all the {0} required for this Quest.", killed.Name); // You have killed all the required quest creatures of this type. } else { Quest.Owner.SendMessage("You killed {0}. You have {1}/{2} Left.", killed.Name, (MaxProgress - CurProgress).ToString(), MaxProgress.ToString()); // You have killed a quest creature. ~1_val~ more left. } }
public override bool Update(object o) { Type t = o as Type; if (t != null && t == GameType && Quest != null && Quest.Owner != null && Quest.Owner.Region.IsPartOf("FireIsleCasino")) { if (t == typeof(ChucklesLuck)) { CurProgress++; Quest.Owner.SendSound(Quest.UpdateSound); if (CurProgress <= MaxProgress) { Quest.Owner.SendLocalizedMessage(1156795, string.Format("{0}\t{1}\t{2}", CurProgress.ToString(), MaxProgress.ToString(), "Chuckles' Luck")); // [Quest Event: Getting Even] You have won ~1_count~ of ~2_req~ games of ~3_game~! } } else if (t == typeof(HiMiddleLow)) { CurProgress++; Quest.Owner.SendSound(Quest.UpdateSound); if (CurProgress <= MaxProgress) { Quest.Owner.SendLocalizedMessage(1156795, string.Format("{0}\t{1}\t{2}", CurProgress.ToString(), MaxProgress.ToString(), "Hi-Middle-Low")); // [Quest Event: Getting Even] You have won ~1_count~ of ~2_req~ games of ~3_game~! } } else if (t == typeof(DiceRider)) { CurProgress++; Quest.Owner.SendSound(Quest.UpdateSound); if (CurProgress <= MaxProgress) { Quest.Owner.SendLocalizedMessage(1156795, string.Format("{0}\t{1}\t{2}", CurProgress.ToString(), MaxProgress.ToString(), "Dice Rider")); // [Quest Event: Getting Even] You have won ~1_count~ of ~2_req~ games of ~3_game~! } } return(true); } return(false); }