Beispiel #1
0
 public Monster(MonsterType Info, Mapping.MobSpawn Spawn)
 {
     this.Info = Info;
     this.Spawn = Spawn;
     UniqueID = Increments.NextMonsterUID;
     packetWriter = new Writer(82 + Info.Name.Length);
     packetWriter.Fill((ushort)82 + Info.Name.Length, 0);
     packetWriter.Fill((ushort)1014, 2);
     packetWriter.Fill(UniqueID, 4);
     packetWriter.Fill(Info.Model, 8);
     packetWriter.Fill(Info.Level, 50);
     packetWriter.Fill((byte)0x64, 59);
     packetWriter.Fill((byte)1, 80);
     packetWriter.Fill((byte)Info.Name.Length, 81);
     packetWriter.Fill(Info.Name, 82);
     HitPoints = Info.MaxHealth;
     Facing = (Enums.ConquerAngle)Program.Random.Next(0, 7);
 }
Beispiel #2
0
 public Monster(MonsterType Info, Mapping.MobSpawn Spawn)
 {
     this.Info    = Info;
     this.Spawn   = Spawn;
     UniqueID     = Increments.NextMonsterUID;
     packetWriter = new Writer(82 + Info.Name.Length);
     packetWriter.Fill((ushort)82 + Info.Name.Length, 0);
     packetWriter.Fill((ushort)1014, 2);
     packetWriter.Fill(UniqueID, 4);
     packetWriter.Fill(Info.Model, 8);
     packetWriter.Fill(Info.Level, 50);
     packetWriter.Fill((byte)0x64, 59);
     packetWriter.Fill((byte)1, 80);
     packetWriter.Fill((byte)Info.Name.Length, 81);
     packetWriter.Fill(Info.Name, 82);
     HitPoints = Info.MaxHealth;
     Facing    = (Enums.ConquerAngle)Program.Random.Next(0, 7);
 }