public override bool RenderDescription(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } if (offer) { g.AddButton(95, 455, 0x2EE0, 0x2EE2, (int)Buttons.AcceptQuest, GumpButtonType.Reply, 0); g.AddButton(313, 455, 0x2EF2, 0x2EF4, (int)Buttons.RefuseQuest, GumpButtonType.Reply, 0); } else { g.AddButton(95, 455, 0x2EF5, 0x2EF7, (int)Buttons.ResignQuest, GumpButtonType.Reply, 0); g.AddButton(313, 455, 0x2EEC, 0x2EEE, (int)Buttons.CloseQuest, GumpButtonType.Reply, 0); } g.AddButton(275, 430, 0x2EE9, 0x2EEB, (int)Buttons.NextPage, GumpButtonType.Reply, 0); g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1072202, 0x2710, false, false); // Description g.AddHtmlObject(98, 156, 312, 240, Description, BaseQuestGump.LightGreen, false, true); return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 312, 83, 1158302, BaseQuestGump.LightGreen, false, false); /* Enter the appropriate level of despise based on your karma. Once inside, find and use an ankh.*/ g.AddHtmlLocalized(98, 255, 312, 40, 1158305, BaseQuestGump.LightGreen, false, false); //Using your wisp, posses a creature within the dungeon. g.AddHtmlLocalized(98, 335, 312, 40, 1158306, BaseQuestGump.LightGreen, false, false); // Defeat Andros or Adrian in the depths of Despise. return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 1, 40, 16, 1072207, 0x15F90, false, false); // Deliver g.AddHtmlLocalized(143, 172, 300, 16, 1156516, 0xFFFF, false, false); // Orders from King Blackthorn to Sir Geoffrey return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer else g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following int offset = 172; string str; foreach (QuestionAndAnswerObjective obj in Objectives.OfType<QuestionAndAnswerObjective>()) { if (offer) str = String.Format("Answer {0} questions correctly.", obj.MaxProgress); else str = String.Format("Answer {0}/{1} questions answered correctly.", obj.CurProgress, obj.MaxProgress); g.AddHtmlObject(98, offset, 312, 16, str, BaseQuestGump.LightGreen, false, false); offset += 16; } return true; }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddButton(130, 430, 0x2EEF, 0x2EF1, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0); g.AddButton(275, 430, 0x2EE9, 0x2EEB, (int)Buttons.NextPage, GumpButtonType.Reply, 0); g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 312, 83, 1158234, BaseQuestGump.LightGreen, false, false); /* Find the location marked on the Treasure Map given to you by the Cartographer and use the supplies the Provisioner * gave you to recover the treasure.*/ g.AddHtmlLocalized(98, 255, 312, 40, 1158235, BaseQuestGump.LightGreen, false, false); //Expand your experience as a Treasure Hunter to an Expertly Drawn Map. g.AddHtmlLocalized(98, 335, 312, 40, 1158236, BaseQuestGump.LightGreen, false, false); // Complete your experience as a Treasure Hunter by discovering the final treasure hoard. return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following int offset = 172; g.AddHtmlLocalized(98, offset, 312, 16, 1116710, 0x2710, false, false); // Capture or kill a pirate listed on the bulletin board. offset += 16; g.AddHtmlLocalized(98, offset, 312, 32, 1116711, 0x15F90, false, false); //Return to the officer with the pirate or a death certificate for your reward. offset += 32; g.AddHtmlLocalized(98, offset, 312, 32, 1116712, 0x15F90, false, false); //The gold listed on the bulletin board and a special reward from the officer if captured alive. return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 160, 312, 16, 1156792, 0x15F90, false, false); //Win 3 Games of "Chuckle's Luck" at the Fortune's Fire Casino g.AddHtmlLocalized(98, 176, 312, 16, 1156793, 0x15F90, false, false); //Win 3 games of "Hi-Middle-Lo" at the Fortune's Fire Casino g.AddHtmlLocalized(98, 192, 312, 16, 1156794, 0x15F90, false, false); //Win 3 games of "Dice Rider" at the Fortune's Fire Casino return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 300, 16, 1156534, 0xFFFF, false, false); // Rescue 5 Dragon Turtle Hatchlings from poachers return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 300, 16, 1156533, 0xFFFF, false, false); // Slay the Tyrannosaurus Rex return(true); }
public override bool RenderObjective(MondainQuestGump gump, bool offer) { int offset = 172; BaseObjective first = null; for (var index = 0; index < Objectives.Count; index++) { var o = Objectives[index]; if (o is SlayObjective) { first = o; break; } } SlayObjective slay = first as SlayObjective; for (int i = 0; i < Objectives.Count - 1; i++) { if (i != 0 && i % 3 == 0) { gump.SecObjectivesButtons(); offset = 172; } if (i == 0) { gump.AddHtmlLocalized(98, offset, 312, 16, 1072204, 0x15F90, false, false); // Slay if (slay != null) { gump.AddLabel(133, offset, 0x481, slay.MaxProgress.ToString()); // Count gump.AddLabel(163, offset, 0x481, slay.Name); // Name offset += 16; if (!offer) { gump.AddHtmlLocalized(103, offset, 120, 16, 3000087, 0x15F90, false, false); // Total gump.AddLabel(223, offset, 0x481, slay.CurProgress.ToString()); // %current progress% offset += 16; } } } gump.AddHtmlLocalized(98, offset, 312, 80, 1150933 + i, 0x15F90, false, false); offset += 80; } return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 172, 312, 83, 1158302, 0x15F90, false, false); /* Enter the appropriate level of despise based on your karma. Once inside, find and use an ankh.*/ g.AddHtmlLocalized(98, 255, 312, 40, 1158305, 0x15F90, false, false); //Using your wisp, posses a creature within the dungeon. g.AddHtmlLocalized(98, 335, 312, 40, 1158306, 0x15F90, false, false); // Defeat Andros or Adrian in the depths of Despise. return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { g.AddHtmlLocalized(98, 172, 312, 83, 1158234, 0x15F90, false, false); /* Find the location marked on the Treasure Map given to you by the Cartographer and use the supplies the Provisioner * gave you to recover the treasure.*/ g.AddHtmlLocalized(98, 255, 312, 40, 1158235, 0x15F90, false, false); //Expand your experience as a Treasure Hunter to an Expertly Drawn Map. g.AddHtmlLocalized(98, 335, 312, 40, 1158236, 0x15F90, false, false); // Complete your experience as a Treasure Hunter by discovering the final treasure hoard. return(true); }
public override bool RenderDescription(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1072202, 0x2710, false, false); // Description g.AddHtmlObject(98, 156, 312, 240, Description, BaseQuestGump.LightGreen, false, true); return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 300, 16, 1156534, 0xFFFF, false, false); // Rescue 5 Dragon Turtle Hatchlings from poachers return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 300, 16, 1156547, 0xFFFF, false, false); // Defeat the Great Ape return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 160, 312, 16, 1116509, 0x15F90, false, false); //Fill the crate on your ship with the correct fish. g.AddHtmlLocalized(98, 176, 312, 16, 1116518, 0x15F90, false, false); //Speak with the fishmonger at the port of delivery. return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 160, 312, 16, 1156792, 0x15F90, false, false); //Win 3 Games of "Chuckle's Luck" at the Fortune's Fire Casino g.AddHtmlLocalized(98, 176, 312, 16, 1156793, 0x15F90, false, false); //Win 3 games of "Hi-Middle-Lo" at the Fortune's Fire Casino g.AddHtmlLocalized(98, 192, 312, 16, 1156794, 0x15F90, false, false); //Win 3 games of "Dice Rider" at the Fortune's Fire Casino return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 1, 40, 16, 1072207, 0x15F90, false, false); // Deliver g.AddHtmlLocalized(143, 172, 300, 16, 1156516, 0xFFFF, false, false); // Orders from King Blackthorn to Sir Geoffrey return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following /*Use the Animal Lore Skill on your pet and select "Begin Animal Training."<br><br> */ g.AddHtmlLocalized(98, 172, 312, 50, 1157534, BaseQuestGump.LightGreen, false, false); return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following /*Lead your pet into the wild and battle it against other creatures until the "Pet Training Progress" bar is full.*/ g.AddHtmlLocalized(98, 172, 312, 50, 1157541, BaseQuestGump.LightGreen, false, false); return(true); }
private void RenderRewardPage(MondainQuestGump gump, bool offer) { int offset = 163; if (offer) { gump.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { gump.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } gump.AddHtmlLocalized(98, 140, 312, 16, 1072201, 0x2710, false, false); // Reward BaseReward reward = Rewards[0]; gump.AddImage(105, offset, 0x4B9); gump.AddHtmlObject(133, offset, 280, 100, reward.Name, BaseQuestGump.LightGreen, false, false); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddButton(130, 430, 0x2EEF, 0x2EF1, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0); g.AddButton(275, 430, 0x2EE9, 0x2EEB, (int)Buttons.NextPage, GumpButtonType.Reply, 0); g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following g.AddHtmlLocalized(98, 172, 300, 16, 1156547, 0xFFFF, false, false); // Defeat the Great Ape return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following /*Use the Animal Lore skill on your pet and select "Pet Training Options" to mix and match which properties * you will train your pet. When you are satisfied with the property you have chosen select "Train Pet" * and confirm the training!.*/ g.AddHtmlLocalized(98, 172, 312, 50, 1157546, BaseQuestGump.LightGreen, false, false); return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddButton(130, 430, 0x2EEF, 0x2EF1, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0); g.AddButton(275, 430, 0x2EE9, 0x2EEB, (int)Buttons.NextPage, GumpButtonType.Reply, 0); g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following int offset = 172; string str; foreach (QuestionAndAnswerObjective obj in Objectives.OfType <QuestionAndAnswerObjective>()) { if (offer) { str = string.Format("Answer {0} questions correctly.", obj.MaxProgress); } else { str = string.Format("Answer {0}/{1} questions answered correctly.", obj.CurProgress, obj.MaxProgress); } g.AddHtmlObject(98, offset, 312, 16, str, BaseQuestGump.LightGreen, false, false); offset += 16; } return(true); }
public virtual bool RenderObjective(MondainQuestGump g, bool offer) { return(false); }
public virtual bool RenderDescription(MondainQuestGump g, bool offer) { return(false); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer else g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log g.AddHtmlObject(160, 70, 330, 16, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following int offset = 172; g.AddHtmlLocalized(98, offset, 312, 16, 1116710, 0x2710, false, false); // Capture or kill a pirate listed on the bulletin board. offset += 16; g.AddHtmlLocalized(98, offset, 312, 32, 1116711, 0x15F90, false, false); //Return to the officer with the pirate or a death certificate for your reward. offset += 32; g.AddHtmlLocalized(98, offset, 312, 32, 1116712, 0x15F90, false, false); //The gold listed on the bulletin board and a special reward from the officer if captured alive. return true; }
public virtual bool RenderDescription(MondainQuestGump g, bool offer) { return false; }
public virtual bool RenderObjective(MondainQuestGump g, bool offer) { return false; }
public override bool RenderObjective(MondainQuestGump gump, bool offer) { int offset = 163; int page = 1; var slay = Objectives.FirstOrDefault(o => o is SlayObjective) as SlayObjective; if (offer) { gump.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { gump.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } gump.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); gump.AddPage(page); gump.AddButton(130, 430, 0x2EEF, 0x2EF1, 0, GumpButtonType.Page, page - 1); gump.AddHtmlLocalized(98, 147, 312, 16, 1072208, 0x2710, false, false); // All of the following gump.AddHtmlLocalized(98, offset, 30, 16, 1072204, 0x15F90, false, false); // Slay gump.AddLabel(133, offset, 0x481, "10 " + slay.Name); // %count% + %name% offset += 16; if (!offer) { gump.AddHtmlLocalized(103, offset, 120, 16, 3000087, 0x15F90, false, false); // Total gump.AddLabel(223, offset, 0x481, slay.CurProgress.ToString()); // %current progress% offset += 16; } offset += 75; for (int i = 1; i < Objectives.Count; i++) { gump.AddHtmlLocalized(98, offset, 305, 16, 1150933 + (i - 1), 0x15F90, false, false); if (offset + 80 > 335) { offset = 163; gump.AddButton(275, 430, 0x2EE9, 0x2EEB, 0, GumpButtonType.Page, page + 1); gump.AddPage(++page); gump.AddButton(130, 430, 0x2EEF, 0x2EF1, 0, GumpButtonType.Page, page - 1); if (i == Objectives.Count - 1) { RenderRewardPage(gump, offer); break; } } // render rewards page else if (i == Objectives.Count - 1) { gump.AddButton(275, 430, 0x2EE9, 0x2EEB, 0, GumpButtonType.Page, page + 1); gump.AddPage(++page); RenderRewardPage(gump, offer); gump.AddButton(130, 430, 0x2EEF, 0x2EF1, 0, GumpButtonType.Page, page - 1); break; } else { offset += 80; } } return(true); }
public override bool RenderObjective(MondainQuestGump g, bool offer) { if (offer) g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer else g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 160, 312, 16, 1116509, 0x15F90, false, false); //Fill the crate on your ship with the correct fish. g.AddHtmlLocalized(98, 176, 312, 16, 1116518, 0x15F90, false, false); //Speak with the fishmonger at the port of delivery. return true; }
public override bool RenderDescription(MondainQuestGump g, bool offer) { if (offer) g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer else g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1072202, 0x2710, false, false); // Description g.AddHtmlObject(98, 156, 312, 240, Description, BaseQuestGump.LightGreen, false, true); return true; }