コード例 #1
0
ファイル: RouteDetails.cs プロジェクト: uvbs/babbot
 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));
 }
コード例 #2
0
        private int GetQuestReward()
        {
            // Get choice reward (if any)
            int choice = 0;

            if (fKQuestListQuestItemsChoice.Current != null)
            {
                BotDataSet.QuestItemsRow row = (BotDataSet.QuestItemsRow)((DataRowView)
                                                                          fKQuestListQuestItemsChoice.Current).Row;
                choice = row.IDX;
            }
            return(choice);
        }
コード例 #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);
        }