예제 #1
0
        private void OnSelectOption(string displayName)
        {
            string     name       = NpcHandler.Dictionary[displayName];
            NpcHandler npcHandler = new NpcHandler(name);

            if (npcHandler.Target != null)
            {
                if (Config.AllowQuestSubmissions)
                {
                    QuestHandler questHandler = new QuestHandler(this);
                    questHandler.FindOneAndUpdate(npcHandler, itemHandler);

                    if (UseDefaultAction)
                    {
                        ProcessGift(npcHandler);
                    }
                }
                else
                {
                    ProcessGift(npcHandler);
                }

                Exit();
            }
        }