Наследование: Zepheus.Zone.Game.MapObject
Пример #1
0
        public void SpawnMob()
        {
            if (CurrentMobs == MaxMobs) return; // ...
            Mob mob = new Mob(this);

            Map.FinalizeAdd(mob);
        }
Пример #2
0
 private void SpawnMobT(ZoneCharacter character, params string[] param)
 {
     ushort id = ushort.Parse(param[1]);
     int count = 1;
     if (param.Length >= 3)
     {
         count = int.Parse(param[2]);
     }
     if (DataProvider.Instance.MobsByID.ContainsKey(id))
     {
         for (int i = 0; i < count; i++)
         {
             Mob mob = new Mob(id, new Vector2(character.Position));
             character.Map.FullAddObject(mob);
         }
     }
     else character.DropMessage("Monster ID not found.");
 }
Пример #3
0
 private void SpawnMobT(ZoneCharacter character, params string[] param)
 {
     string mobName = param[1];
     int count = 1;
     if (param.Length >= 3)
     {
         count = int.Parse(param[2]);
     }
     if (DataProvider.Instance.MobsByName.ContainsKey(mobName))
     {
         ushort mobID = DataProvider.Instance.MobsByName[mobName].ID;
         for (int i = 0; i < count; i++)
         {
             Mob mob = new Mob(mobID, new Vector2(character.Position));
             character.Map.FullAddObject(mob);
         }
     }
     else character.DropMessage("Monster Name not found.");
 }
Пример #4
0
 private void SpawnMob(ZoneCharacter character, params string[] param)
 {
     ushort id = ushort.Parse(param[1]);
     if (DataProvider.Instance.MobsByID.ContainsKey(id))
     {
         Mob mob = new Mob((ushort)(param.Length == 2 ? id : 1045), new Vector2(character.Position));
         character.Map.FullAddObject(mob);
     }
     else character.DropMessage("Monster ID not found.");
 }
Пример #5
0
 public RandomDrop(Mob mob)
 {
     this.dropcounter = 0;
     this.Monster = mob;
     GenerateDrop();
 }