using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ion.Storage; using Holo.Virtual.Rooms; using Holo.Virtual.Rooms.Pets; using Holo.Virtual.Users; using Holo.Managers; using Holo.Virtual.Rooms.Pathfinding; using System.Threading; using System.Data; namespace Holo.Source.Plugins { class HoundsFunctions { #region Declares /// /// Get room. /// private virtualRoom Room; /// /// Get pet. /// private virtualPet Pet; /// /// Get owner of pet. /// private int OwnerID; /// /// Not figures as in clothes etc figures as in Pets Bots and Users. /// private int[] Figures; private virtualUser User; #endregion #region Properties /// /// Set rows and get rows using petID variable. /// /// internal HoundsFunctions(int petID) { Pet.ID = petID; // set petID to virtualPet Pet ID. DataRow dRow; // Declare row. using (DatabaseClient Hounds = Eucalypt.dbManager.GetClient()) // Get DatabaseClient. { dRow = Hounds.getRow("SELECT ownerid FROM pets WHERE id = '" + petID + "'"); // Only using ownerID will need the others later Figures[0] = this.User.userID; // User Figures[1] = this.User.roomUser.userID; // Room User ID [Target] Figures[2] = this.Pet.ID; // Pet } this.OwnerID = Convert.ToInt32(dRow["ownerid"]); // Define OwnerID variable. } #endregion } }