|
public void AddClone(string Name, ushort cloneid)
{
var Entity = new Entity(EntityFlag.Monster, true);
Entity.Owner = Owner;
Entity.MonsterInfo = new MonsterInformation();
MonsterInformation.MonsterInformations.TryGetValue(9003, out Entity.MonsterInfo);
Entity.MonsterInfo.Owner = Entity;
Entity.ClanName = this.Name;
Entity.Name = Name;
Entity.NobilityRank = NobilityRank;
Entity.HairStyle = HairStyle;
Entity.HairColor = HairColor;
Entity.EquipmentColor = EquipmentColor;
Entity.IsClone = true;
Entity.AddFlag(MsgUpdate.Flags.Invisibility, 10000000, false);
Entity.Appearance = Appearance;
Entity.HeadId = HeadId;
Entity.GarmentId = GarmentId;
Entity.ArmorId = ArmorId;
Entity.LeftWeaponId = LeftWeaponId;
Entity.RightWeaponId = RightWeaponId;
Entity.LeftWeaponAccessoryId =LeftWeaponAccessoryId;
Entity.RightWeaponAccessoryId = RightWeaponAccessoryId;
Entity.MinAttack = MinAttack;
Entity.MaxAttack = Entity.MagicAttack = Math.Max(MinAttack, MaxAttack);
Entity.Hitpoints = Entity.MaxHitpoints = Hitpoints;
Entity.Body = Body;
Entity.UID = 703400 + Owner.Map.CloneCounter.Next;
Entity.OwnerUID = Owner.Entity.UID;
Entity.OwnerCount = 2;
Entity.OwnerFlag = cloneid;
Entity.MapID = Owner.Map.ID;
Entity.SendUpdates = true;
Entity.X = Owner.Entity.X;
Entity.Y = Owner.Entity.Y;
MyClones.Add(Entity.UID, Entity);
Entity.SendSpawn(Owner);
// Write(StatusFlag, _StatusFlag, Entity.SpawnPacket);
Entity.UpdateFlagOffset();
Owner.SendScreenSpawn(Entity, false);
_String stringPacket = new _String(true);
stringPacket.UID = Entity.UID;
stringPacket.Type = _String.Effect;
stringPacket.Texts.Add("replaceappear");
Owner.SendScreen(stringPacket);
}
public void AddClone(string Name, ushort cloneid)
{
var Entity = new Entity(EntityFlag.Monster, true);
Entity.Owner = Owner;
Entity.MonsterInfo = new MonsterInformation();
MonsterInformation.MonsterInformations.TryGetValue(9003, out Entity.MonsterInfo);
Entity.MonsterInfo.Owner = Entity;
Entity.ClanName = this.Name;
Entity.Name = Name;
Entity.NobilityRank = NobilityRank;
Entity.HairStyle = HairStyle;
Entity.HairColor = HairColor;
Entity.EquipmentColor = EquipmentColor;
Entity.IsClone = true;
Entity.AddFlag(MsgUpdate.Flags.Invisibility, 10000000, false);
Entity.Appearance = Appearance;
Entity.HeadId = HeadId;
Entity.GarmentId = GarmentId;
Entity.ArmorId = ArmorId;
Entity.LeftWeaponId = LeftWeaponId;
Entity.RightWeaponId = RightWeaponId;
Entity.LeftWeaponAccessoryId =LeftWeaponAccessoryId;
Entity.RightWeaponAccessoryId = RightWeaponAccessoryId;
Entity.MinAttack = MinAttack;
Entity.MaxAttack = Entity.MagicAttack = Math.Max(MinAttack, MaxAttack);
Entity.Hitpoints = Entity.MaxHitpoints = Hitpoints;
Entity.Body = Body;
Entity.UID = 703400 + Owner.Map.CloneCounter.Next;
Entity.OwnerUID = Owner.Entity.UID;
Entity.OwnerCount = 2;
Entity.OwnerFlag = cloneid;
Entity.MapID = Owner.Map.ID;
Entity.SendUpdates = true;
Entity.X = Owner.Entity.X;
Entity.Y = Owner.Entity.Y;
MyClones.Add(Entity.UID, Entity);
Entity.SendSpawn(Owner);
// Write(StatusFlag, _StatusFlag, Entity.SpawnPacket);
Entity.UpdateFlagOffset();
Owner.SendScreenSpawn(Entity, false);
_String stringPacket = new _String(true);
stringPacket.UID = Entity.UID;
stringPacket.Type = _String.Effect;
stringPacket.Texts.Add("replaceappear");
Owner.SendScreen(stringPacket);
}
public void AddClone(string Name, ushort cloneid)
{
var Entity = new Entity(EntityFlag.Monster, true);
Entity.Owner = Owner;
Entity.MonsterInfo = new MonsterInformation();
MonsterInformation.MonsterInformations.TryGetValue(9003, out Entity.MonsterInfo);
Entity.MonsterInfo.Owner = Entity;
Entity.ClanName = this.Name;
Entity.Name = Name;
Entity.NobilityRank = NobilityRank;
Entity.HairStyle = HairStyle;
Entity.HairColor = HairColor;
Entity.EquipmentColor = EquipmentColor;
Entity.IsClone = true;
Entity.AddFlag(MsgUpdate.Flags.Invisibility, 10000000, false);
Entity.Appearance = Appearance;
Entity.HeadId = HeadId;
Entity.GarmentId = GarmentId;
Entity.ArmorId = ArmorId;
Entity.LeftWeaponId = LeftWeaponId;
Entity.RightWeaponId = RightWeaponId;
Entity.LeftWeaponAccessoryId =LeftWeaponAccessoryId;
Entity.RightWeaponAccessoryId = RightWeaponAccessoryId;
Entity.MinAttack = MinAttack;
Entity.MaxAttack = Entity.MagicAttack = Math.Max(MinAttack, MaxAttack);
Entity.Hitpoints = Entity.MaxHitpoints = Hitpoints;
Entity.Body = Body;
Entity.UID = 703400 + Owner.Map.CloneCounter.Next;
Entity.OwnerUID = Owner.Entity.UID;
Entity.OwnerCount = 2;
Entity.OwnerFlag = cloneid;
Entity.MapID = Owner.Map.ID;
Entity.SendUpdates = true;
Entity.X = Owner.Entity.X;
Entity.Y = Owner.Entity.Y;
MyClones.Add(Entity.UID, Entity);
Entity.SendSpawn(Owner);
// Write(StatusFlag, _StatusFlag, Entity.SpawnPacket);
Entity.UpdateFlagOffset();
Owner.SendScreenSpawn(Entity, false);
_String stringPacket = new _String(true);
stringPacket.UID = Entity.UID;
stringPacket.Type = _String.Effect;
stringPacket.Texts.Add("replaceappear");
Owner.SendScreen(stringPacket);
}
الذين يشاهدون محتوى الموضوع الآن : 3 ( الأعضاء 0 والزوار 3) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل مشكله الskills مش بيتعملها ابجريد | Tefa | تطوير سيرفرات كونكر | 3 | 2021-07-25 01:52 AM |
مشكله اضافه رسمه عالارض لسورس رايزو | neno2052 | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-09-05 06:01 PM |
مشكله اضافه شوب exchange لسورس رايزو | neno2052 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-09-04 08:10 PM |
مشكله اضافه في سورس رايزو | neno2052 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-09-03 03:38 AM |
حل مشكله اختفاء الشعر بعد ابجريد ال3 دى | Mr. Co | تطوير سيرفرات كونكر | 6 | 2019-07-24 01:56 AM |