Пример #1
0
        private Quest CheckBeforeQuestTest()
        {
            if (!CheckInGame())
            {
                return(null);
            }

            if (lbQuestList.SelectedItem == null)
            {
                ShowErrorMessage("No quest selected");
                return(null);
            }

            BotDataSet.QuestListRow qrow = (BotDataSet.QuestListRow)
                                               ((DataRowView)lbQuestList.SelectedItem).Row;
            int qid = qrow.ID;

            Quest q = DataManager.QuestList[qid];

            if (q == null)
            {
                ShowErrorMessage("Quest '" + qrow.TITLE + "' not found");
                return(null);
            }

            // Start NPC channel and switch to main form
            Output.Instance.Log("quest_test", "Starting quest test ...");
            Program.mainForm.SelectLogTab("quest_test");

            return(q);
        }
Пример #2
0
 public override Endpoint GetEndpoint(string ZoneText, Vector3D waypoint)
 {
     BotDataSet.QuestListRow q_row = (BotDataSet.QuestListRow)((DataRowView)
                                                               ((BindingSource)cb_list[0].DataSource).Current).Row;
     BotDataSet.QuestItemsRow obj_row = (BotDataSet.QuestItemsRow)((DataRowView)
                                                                   ((BindingSource)cb_list[1].DataSource).Current).Row;
     return(new QuestObjEndpoint(EType, q_row.ID, obj_row.IDX, ZoneText, waypoint));
 }
Пример #3
0
        private void recordRouteFromNPCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            object obj = bsGameObjects.Current;
            object q   = fkGameObjectsQuestList.Current;
            object qi  = fKQuestListQuestItemsObjectives.Current;

            if ((obj == null) || (q == null) || (qi == null))
            {
                return;
            }

            BotDataSet.GameObjectsRow obj_row = (BotDataSet.GameObjectsRow)
                                                    ((DataRowView)obj).Row;

            BotDataSet.QuestListRow q_row = (BotDataSet.QuestListRow)
                                                ((DataRowView)q).Row;

            BotDataSet.QuestItemsRow qi_row = (BotDataSet.QuestItemsRow)
                                                  ((DataRowView)qi).Row;

            Program.mainForm.OpenRouteRecording(obj_row.NAME, q_row.TITLE, qi_row.NAME);
        }