コード例 #1
0
ファイル: XmlQuestMaker.cs プロジェクト: Godkong/Origins
        public override void OnDoubleClick( Mobile from )
        {
            base.OnDoubleClick(from);

            if(!(from is PlayerMobile)) return;

            // make a quest note
            QuestHolder newquest = new QuestHolder();
            newquest.PlayerMade = true;
            newquest.Creator = from as PlayerMobile;
            newquest.Hue = 500;
            from.AddToBackpack(newquest);
            from.SendMessage("A blank quest has been added to your pack!");
        }
コード例 #2
0
        public override void OnDoubleClick(Mobile from)
        {
            base.OnDoubleClick(from);

            if (!(from is PlayerMobile))
            {
                return;
            }

            // make a quest note
            QuestHolder newquest = new QuestHolder();

            newquest.PlayerMade = true;
            newquest.Creator    = from as PlayerMobile;
            newquest.Hue        = 500;
            from.AddToBackpack(newquest);
            from.SendMessage("A blank quest has been added to your pack!");
        }