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); }
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(); }
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(); } }
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); }