grom09

Initiate
Hi,
I've been playing around with different kinds of quest systems and deciding to stick with xmlquest.
I'm encountering a couple of things that i can't find on the forums:
When i spawn the questnpc's they are all blue unlike in basequest, i'm trying to change NameHue = 0x35; (or yellow) , can't seem to figure where to place in xmlquestnpc.
Another thing is the subtitle under the name. I see other quest (basequest) It says Quest Giver. I'm trying to add that title for the xmlquestnpc.
Any help is appreciated :)
(I guess i can xmledit a regular npc and then add that way. but has to be another way)

Also since i'm on this topic, How can i add these quests to be shown in the players paperdoll under Quests, like some of the regular ones.
(its 3am so if i'm not making sense thats why:p)


Thanks!
 
I wonder if it may be something like this, where in this code it looks like this one gives more than one quest

C#:
public class Acob : MondainQuester
    {
        [Constructable]
        public Acob()
            : base("Elder Acob", "the wise")
        {
            this.SetSkill(SkillName.Meditation, 60.0, 83.0);
            this.SetSkill(SkillName.Focus, 60.0, 83.0);
        }

        public Acob(Serial serial)
            : base(serial)
        {
        }

        public override Type[] Quests
        {
            get
            {
                return new Type[]
                {
                    typeof(OverpopulationQuest),
                    typeof(WildBoarCullQuest),
                    typeof(NewLeadershipQuest),
                    typeof(ExAssassinsQuest),
                    typeof(ExtinguishingTheFlameQuest),
                    typeof(DeathToTheNinjaQuest),
                    typeof(CrimeAndPunishmentQuest)
                };
            }
        }
        public override void InitBody()
        {
            this.InitStats(100, 100, 25);
            
            this.Female = false;
            this.Race = Race.Elf;
            
            this.Hue = 0x8389;
            this.HairItemID = 0x2FCF;
            this.HairHue = 0x389;
        }

        public override void InitOutfit()
        {
            this.AddItem(new Backpack());
            this.AddItem(new ElvenBoots(0x73D));
            this.AddItem(new HidePants());
            this.AddItem(new ElvenShirt(0x71));
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
}
 
Well you dont want to change the namehue, you want to set them to be blessed

So you would set the "blessed" property to true, now they are invincible.
For the title no idea
 
The subtitle must be done programmatically, as far as I know.

C#:
public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1072269); // Quest Giver
        }

You can replace the cliloc with a string easily, but you've got to code a new mobile to have the opportunity to use the property override and change that subtitle. But, at that point, just use the baked in MondainQuester. It's a superior quest system to XML as it's fully integrated into the game, and is super easy to iterate new quests.
 
thanks you guys! both of these thlings worked!

I just inserted that code line under XMLQuestNPC as i'm using those npc quest givers.
I'm not sure if xml is the easiest way to do proper quests, but i started placing characters and its going well i think. :)
i must say im using regular spawner to spawn npc's instead of xmlspawner.
cheers
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back