Beispiel #1
0
 public void setControlStatus(MobControlStatus mcs)
 {
     MobPacket.SendMobRequestEndControl(null, this);
     MobPacket.SendMobSpawn(null, this, 0, null, false, false);
     ControlStatus = mcs;
     DataProvider.Maps[MapID].UpdateMobControl(this, false, null);
 }
Beispiel #2
0
 internal Mob(int id, int mapid, int mobid, Pos position, short foothold, MobControlStatus controlStatus)
     : base(foothold, position, 2)
 {
     Damages = new Dictionary<int, ulong>();
     OriginalFoothold = foothold;
     MobID = mobid;
     MapID = mapid;
     SpawnID = id;
     ControlStatus = controlStatus;
     DoesRespawn = true;
     OriginalPosition = position;
     Position = position;
     DeadsInFiveMinutes = 0;
     Init();
 }
Beispiel #3
0
 internal Mob(int id, int mapid, int mobid, Pos position, short foothold, MobControlStatus controlStatus, bool pDoesRespawn = true) :
     base(foothold, position, 2)
 {
     Damages            = new Dictionary <int, ulong>();
     OriginalFoothold   = foothold;
     MobID              = mobid;
     MapID              = mapid;
     SpawnID            = id;
     ControlStatus      = controlStatus;
     DoesRespawn        = pDoesRespawn;
     OriginalPosition   = position;
     DeadsInFiveMinutes = 0;
     Init();
     if (pDoesRespawn)
     {
         InitData();
     }
 }
Beispiel #4
0
 public void setControlStatus(MobControlStatus mcs)
 {
     //MobPacket.SendMobRequestEndControl(null, this);
     //MobPacket.SendMobSpawn(null, this, 0, null, false, false);
     //ControlStatus = mcs;
     //DataProvider.Maps[MapID].UpdateMobControl(this, false, null);
 }