Register for your free account! | Forgot your password?

You last visited: Today at 21:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help with Chi

Discussion on Help with Chi within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Balce2's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 31
Received Thanks: 4
Help with Chi

yesterday i buy source with chi but i dont know how to fix chi with command or with something else from navicat database dont have nothing with chi if someone know let me help thanks.
Balce2 is offline  
Old 05/26/2014, 00:09   #2
 
Wolfy.'s Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
Just another post with no explanation what source it is, is it binary, whats the problem in details, i'm guessing trinity. However i won't help you because you didn't explain nothing, so no.
Wolfy. is offline  
Old 05/26/2014, 00:27   #3
 
Balce2's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 31
Received Thanks: 4
Quote:
Originally Posted by Wolfy. View Post
Just another post with no explanation what source it is, is it binary, whats the problem in details, i'm guessing trinity. However i won't help you because you didn't explain nothing, so no.
i want to fix these all to 400 points understand but i dont know how i searched in source but i dont found nothing ?
Balce2 is offline  
Old 05/26/2014, 02:43   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Someone has to be making a killing off selling these half ***** sources left and right....
Aceking is offline  
Old 05/26/2014, 03:23   #5
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
abdoumatrix is offline  
Old 05/29/2014, 01:52   #6
 
Balce2's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 31
Received Thanks: 4
Quote:
Originally Posted by abdoumatrix View Post
sorry i dont understand alot of this things can you explain me more what to do with these codes?
Balce2 is offline  
Old 05/29/2014, 03:43   #7
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by Balce2 View Post
sorry i dont understand alot of this things can you explain me more what to do with these codes?
this commands used to edit chi points

make it 400
abdoumatrix is offline  
Old 05/31/2014, 02:54   #8
 
Balce2's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 31
Received Thanks: 4
Quote:
Originally Posted by abdoumatrix View Post
this commands used to edit chi points

make it 400
but where to put they codes ?
Balce2 is offline  
Old 05/31/2014, 11:57   #9
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
in ur checkcommand code

search for any existing command like "cps" for example
and put it
abdoumatrix is offline  
Old 05/31/2014, 17:20   #10
 
Balce2's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 31
Received Thanks: 4
Quote:
Originally Posted by abdoumatrix View Post
in ur checkcommand code

search for any existing command like "cps" for example
and put it
bro in source i have 4 files, ChiPowerStructure , ChiTable, Chi , ChiPowers
first code i put it in ChiTable others two codes i dont know where to put it in @name 1 2 3 4 and this code
public enum ChiPowerType
{
None = 0 ,
Dragon = 1 ,
Phoenix ,
Tiger ,
Turtle
} [/CODE] i dont know where to put this codes..
Balce2 is offline  
Old 06/07/2014, 15:29   #11
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
i have source 5735 with chi but the problem on it is the handle of one handed and two handed weapon pure warrior the one handed weapon if you use shield it wont dmg or hit in monster and the two handed weapon cant wear shield it will take off if you try right click the shield to use.

PM Me if You want It ill give some.
arneljan is offline  
Old 06/07/2014, 16:54   #12
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
then u had to check ur handle attack codes


what the hell the chi had to do with attacking problem?
abdoumatrix is offline  
Old 06/07/2014, 17:10   #13
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
PHP Code:
#region Melee
                    
else if (attack.AttackType == Attack.Melee)
                    {
                        if (
attacker.Owner.Screen.TryGetValue(attack.Attackedout attacked))
                        {
                            if (!
attacker.Owner.AlternateEquipment)
                            {
                                
CheckForExtraWeaponPowers(attacker.Ownerattacked);
                            }
                            else
                            {
                                
CheckForExtraWeaponPowers2(attacker.Ownerattacked);
                            }
                            if (!
CanAttack(attackerattackednullattack.AttackType == Attack.Melee))
                                return;
                            
pass false;
                            if (
attacker.OnFatalStrike())
                            {
                                if (
attacked.EntityFlag == EntityFlag.Monster)
                                {
                                    
pass true;
                                }
                            }
                            
ushort range attacker.AttackRange;
                            if (
attacker.Transformed)
                                
range = (ushort)attacker.TransformationAttackRange;
                            if (
ServerBase.Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= range || pass)
                            {
                                
attack.Effect1 Attack.AttackEffects1.None;
                                
uint damage Game.Attacking.Calculate.Melee(attackerattackedref attack);
                                
attack.Damage damage;
                                if (
attacker.OnFatalStrike())
                                {
                                    if (
attacked.EntityFlag == EntityFlag.Monster)
                                    {
                                        if (!
attacker.Owner.AlternateEquipment)
                                        {
                                            
bool can false;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.RightWeapon))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.RightWeapon).ID 1000 == 601)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.LeftWeapon))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon).ID 1000 == 601)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.RightWeapon))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.RightWeapon).ID 1000 == 511)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.LeftWeapon))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon).ID 1000 == 511)
                                                    
can true;
                                            if (!
can)
                                                return;
                                            
ushort x attacked.X;
                                            
ushort y attacked.Y;
                                            
Map.UpdateCoordonatesForAngle(ref xref yServerBase.Kernel.GetAngle(attacked.Xattacked.Yattacker.Xattacker.Y));
                                            
attacker.Shift(xy);
                                            
attack.x;
                                            
attack.y;
                                            
attack.AttackType Attack.FatalStrike;
                                        }
                                        else
                                        {
                                            
bool can false;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltRightHand))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltRightHand).ID 1000 == 601)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltLeftHand))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltLeftHand).ID 1000 == 601)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltRightHand))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltRightHand).ID 1000 == 511)
                                                    
can true;
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltLeftHand))
                                                if (
attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltLeftHand).ID 1000 == 511)
                                                    
can true;
                                            if (!
can)
                                                return;
                                            
ushort x attacked.X;
                                            
ushort y attacked.Y;
                                            
Map.UpdateCoordonatesForAngle(ref xref yServerBase.Kernel.GetAngle(attacked.Xattacked.Yattacker.Xattacker.Y));
                                            
attacker.Shift(xy);
                                            
attack.x;
                                            
attack.y;
                                            
attack.AttackType Attack.FatalStrike;
                                        }
                                    }
                                }
                                
//over:
                                
if (!attacker.Owner.AlternateEquipment)
                                {
                                    if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.RightWeapon))
                                    {
                                        
Interfaces.IConquerItem rightweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.RightWeapon);
                                        
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0;
                                        
bool wep1bs falsewep2bs false;
                                        
/*if (wep1subyte == 421)
                                        {
                                            wep1bs = true;
                                            wep1subyte = 420;
                                        }
                                        if (wep1subyte == 511)
                                        {
                                            wep1bs = true;
                                            wep1subyte = 601;
                                        }*/
                                        
ushort wep1spellid 0wep2spellid 0;
                                        if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte))
                                        {
                                            
wep1spellid Database.SpellTable.WeaponSpells[wep1subyte];
                                        }
                                        
/*if (wep1subyte == 601 || wep1subyte == 511)
                                        {
                                            if (Database.SpellTable.WeaponSpells.ContainsKey(11230))
                                            {
                                                wep1spellid = 11230;
                                            }
                                        }*/
                                        
Database.SpellInformation wep1spell nullwep2spell null;
                                        
bool doWep1Spell falsedoWep2Spell false;
                                        if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid))
                                        {
                                            
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level];
                                            if (
wep1spell != null)
                                            {
                                                
doWep1Spell ServerBase.Kernel.Rate(wep1spell.Percent);
                                            }

                                        }

                                        if (!
doWep1Spell)
                                        {
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.LeftWeapon))
                                            {
                                                
Interfaces.IConquerItem leftweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon);
                                                
wep2subyte = (ushort)(leftweapon.ID 1000);
                                                
/* if (wep2subyte == 421)
                                                 {
                                                     wep2bs = true;
                                                     wep2subyte = 420;
                                                 }
                                                 if (wep2subyte == 511)
                                                 {
                                                     wep2bs = true;
                                                     wep2subyte=601;
                                                 }*/
                                                
if (wep2subyte == 900 || leftweapon.ID == 1050002)
                                                {
                                                    return;
                                                }

                                                if (
Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte))
                                                {
                                                    
wep2spellid Database.SpellTable.WeaponSpells[wep2subyte];
                                                }

                                                if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid))
                                                {
                                                    
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level];
                                                    if (
wep2spell != null)
                                                    {
                                                        
doWep2Spell ServerBase.Kernel.Rate(wep2spell.Percent);
                                                    }

                                                }

                                            }
                                        }

                                        if (!
attacker.Transformed)
                                        {
                                            if (
doWep1Spell)
                                            {
                                                
attack.AttackType Attack.Magic;
                                                
attack.Decoded true;
                                                
attack.attacked.X;
                                                
attack.attacked.Y;
                                                
attack.Attacked attacked.UID;
                                                
attack.Damage wep1spell.ID;
                                                goto 
restart;
                                            }
                                            if (
doWep2Spell)
                                            {
                                                
attack.AttackType Attack.Magic;
                                                
attack.Decoded true;
                                                
attack.attacked.X;
                                                
attack.attacked.Y;
                                                
attack.Attacked attacked.UID;
                                                
attack.Damage wep2spell.ID;
                                                goto 
restart;
                                            }
                                            if (
wep1bs)
                                                
wep1subyte++;
                                            if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player)
                                                if (
damage attacked.Hitpoints)
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep1subyte);
                                                    if (
wep2subyte != 0)
                                                    {
                                                        if (
wep2bs)
                                                            
wep2subyte++;
                                                        
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep2subyte);
                                                    }
                                                }
                                                else
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte);
                                                    if (
wep2subyte != 0)
                                                    {
                                                        if (
wep2bs)
                                                            
wep2subyte++;
                                                        
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte);
                                                    }
                                                }
                                        }
                                    }
                                    else
                                    {
                                        if (!
attacker.Transformed)
                                        {
                                            if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player)
                                                if (
damage attacked.Hitpoints)
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), 0);
                                                }
                                                else
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(damage0);
                                                }
                                        }
                                    }
                                }
                                else
                                {
                                    if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltRightHand))
                                    {
                                        
Interfaces.IConquerItem rightweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltRightHand);
                                        
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0;
                                        
bool wep1bs falsewep2bs false;
                                        
/* if (wep1subyte == 421)
                                         {
                                             wep1bs = true;
                                             wep1subyte = 420;
                                         }
                                         if (wep1subyte == 511)
                                         {
                                             wep1bs = true;
                                             wep1subyte = 601;
                                         }*/

                                        
ushort wep1spellid 0wep2spellid 0;
                                        if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte))
                                        {
                                            
wep1spellid Database.SpellTable.WeaponSpells[wep1subyte];
                                        }

                                        
Database.SpellInformation wep1spell nullwep2spell null;
                                        
bool doWep1Spell falsedoWep2Spell false;
                                        if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid))
                                        {
                                            
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level];
                                            
doWep1Spell ServerBase.Kernel.Rate(wep1spell.Percent);

                                        }

                                        if (!
doWep1Spell)
                                        {
                                            if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltLeftHand))
                                            {
                                                
Interfaces.IConquerItem leftweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltLeftHand);
                                                
wep2subyte = (ushort)(leftweapon.ID 1000);
                                                
/* if (wep2subyte == 421)
                                                 {
                                                     wep2bs = true;
                                                     wep2subyte = 420;
                                                 }
                                                 if (wep2subyte == 511)
                                                 {
                                                     wep2bs = true;
                                                     wep2subyte = 601;
                                                 }*/
                                                
if (wep2subyte == 900 || leftweapon.ID == 1050002)
                                                {
                                                    return;
                                                }
                                                if (
Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte))
                                                {
                                                    
wep2spellid Database.SpellTable.WeaponSpells[wep2subyte];
                                                }

                                                if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid))
                                                {
                                                    
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level];
                                                    
doWep2Spell ServerBase.Kernel.Rate(wep2spell.Percent);

                                                }

                                            }
                                        }

                                        if (!
attacker.Transformed)
                                        {
                                            if (
doWep1Spell)
                                            {
                                                
attack.AttackType Attack.Magic;
                                                
attack.Decoded true;
                                                
attack.attacked.X;
                                                
attack.attacked.Y;
                                                
attack.Attacked attacked.UID;
                                                
attack.Damage wep1spell.ID;
                                                goto 
restart;
                                            }
                                            if (
doWep2Spell)
                                            {
                                                
attack.AttackType Attack.Magic;
                                                
attack.Decoded true;
                                                
attack.attacked.X;
                                                
attack.attacked.Y;
                                                
attack.Attacked attacked.UID;
                                                
attack.Damage wep2spell.ID;
                                                goto 
restart;
                                            }
                                            if (
wep1bs)
                                                
wep1subyte++;
                                            if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player)
                                                if (
damage attacked.Hitpoints)
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep1subyte);
                                                    if (
wep2subyte != 0)
                                                    {
                                                        if (
wep2bs)
                                                            
wep2subyte++;
                                                        
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep2subyte);
                                                    }
                                                }
                                                else
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte);
                                                    if (
wep2subyte != 0)
                                                    {
                                                        if (
wep2bs)
                                                            
wep2subyte++;
                                                        
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte);
                                                    }
                                                }
                                        }
                                    }
                                    else
                                    {
                                        if (!
attacker.Transformed)
                                        {
                                            if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player)
                                                if (
damage attacked.Hitpoints)
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), 0);
                                                }
                                                else
                                                {
                                                    
attacker.Owner.IncreaseProficiencyExperience(damage0);
                                                }
                                        }
                                    }
                                }
                                
ReceiveAttack(attackerattackedattackdamagenull);
                                
attack.AttackType Attack.Melee;
                            }
                            else
                            {
                                
attacker.AttackPacket null;
                            }
                        }
                        else if (
attacker.Owner.Screen.TryGetSob(attack.Attackedout attackedsob))
                        {
                            
// Console.WriteLine("Ss");
                            
if (CanAttack(attackerattackedsobnull))
                            {
                                
ushort range attacker.AttackRange;
                                if (
attacker.Transformed)
                                    
range = (ushort)attacker.TransformationAttackRange;
                                if (
ServerBase.Kernel.GetDistance(attacker.Xattacker.Yattackedsob.Xattackedsob.Y) <= range)
                                {
                                    
attack.Effect1 Attack.AttackEffects1.None;
                                    
uint damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack);

                                    if (!
attacker.Owner.AlternateEquipment)
                                    {
                                        if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.RightWeapon))
                                        {
                                            
Interfaces.IConquerItem rightweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.RightWeapon);
                                            
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0;
                                            
//bool wep1bs = false, wep2bs = false;
                                            /* if (wep1subyte == 421)
                                             {
                                                 wep1bs = true;
                                                 wep1subyte=420;
                                             }
                                             if (wep1subyte == 511)
                                             {
                                                 wep1bs = true;
                                                 wep1subyte=601;
                                             }*/
                                            
ushort wep1spellid 0wep2spellid 0;
                                            if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte))
                                                
wep1spellid Database.SpellTable.WeaponSpells[wep1subyte];
                                            
Database.SpellInformation wep1spell nullwep2spell null;
                                            
bool doWep1Spell falsedoWep2Spell false;
                                            if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid))
                                            {
                                                
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level];
                                                
doWep1Spell ServerBase.Kernel.Rate(wep1spell.Percent);
                                            }
                                            if (!
doWep1Spell)
                                            {
                                                if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.LeftWeapon))
                                                {
                                                    
Interfaces.IConquerItem leftweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon);
                                                    
wep2subyte = (ushort)(leftweapon.ID 1000);
                                                    
/* if (wep2subyte == 421)
                                                     {
                                                         wep2bs = true;
                                                         wep2subyte = 420;
                                                     }
                                                     if (wep2subyte == 511)
                                                     {
                                                         wep2bs = true;
                                                         wep2subyte = 601;
                                                     }*/
                                                    
if (Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte))
                                                        
wep2spellid Database.SpellTable.WeaponSpells[wep2subyte];
                                                    if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid))
                                                    {
                                                        
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level];
                                                        
doWep2Spell ServerBase.Kernel.Rate(wep2spell.Percent);
                                                    }
                                                }
                                            }

                                            if (!
attacker.Transformed)
                                            {

                                                if (
doWep1Spell)
                                                {
                                                    
attack.AttackType Attack.Magic;
                                                    
attack.Decoded true;
                                                    
attack.attackedsob.X;
                                                    
attack.attackedsob.Y;
                                                    
attack.Attacked attackedsob.UID;
                                                    
attack.Damage wep1spell.ID;
                                                    goto 
restart;
                                                }
                                                if (
doWep2Spell)
                                                {
                                                    
attack.AttackType Attack.Magic;
                                                    
attack.Decoded true;
                                                    
attack.attackedsob.X;
                                                    
attack.attackedsob.Y;
                                                    
attack.Attacked attackedsob.UID;
                                                    
attack.Damage wep2spell.ID;
                                                    goto 
restart;
                                                }
                                                if (
attacker.MapID == 1039)
                                                {
                                                    
/* if (wep1bs)
                                                         wep1subyte++;*/
                                                    
if (attacker.EntityFlag == EntityFlag.Player)
                                                        if (
damage attackedsob.Hitpoints)
                                                        {
                                                            
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep1subyte);
                                                            if (
wep2subyte != 0)
                                                            {
                                                                
/* if (wep2bs)
                                                                     wep2subyte++;*/
                                                                
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep2subyte);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte);
                                                            if (
wep2subyte != 0)
                                                            {
                                                                
/*if (wep2bs)
                                                                    wep2subyte++;*/
                                                                
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte);
                                                            }
                                                        }
                                                }
                                            }
                                        }
                                    }
                                    else
                                    {
                                        if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltRightHand))
                                        {
                                            
Interfaces.IConquerItem rightweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltRightHand);
                                            
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0;
                                            
bool wep1bs falsewep2bs false;
                                            
/*if (wep1subyte == 421)
                                            {
                                                wep1bs = true;
                                                wep1subyte = 420;
                                            }
                                            if (wep1subyte == 511)
                                            {
                                                wep1bs = true;
                                                wep1subyte = 601;
                                            }*/
                                            
ushort wep1spellid 0wep2spellid 0;
                                            if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte))
                                                
wep1spellid Database.SpellTable.WeaponSpells[wep1subyte];
                                            
Database.SpellInformation wep1spell nullwep2spell null;
                                            
bool doWep1Spell falsedoWep2Spell false;
                                            if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid))
                                            {
                                                
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level];
                                                
doWep1Spell ServerBase.Kernel.Rate(wep1spell.Percent);
                                            }
                                            if (!
doWep1Spell)
                                            {
                                                if (!
attacker.Owner.Equipment.Free((byte)ConquerItem.AltLeftHand))
                                                {
                                                    
Interfaces.IConquerItem leftweapon attacker.Owner.Equipment.TryGetItem((byte)ConquerItem.AltLeftHand);
                                                    
wep2subyte = (ushort)(leftweapon.ID 1000);
                                                    
/* if (wep2subyte == 421)
                                                     {
                                                         wep2bs = true;
                                                         wep2subyte = 420;
                                                     }
                                                     if (wep2subyte == 511)
                                                     {
                                                         wep2bs = true;
                                                         wep2subyte = 601;
                                                     }*/
                                                    
if (Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte))
                                                        
wep2spellid Database.SpellTable.WeaponSpells[wep2subyte];
                                                    if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid))
                                                    {
                                                        
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level];
                                                        
doWep2Spell ServerBase.Kernel.Rate(wep2spell.Percent);
                                                    }
                                                }
                                            }

                                            if (!
attacker.Transformed)
                                            {
                                                if (
doWep1Spell)
                                                {
                                                    
attack.AttackType Attack.Magic;
                                                    
attack.Decoded true;
                                                    
attack.attackedsob.X;
                                                    
attack.attackedsob.Y;
                                                    
attack.Attacked attackedsob.UID;
                                                    
attack.Damage wep1spell.ID;
                                                    goto 
restart;
                                                }
                                                if (
doWep2Spell)
                                                {
                                                    
attack.AttackType Attack.Magic;
                                                    
attack.Decoded true;
                                                    
attack.attackedsob.X;
                                                    
attack.attackedsob.Y;
                                                    
attack.Attacked attackedsob.UID;
                                                    
attack.Damage wep2spell.ID;
                                                    goto 
restart;
                                                }
                                                if (
attacker.MapID == 1039)
                                                {
                                                    if (
wep1bs)
                                                        
wep1subyte++;
                                                    if (
attacker.EntityFlag == EntityFlag.Player)
                                                        if (
damage attackedsob.Hitpoints)
                                                        {
                                                            
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep1subyte);
                                                            if (
wep2subyte != 0)
                                                            {
                                                                if (
wep2bs)
                                                                    
wep2subyte++;
                                                                
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep2subyte);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte);
                                                            if (
wep2subyte != 0)
                                                            {
                                                                if (
wep2bs)
                                                                    
wep2subyte++;
                                                                
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte);
                                                            }
                                                        }
                                                }
                                            }
                                        }
                                    }
                                    
attack.Damage damage;
                                    
ReceiveAttack(attackerattackedsobattackdamagenull);
                                }
                                else
                                {
                                    
attacker.AttackPacket null;
                                }
                            }
                        }
                        else
                        {
                            
attacker.AttackPacket null;
                        }
                    }
                    
#endregion 
Thats the Handle hard to fixe i dont know what to do.
arneljan is offline  
Old 06/07/2014, 18:08   #14
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
just breakpoint the first part of the code and trace the codes with F11
that is much better than we trace it with own eyes


use it, it is very usefull.
abdoumatrix is offline  
Thanks
1 User
Old 06/07/2014, 22:04   #15
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
ok ill chick it
arneljan is offline  
Reply




All times are GMT +1. The time now is 21:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.