How to make a quest doable only once?

Candy Apple

Squire
Nov 14, 2016
297
26
28
45
Me again :) I was wondering if there is something I can add into the quest scripts so players can only do it one time??
 

Espcevan

Gold Donator
Apr 21, 2015
68
28
18
31
www.UOAccess.com
Shard Name
UOAccess
TestQuest, Do Only Once:
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests
{
    public class TestQuest : BaseQuest
    {
        //Player can only do quest once
        public override bool DoneOnce{ get{ return true; } }


        public TestQuest() : base()
        {
        }

    }
}
 
  • Like
Reactions: Candy Apple

Candy Apple

Squire
Nov 14, 2016
297
26
28
45
TestQuest, Do Only Once:
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests
{
    public class TestQuest : BaseQuest
    {
        //Player can only do quest once
        public override bool DoneOnce{ get{ return true; } }


        public TestQuest() : base()
        {
        }

    }
}
Ok where do I put this thoe in the qust gump? thats the part im unsure of.
 

Candy Apple

Squire
Nov 14, 2016
297
26
28
45
TestQuest, Do Only Once:
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests
{
    public class TestQuest : BaseQuest
    {
        //Player can only do quest once
        public override bool DoneOnce{ get{ return true; } }


        public TestQuest() : base()
        {
        }

    }
}
OK the script I have isn't made with a xml. So I am not sure where to put this in this script.
 

Attachments