internal Mover(Account account, OutwarHttpSocket socket) { Socket = socket; Account = account; Location = new Room(this, 0); mTrainRoomStart = -1; MobsAttacked = 0; ExpGained = 0; ReturnToStartHandler = new ReturnToStartHandler(Account); }
internal Mob(string name, string url, string attackurl, bool isQuest, bool isTrainer, bool isSpawn, Room room) : base(name, url, room) { mAttackUrl = attackurl; IsTalkable = isQuest; IsTrainer = isTrainer; IsSpawn = isSpawn; // add it to collector if we don't already have it in the database, excluding spawns if (Pathfinding.Pathfinder.Mobs.Find(delegate(Pathfinding.MappedMob m) { return m.Name.Equals(name) && (m.Id == mId || mId > 1000000); }) == null) { // it's new Pathfinding.MobCollector.Add(this); } }
internal Occupier(string name, string url, Room room) { mName = name; mURL = url; mRoom = room; if (mURL.Contains("ONMOUSEOVER")) { // spawn mob mURL = mURL.Substring(0, mURL.IndexOf("\"")); } if (!long.TryParse(new Parser(mURL).Parse("id=", "&h"), out mId)) { mId = 0; } }
/// <summary> /// /// </summary> /// <param name="url"></param> /// <returns>0 if good, 1 if error with retry, 2 if error with override</returns> private int LoadRoom(int id, bool isDoor) { Room tmp = new Room(this, id); tmp.IsDoor = isDoor; int r = tmp.Load(); if (r == 0) Location = tmp; return r; }