قديم 2019-09-09, 05:33 AM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ممكن طلب
packethandler.cs
سيرش

كود:
if (client.ActiveNpc 

فوقها حط

كود:
#region Stuff +3 Bound.
                            
if (client.ActiveNpc == 3000590)
                            {

                                if (
client.Inventory.Contains(client.ActiveNpc1))
                                {
                                    if (
req.OptionID == 1)
                                    {
                                        if (
client.Inventory.Count <= 30)
                                        {
                                            
client.Inventory.AddBound998(42023906032truefalse);//Sword
                                            
client.Inventory.AddBound998(41023906032truefalse);//Blade
                                            
client.Inventory.AddBound998(13010906031truefalse);//WarArmor
                                            
client.Inventory.AddBound998(11810906031truefalse);//MonkCoronet
                                            
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                            
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                            
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                            
client.Inventory.Add989(201009310001true);//SuperFan
                                            
client.Inventory.Add989(202009310001true);//SuperTower
                                            
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                            
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                            
client.Inventory.Add989(204009310001true); ;//SuperWing
                                            
client.Inventory.Remove(client.ActiveNpc1);
                                        }
                                    }
                                    else if (
req.OptionID == 2)
                                    {
                                        
client.Inventory.AddBound998(56023906031truefalse);//CopperWand
                                        
client.Inventory.AddBound998(90010906031truefalse);//Shield*
                                        
client.Inventory.AddBound998(11110906031truefalse);//FrostHeadband
                                        
client.Inventory.AddBound998(13110906031truefalse);//BasaltArmor
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true);//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 3)
                                    {
                                        
client.Inventory.AddBound998(61322906032truefalse);//2~HadesKnife
                                        
client.Inventory.AddBound998(50022906031truefalse);//RosewoodBow
                                        
client.Inventory.AddBound998(13310906031truefalse);//RhinoCoat
                                        
client.Inventory.AddBound998(11310906031truefalse);//SwanPlume
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true);//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 4)
                                    {
                                        
client.Inventory.AddBound998(60123906032truefalse);//LordKatana
                                        
client.Inventory.AddBound998(13520906031truefalse);//MoonVest
                                        
client.Inventory.AddBound998(12310906031truefalse);//CondorVeil
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true);//SuperFan
                                        
client.Inventory.Add989(202009310001true);//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 5)
                                    {
                                        
client.Inventory.AddBound998(61023906032truefalse);//BeadsOfConcentration
                                        
client.Inventory.AddBound997(90010906031truefalse);//Shield*
                                        
client.Inventory.AddBound998(14310906031truefalse);//HeadbandOfHolyLight
                                        
client.Inventory.AddBound998(13610906031truefalse);//FrockOfAges
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 6)
                                    {
                                        
client.Inventory.AddBound998(61223906031truefalse);//WailingPistol
                                        
client.Inventory.AddBound998(61123906031truefalse);//BloodRapier
                                        
client.Inventory.AddBound998(13910906031truefalse);//TunaCoat
                                        
client.Inventory.AddBound998(14410906031truefalse);//SurferHood
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//DragonNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 7)
                                    {
                                        
client.Inventory.AddBound998(61723906032truefalse);//SpiritNunchaku
                                        
client.Inventory.AddBound998(13810906031truefalse);//CombatSuit(Lv.100)
                                        
client.Inventory.AddBound998(14810906031truefalse);//ShadowHood
                                        
client.Inventory.AddBound998(15021906031truefalse);//DiamondRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//PlatinaNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 8)
                                    {
                                        
client.Inventory.AddBound997(42123906031truefalse);//CloudBacksword
                                        
client.Inventory.AddBound997(11410906031truefalse);//CraneCap
                                        
client.Inventory.AddBound997(13410906031truefalse);//RoyalGown
                                        
client.Inventory.AddBound997(12121906031truefalse);//GoldBag
                                        
client.Inventory.AddBound997(15224906031truefalse);//BlueBracelet
                                        
client.Inventory.AddBound997(16021906031truefalse);//KylinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                    else if (
req.OptionID == 9)
                                    {
                                        
client.Inventory.AddBound998(62623906032truefalse);//PrideFan Level:70
                                        
client.Inventory.AddBound998(17010906031truefalse);//DarkCloudHat Level:70
                                        
client.Inventory.AddBound998(10110906031truefalse);//MysticWindrobe Level:70
                                        
client.Inventory.AddBound998(15021906031truefalse);//PearlRing
                                        
client.Inventory.AddBound998(12021906031truefalse);//PlatinaNecklace
                                        
client.Inventory.AddBound998(16021906031truefalse);//SnakeskinBoots
                                        
client.Inventory.Add989(201009310001true); ;//SuperFan
                                        
client.Inventory.Add989(202009310001true); ;//SuperTower
                                        
client.Inventory.AddBound996(20300906031truefalse);//RidingCrop
                                        
client.Inventory.AddBound996(30000006031truefalse);//Steed
                                        
client.Inventory.Add989(204009310001true); ;//SuperWing
                                        
client.Inventory.Remove(client.ActiveNpc1);
                                    }
                                }
                            }
                            
#endregion 

سيرش
#region Medicine
فوقها حط

كود:
 #region Stuff +3
                
case 3000590:
                    {
                        
Npcs dialog = new Npcs(client);
                        
dialog.Avatar(item.ID);
                        
dialog.Text("Hello " client.Player.Name ", I Give You Stuff +3 Bound If You Want To Get it Just Confirm.");
                        
dialog.Option("[*Stuff*Ninja *]"4);
                        
dialog.Option("[*Stuff*Monk*]"5);
                        
dialog.Option("[*Stuff*Toaist*]"8);
                        
dialog.Option("[ Stuff*Trojan*]"1);
                        
dialog.Option("[*Stuff*Pirate*]"6);
                        
dialog.Option("[*Stuff*Warrior*]"2);
                        
dialog.Option("[*Stuff*Archer*]"3);
                        
dialog.Option("[*Stuff*LeeLong*]"7);
                        
dialog.Option("[*Stuff*Windwalker*]"9);
                        
dialog.Option("Cancel."255);
                        
dialog.Send();
                        
client.ActiveNpc item.ID;
                        break;
                    }
                
#endregion 

سيرش

كود:
 public static void LoginMessages

سيرش

كود:
 if (client.ItemGive)
            { 

و ارمي ده جوه القوس

كود:
client.Inventory.AddBound996(300059000001truefalse); 

كده كل اكونت جديد هينزل معاه شنطة اصتف +3

قديم 2019-09-09, 05:35 AM
المشاركة 3
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ممكن طلب
لو جالك ايرور في اي كلمه من بوند بيتضافوا ف Inventory .cs

كود:
public bool AddBound996(uint iduint soulitemuint purfyleveluint timeofpurfybyte plusbyte timesbool purfystabliz falsebool bound false)
        {
            try
            {
                
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(idplus);
                while (
times 0)
                {
                    if (
Count <= 39)
                    {
                        
ConquerItem item = new ConquerItem(true);

                        
#region Stacksize
                        
if (infos.BaseInformation.StackSize 1)
                        {
                            
ushort _StackCount infos.BaseInformation.StackSize;
                            if (
times <= infos.BaseInformation.StackSize)
                                
_StackCount = (ushort)times;
                            
item.StackSize = (ushort)_StackCount;
                            
Database.ConquerItemTable.UpdateStack(item);
                            
times -= (byte)_StackCount;
                        }
                        else
                        {
                            
item = new ConquerItem(true);
                            
item.StackSize 1;
                            
times--;
                        }
                        
#endregion Stacksize
                        
item.ID id;
                        
item.Plus plus;
                        
item.Bound true;
                        
item.Durability item.MaximDurability infos.BaseInformation.Durability;
                        
item.StackSize 1;
                        
item.MaxStackSize infos.BaseInformation.StackSize;
                        
Database.ConquerItemTable.UpdatePerfection(item);
                        
Add(itemEnums.ItemUse.CreateAndAdd);
                        if (
purfystabliz == false)
                        {
                            
#region purfy with out stablize
                            
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
                            
purify.AddedOn DateTime.Now;
                            
purify.Available true;
                            
purify.ItemUID item.UID;
                            
purify.PurificationLevel purfylevel;
                            
purify.PurificationDuration timeofpurfy 24 60 60;
                            
purify.PurificationItemID soulitem;
                            
Database.ItemAddingTable.AddPurification(purify);
                            
item.Purification purify;
                            
item.Mode ahmedfathy.Game.Enums.ItemMode.Update;
                            
item.Send(Owner);
                            
ItemAdding effect = new ItemAdding(true);
                            
effect.Type ItemAdding.PurificationEffect;
                            
effect.Append2(purify);
                            
Owner.Send(effect);
                            
#endregion
                        
}
                        else
                        {
                            
#region purfy with stabliz
                            
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
                            
purify.AddedOn DateTime.Now;
                            
purify.Available true;
                            
purify.ItemUID item.UID;
                            
purify.PurificationLevel purfylevel;
                            
purify.PurificationDuration timeofpurfy 24 60 60;
                            
purify.PurificationItemID soulitem;
                            
Database.ItemAddingTable.AddPurification(purify);
                            
item.Purification purify;
                            
item.Mode ahmedfathy.Game.Enums.ItemMode.Update;
                            
item.Send(Owner);
                            
ItemAdding effect = new ItemAdding(true);
                            
effect.Type ItemAdding.PurificationEffect;
                            
effect.Append2(purify);
                            
Owner.Send(effect);
                            var 
Backup item.Purification;
                            
Backup.PurificationDuration 0;
                            
item.Purification Backup;
                            
item.Send(Owner);
                            
effect.Type ItemAdding.StabilizationEffect;
                            
effect.Append2(Backup);
                            
Owner.Send(effect);
                            
Database.ItemAddingTable.Stabilize(item.UIDBackup.PurificationItemID);
                            
#endregion
                        
}
                    }
                    else
                    {
                        return 
false;
                    }
                }
                
times--;
            }
            catch (
Exception e)
            {
                
Program.SaveException(e);
            }
            return 
true;
        } 


كود:
  public bool Add989(uint idbyte plusbyte blessbyte enchantbyte onesocbyte twosocbyte timesbool bound false)
        {
            try
            {
                
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(idplus);
                while (
times 0)
                {
                    
ConquerItem _ExistingItem;
                    
Database.ConquerItemInformation iteminfo = new Database.ConquerItemInformation(id0);
                    if (
Owner.Inventory.Contains(iteminfo.BaseInformation.IDbounditeminfo.BaseInformation.StackSizeout _ExistingItem))
                    {
                        if (
_ExistingItem.StackSize == 0)
                            
_ExistingItem.StackSize 1;
                        
ushort _StackCount iteminfo.BaseInformation.StackSize;
                        
_StackCount -= (ushort)_ExistingItem.StackSize;
                        if (
_StackCount >= 1)
                            
_StackCount += 1;
                        
_ExistingItem.StackSize += 1;
                        
Database.ConquerItemTable.UpdateStack(_ExistingItem);
                        
_ExistingItem.Mode Game.Enums.ItemMode.Update;
                        
_ExistingItem.Send(Owner);
                        
_ExistingItem.Mode Game.Enums.ItemMode.Default;
                    }
                    else
                    {
                        if (
Count <= 39)
                        {
                            
ConquerItem item = new Network.GamePackets.ConquerItem(true);
                            
item.ID id;
                            
item.Plus plus;
                            
item.Bless bless;
                            
item.Bound bound;
                            
item.TimeStamp DateTime.Now;
                            
item.Enchant enchant;
                            if (
onesoc == 1)
                            {
                                
item.SocketOne Game.Enums.Gem.EmptySocket;
                            }
                            if (
twosoc == 1)
                            {
                                
item.SocketTwo Game.Enums.Gem.EmptySocket;
                            }
                            if (
id == 201009 && onesoc == 103 && twosoc == 103)
                            {
                                
item.SocketOne Game.Enums.Gem.SuperThunderGem;
                                
item.SocketTwo Game.Enums.Gem.SuperThunderGem;
                            }
                            if (
id == 202009 && onesoc == 123 && twosoc == 123)
                            {
                                
item.SocketOne Game.Enums.Gem.SuperGloryGem;
                                
item.SocketTwo Game.Enums.Gem.SuperGloryGem;
                            }
                            if (
id == 204009 && onesoc == 103 && twosoc == 123)
                            {
                                
item.SocketOne Game.Enums.Gem.SuperThunderGem;
                                
item.SocketTwo Game.Enums.Gem.SuperGloryGem;
                            }
                            
item.Durability item.MaximDurability infos.BaseInformation.Durability;
                            
item.StackSize 1;
                            
item.MaxStackSize infos.BaseInformation.StackSize;
                            
Add(itemEnums.ItemUse.CreateAndAdd);
                        }
                    }
                    
times--;
                }
            }
            catch (
Exception e)
            {
                
Program.SaveException(e);
            }
            return 
true;
        } 


كود:
 public bool AddBound998(uint iduint soulitemuint purfyleveluint timeofpurfybyte plusbyte timesbool purfystabliz falsebool bound false)
        {
            try
            {
                
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(idplus);
                while (
times 0)
                {
                    if (
Count <= 39)
                    {
                        
ConquerItem item = new ConquerItem(true);

                        
#region Stacksize
                        
if (infos.BaseInformation.StackSize 1)
                        {
                            
ushort _StackCount infos.BaseInformation.StackSize;
                            if (
times <= infos.BaseInformation.StackSize)
                                
_StackCount = (ushort)times;
                            
item.StackSize = (ushort)_StackCount;
                            
Database.ConquerItemTable.UpdateStack(item);
                            
times -= (byte)_StackCount;
                        }
                        else
                        {
                            
item = new ConquerItem(true);
                            
item.StackSize 1;
                            
times--;
                        }
                        
#endregion Stacksize
                        
item.ID id;
                        
item.Plus plus;
                        
item.Bound true;
                        
item.Durability item.MaximDurability infos.BaseInformation.Durability;
                        
item.StackSize 1;
                        
item.MaxStackSize infos.BaseInformation.StackSize;
                        
/*item.SocketOne = Game.Enums.Gem.SuperDragonGem;
                        item.SocketTwo = Game.Enums.Gem.SuperDragonGem;
                        item.Enchant = 225;
                        item.Bless = 7;*/
                        
Database.ConquerItemTable.UpdatePerfection(item);
                        
Add(itemEnums.ItemUse.CreateAndAdd);
                        if (
purfystabliz == false)
                        {
                            
#region purfy with out stablize
                            
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
                            
purify.AddedOn DateTime.Now;
                            
purify.Available true;
                            
purify.ItemUID item.UID;
                            
purify.PurificationLevel purfylevel;
                            
purify.PurificationDuration timeofpurfy 24 60 60;
                            
purify.PurificationItemID soulitem;
                            
Database.ItemAddingTable.AddPurification(purify);
                            
item.Purification purify;
                            
item.Mode ahmedfathy.Game.Enums.ItemMode.Update;
                            
item.Send(Owner);
                            
ItemAdding effect = new ItemAdding(true);
                            
effect.Type ItemAdding.PurificationEffect;
                            
effect.Append2(purify);
                            
Owner.Send(effect);
                            
#endregion
                        
}
                        else
                        {
                            
#region purfy with stabliz
                            
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
                            
purify.AddedOn DateTime.Now;
                            
purify.Available true;
                            
purify.ItemUID item.UID;
                            
purify.PurificationLevel purfylevel;
                            
purify.PurificationDuration timeofpurfy 24 60 60;
                            
purify.PurificationItemID soulitem;
                            
Database.ItemAddingTable.AddPurification(purify);
                            
item.Purification purify;
                            
item.Mode ahmedfathy.Game.Enums.ItemMode.Update;
                            
item.Send(Owner);
                            
ItemAdding effect = new ItemAdding(true);
                            
effect.Type ItemAdding.PurificationEffect;
                            
effect.Append2(purify);
                            
Owner.Send(effect);
                            var 
Backup item.Purification;
                            
Backup.PurificationDuration 0;
                            
item.Purification Backup;
                            
item.Send(Owner);
                            
effect.Type ItemAdding.StabilizationEffect;
                            
effect.Append2(Backup);
                            
Owner.Send(effect);
                            
Database.ItemAddingTable.Stabilize(item.UIDBackup.PurificationItemID);
                            
#endregion
                        
}
                    }
                    else
                    {
                        return 
false;
                    }
                }
                
times--;
            }
            catch (
Exception e)
            {
                
Program.SaveException(e);
            }
            return 
true;
        } 


قديم 2019-09-09, 06:13 PM
المشاركة 4
loveosama
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: ممكن طلب
بجد تسلم يابرنس ربنا يخليك لينا


كود:
 if (client.ItemGive

بس بصراحة مش لقى الكلمة ديه خلص فى كلاس PacketHandler.cs



لو مش هتعبك انا عايز انى بى سى بيدى اصطف +3 من غير 2 سوكت او دمج او hp او اى حاجه ويكون لفل قليل يعنى ف حدود ليفل 30
لو مش هتعبك عايز انى بى سى بيدى اصطف +12 بس بي سبس ومن غير صول 7 او برفكشن ويكون في طبعا 2سوكت و7دمج و ال2 جيم و ال hp وليفل 140
وشكرا ليك جدا ياباشا

قديم 2019-09-10, 02:10 AM
المشاركة 5
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ممكن طلب
Gamestate.cs
حط ده
public bool ItemGive = false;

packethandler.cs
سيرش

كود:
void DoLogin

انزل لحد

كود:
(client.JustCreated

و ضيف جوه قوس

كود:
client.ItemGive true

سيرش

كود:
void LoginMessages

جوه فتحة القوس

كود:
#region rdw
            
if (client.ItemGive)
            {
                
Data data = new Data(true);
                
data.ID 443;
                
data.TimeStamp Time32.Now;
                
data.dwParam 1008;//1009 The Elder 
                
client.Send(data);//1008 The First Online Server 

                #region GiftBox
                
client.Inventory.AddBound996(300412200001truefalse);
                
client.Inventory.AddBound996(300059000001truefalse);
                
//client.Inventory.Add(727026, 0, 1); 
                #endregion
                
uint itemPack 0;
                
client.Inventory.Add(itemPack01);
                
#region New Created
                #region Trojan
                
if (client.Player.Class >= 10 && client.Player.Class <= 11)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 130006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 10 && client.Player.Class <= 11)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 410006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Warrior
                
if (client.Player.Class >= 20 && client.Player.Class <= 21)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 131006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 20 && client.Player.Class <= 21)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 410006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Archer
                
if (client.Player.Class >= 40 && client.Player.Class <= 41)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 133006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 40 && client.Player.Class <= 41)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 500006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Pirete
                
if (client.Player.Class >= 70 && client.Player.Class <= 71)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 139006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 70 && client.Player.Class <= 71)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 611006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Monk
                
if (client.Player.Class >= 60 && client.Player.Class <= 61)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 136006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 60 && client.Player.Class <= 61)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 610006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Ninja
                
if (client.Player.Class >= 50 && client.Player.Class <= 51)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 135006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 50 && client.Player.Class <= 51)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 601006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region LeeLong
                
if (client.Player.Class >= 80 && client.Player.Class <= 81)
                {
                    
client.Inventory.Add(300487401);
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 138006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 80 && client.Player.Class <= 81)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 617006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region Taoist
                
if (client.Player.Class >= 100 && client.Player.Class <= 145)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 134006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                if (
client.Player.Class >= 100 && client.Player.Class <= 145)
                {
                    
ConquerItem item7;
                    
item7 = new ConquerItem(true)
                    {
                        
ID 421006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.RightWeapon,
                        
Bound true
                    
};
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item7client);
                    
client.Equipment.Add(item7);
                }
                
#endregion
                #region WindWalker

                
if (client.Player.Class >= 160 && client.Player.Class <= 165)
                {
                    
ConquerItem item6;
                    
item6 = new ConquerItem(true)
                    {
                        
ID 170006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Head,
                    };
                    
client.Equipment.Remove((byte)ConquerItem.Head);
                    
Database.ConquerItemTable.AddItem(ref item6client);
                    
client.Equipment.Add(item6);
                }
                if (
client.Player.Class >= 160 && client.Player.Class <= 165)
                {
                    
ConquerItem item6;
                    
item6 = new ConquerItem(true)
                    {
                        
ID 101006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 3599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 3599,
                        
Position ConquerItem.Armor,
                    };
                    
client.Equipment.Remove((byte)ConquerItem.Armor);
                    
Database.ConquerItemTable.AddItem(ref item6client);
                    
client.Equipment.Add(item6);
                }
                if (
client.Player.Class >= 160 && client.Player.Class <= 165)
                {
                    
ConquerItem item6;
                    
item6 = new ConquerItem(true)
                    {
                        
ID 626006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 599,
                        
Position ConquerItem.RightWeapon,
                    };
                    
client.Equipment.Remove((byte)ConquerItem.RightWeapon);
                    
Database.ConquerItemTable.AddItem(ref item6client);
                    
client.Equipment.Add(item6);
                }
                if (
client.Player.Class >= 160 && client.Player.Class <= 165)
                {
                    
ConquerItem item6;
                    
item6 = new ConquerItem(true)
                    {
                        
ID 626006,
                        
UID ConquerItem.ItemUID.Next,
                        
Durability 1599,
                        
Plus 0,
                        
Enchant 0,
                        
Bless 0,
                        
Color = (Game.Enums.Color)Kernel.Random.Next(39),
                        
MaximDurability 1599,
                        
Position ConquerItem.LeftWeapon,
                    };
                    
client.Equipment.Remove((byte)ConquerItem.LeftWeapon);
                    
Database.ConquerItemTable.AddItem(ref item6client);
                    
client.Equipment.Add(item6);
                }
                
#endregion
                
if (client.Player.Class >= 60 && client.Player.Class <= 65)
                {
                    
client.Player.HairStyle 0;
                    
client.Player.HairColor 0;
                }

                
// 
                #endregion
                
client.ItemGive false;
            }
            foreach (
ConquerItem item in client.Inventory.Objects)
                
item.Send(client);

            foreach (
ConquerItem item in client.Equipment.Objects)
            {
                if (
item != null)
                {
                    if (
Database.ConquerItemInformation.BaseInformations.ContainsKey(item.ID))
                    {
                        
item.Send(client);
                    }
                    else
                    {
                        
client.Equipment.DestroyArrow(item.Position);
                    }
                }
            }
            
client.LoadItemStats();
            if (!
client.Equipment.Free(5))
            {
                if (
IsArrow(client.Equipment.TryGetItem(5).ID))
                {
                    if (
client.Equipment.Free(4))
                        
client.Equipment.DestroyArrow(5);
                    else
                    {
                        if (
client.Equipment.TryGetItem(4).ID 1000 != 500)
                            
client.Equipment.DestroyArrow(5);
                    }
                }
            }
            
client.GemAlgorithm();
            
client.CalculateStatBonus();
            
client.CalculateHPBonus();
            
client.Equipment.UpdateEntityPacket();
            
ClientEquip equips = new ClientEquip();
            
equips.DoEquips(client);
            
client.Send(equips);
            
#endregion 



العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: ممكن طلب
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
ممكن مسعده Amr Khalid مشكلات السيرفيرات كونكر الشخصيه 5 2020-03-28 11:18 PM
ممكن طلب FathyFranco مشكلات السيرفيرات كونكر الشخصيه 1 2020-03-09 02:27 PM
ممكن حل 469fb2a7c3 مشكلات السيرفيرات كونكر الشخصيه 5 2019-12-11 02:17 AM
ممكن مساعده AliNasser مشكلات السيرفيرات كونكر الشخصيه 1 2019-11-21 09:48 AM
ممكن الاضافه دي سمير مشكلات السيرفيرات كونكر الشخصيه 1 2019-11-12 07:53 PM


الساعة الآن 01:21 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.