After Patch 5722

06/27/2013 18:46 marcbacor6666#16
i added the codes but still thesame
06/27/2013 20:17 abdoumatrix#17
make a command to check the AssassinColor may be a bad BP calculation
06/27/2013 20:44 marcbacor6666#18
[Only registered and activated users can see links. Click Here To Register...]
06/27/2013 20:50 abdoumatrix#19
Quote:
Originally Posted by marcbacor6666 View Post
[Only registered and activated users can see links. Click Here To Register...]
i know what u mean | sometime due to bad BP calculation.

try this command to check this ur BP value

PHP Code:
  case "bpp":
                                
Conquer_Online_Server.Console.WriteLine("BP:" client.Entity.AssassinColor);
                                break; 
06/27/2013 20:54 marcbacor6666#20
oke

where can i fix my bp system? here?
Quote:
public ushort BattlePowerCalc(Entity e)
06/27/2013 21:17 abdoumatrix#21
yeah
06/27/2013 21:27 marcbacor6666#22
[Only registered and activated users can see links. Click Here To Register...]

Code:
 public ushort BattlePowerCalc(Entity e)
        {
            ushort BP = e.Level;
            ushort level = e.Level;
            if (e == null)
            {
                return 0;
            }
            if (e.Owner == null)
            {
                return 0;
            }

            foreach (IConquerItem i in e.Owner.Equipment.Objects)
            {
                if (!Owner.AlternateEquipment)
                {
                    if (i == null) continue;
                    if (i.Position < 20)
                    {
                        if (i.Position != ConquerItem.Bottle &&
                            i.Position != ConquerItem.Garment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.RightWeapon && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.LeftWeapon);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
                else
                {
                    if (i == null) continue;
                    if (i.Position > 9)
                    {
                        if (i.Position != ConquerItem.AltBottle &&
                            i.Position != ConquerItem.AltGarment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.AltRightHand && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.AltLeftHand);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
            }
            level = (ushort)(level + ((ushort)e.NobilityRank));
            return (ushort)(level + ((byte)(e.Reborn * 5)));
        }
06/27/2013 21:48 abdoumatrix#23
add
level += BP;
06/27/2013 22:11 marcbacor6666#24
nice, i added that and remove some of my codes and now the console bp info and game is same
06/27/2013 22:16 abdoumatrix#25
Done?
06/27/2013 22:24 marcbacor6666#26
yup its done, but there are some little problems about the bp that still exist, some characters have higher bp in game and lower bp in console command @bpp

THe steed bp was not added

problem solved here is the fixed

Code:
    public UInt16 BattlePowerCalc(Entity e)
        {
            UInt16 BP = e.Level;

            if (e == null) return 0;
            if (e.Owner == null) return 0;
            foreach (IConquerItem i in e.Owner.Equipment.Objects)
            {
                if (!Owner.AlternateEquipment)
                {
                    if (i == null) continue;
                    if (i.Position < 20)
                    {
                        if (i.Position != ConquerItem.Bottle &&
                            i.Position != ConquerItem.Garment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.RightWeapon && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.LeftWeapon);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
                else
                {
                    if (i == null) continue;
                    if (i.Position > 9)
                    {
                        if (i.Position != ConquerItem.AltBottle &&
                            i.Position != ConquerItem.AltGarment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.AltRightHand && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.AltLeftHand);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
            }

            BP += (Byte)e.NobilityRank;
            BP += (Byte)(e.Reborn * 5);
            BP += (Byte)GuildSharedBp;
            BP += (Byte)ClanSharedBp;

            return BP;
        }
06/28/2013 03:06 wolvreen2006#27
Quote:
Originally Posted by marcbacor6666 View Post
yup its done, but there are some little problems about the bp that still exist, some characters have higher bp in game and lower bp in console command @bpp

THe steed bp was not added

problem solved here is the fixed

Code:
    public UInt16 BattlePowerCalc(Entity e)
        {
            UInt16 BP = e.Level;

            if (e == null) return 0;
            if (e.Owner == null) return 0;
            foreach (IConquerItem i in e.Owner.Equipment.Objects)
            {
                if (!Owner.AlternateEquipment)
                {
                    if (i == null) continue;
                    if (i.Position < 20)
                    {
                        if (i.Position != ConquerItem.Bottle &&
                            i.Position != ConquerItem.Garment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.RightWeapon && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.LeftWeapon);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
                else
                {
                    if (i == null) continue;
                    if (i.Position > 9)
                    {
                        if (i.Position != ConquerItem.AltBottle &&
                            i.Position != ConquerItem.AltGarment && i.Position != ConquerItem.RightWeaponAccessory && i.Position != ConquerItem.LeftWeaponAccessory && i.Position != ConquerItem.SteedArmor)
                        {
                            Byte Multiplier = 1;
                            if (i.Position == ConquerItem.AltRightHand && i.IsTwoHander())
                            {
                                Multiplier = 2;
                                IConquerItem left = e.Owner.Equipment.TryGetItem(ConquerItem.AltLeftHand);
                                if (left != null)
                                {

                                    Multiplier = 1;

                                }
                            }

                            Byte quality = (Byte)(i.ID % 10);
                            if (quality >= 6)
                            {
                                BP += (Byte)((quality - 5) * Multiplier);
                            }
                            if (i.SocketOne != 0)
                            {
                                BP += (Byte)(1 * Multiplier);
                                if ((Byte)i.SocketOne % 10 == 3)
                                    BP += (Byte)(1 * Multiplier);
                                if (i.SocketTwo != 0)
                                {
                                    BP += (Byte)(1 * Multiplier);
                                    if ((Byte)i.SocketTwo % 10 == 3)
                                        BP += (Byte)(1 * Multiplier);
                                }
                            }
                            BP += (Byte)(i.Plus * Multiplier);
                        }
                    }
                }
            }

            BP += (Byte)e.NobilityRank;
            BP += (Byte)(e.Reborn * 5);
            BP += (Byte)GuildSharedBp;
            BP += (Byte)ClanSharedBp;

            return BP;
        }
thanks man that help me alot
06/28/2013 05:53 marcbacor6666#28
Quote:
thanks man that help me alot
your welcome