منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   حل مشكلة luckyfainshpack (https://code.vpscairo.com/showthread.php?t=278)

محمد ياسر 2019-05-06 10:47 PM

حل مشكلة luckyfainshpack
 

السلام عليكم ورحمة الله وبركاته
لحل مشلكة المتجر الي بتاخد نقاط من الارينا بس تلقيه فاضي
صوره للتوضيح
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

لحل المشكله
افتح كلاس Inventory

وحط الكود ده فوق اي public
لو الكود public ده موجود يبا بدله بالي عندك
كود PHP:

public bool Add2(uint iduint secondsbyte plusbyte blessbyte 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.DayStamp DateTime.Now;
item.Minutes = (seconds 60);
item.TimeLeftInMinutes seconds;
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 AddBound99(uint iduint secondsbyte plusbyte blessbyte times)
{
return 
Add2(idsecondsplusblesstimestrue);


افتح كلاس PacketHandler
ابحث عن
كود PHP:

static void UseItem

تنزل شوية لحد
كود PHP:

switch (item.ID

تحته علي طول حط دول
كود PHP:

#region LuckyFashionPack
case 3007385:
{
if (
client.Inventory.Count != 38)
{
switch (((
byte)Kernel.Random.Next(147)))
{
#region MrAli(Champion Garment.)Full
case 1:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(19323586400011);//KungFuSuit
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Kung~Fu~Suit~(B)!"Color.RedMessage.System));
break;
case 
2:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(19329586400011);//SongofDespair
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Songof~Despair~(B)!"Color.RedMessage.System));
break;
case 
3:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(19140586400011);//DivineRobe
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Divine~Robe~(B)!"Color.RedMessage.System));
break;
case 
4:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(19130586400011);//GoodLuck
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Good~Luck~(B)!"Color.RedMessage.System));
break;
case 
5:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18908586400011);//FairyTale
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Fairy~Tale~(B)!"Color.RedMessage.System));
break;
case 
6:
client.Inventory.AddBound99(18907586400011);//FlyingFishSuit
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Flying~Fish~Suit~(B)!"Color.RedMessage.System));
break;
case 
7:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18909586400011);//CloudRobe
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Cloud~Robe~(B)!"Color.RedMessage.System));
break;
case 
8:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18910586400011);//GoldenDream
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Golden~Dream~(B)!"Color.RedMessage.System));
break;
case 
9:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18922586400011);//IvoryRobe
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Ivory~Robe~(B)!"Color.RedMessage.System));
break;
case 
10:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18923586400011);//DancingDress
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Dancing~Dress~(B)!"Color.RedMessage.System));
break;
case 
11:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18924586400011);//EndlessDance
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Endless~Dance~(B)!"Color.RedMessage.System));
break;
case 
12:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18435586400011);//EveningWear
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Evening~Wear~(B)!"Color.RedMessage.System));
break;
case 
13:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18434586400011);//BeachSuit
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Beach~Suit~(B)!"Color.RedMessage.System));
break;
case 
14:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18433586400011);//PunkRocker
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Punk~Rocker~(B)!"Color.RedMessage.System));
break;
case 
15:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18436586400011);//WhiteCollarSuit
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~White~Collar~Suit~(B)!"Color.RedMessage.System));
break;
case 
16:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18438586400011);//ShanghaiBloodOath
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Shanghai~Blood~Oath~(B)!"Color.RedMessage.System));
break;
case 
17:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18338586400011);//Doctor`sJacket
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Doctor`sJacket~(B)!"Color.RedMessage.System));
break;
case 
18:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18339586400011);//Delight~of~Speed
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Delight~of~Speed~(B)!"Color.RedMessage.System));
break;
case 
19:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18342586400011);//FancyAzure
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Fancy~Azure~(B)!"Color.RedMessage.System));
break;
case 
20:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(18334586400011);//TaekwondoUniform
client.Inventory.Add(300710401);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~TaekwondoUniform~(B)!"Color.RedMessage.System));
break;
//MrAli(Champion Garment.)Full
#endregion
#region MrAli(Champion MountArmor.)Full
case 21:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20054086400011);//SavageBeast
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!"Color.RedMessage.System));
break;
case 
22:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20053986400011);//DivineFox
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Divine~Fox~(B)!"Color.RedMessage.System));
break;
case 
23:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20053886400011);//BronzeRhinoceros
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Bronze~Rhinoceros~(B)!"Color.RedMessage.System));
break;
case 
24:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20054986400011);//SoulKylin
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Soul~Kylin~(B)!"Color.RedMessage.System));
break;
case 
25:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20045486400011);//LionKing
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!"Color.RedMessage.System));
break;
case 
26:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20044186400011);//IcePhoenix
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Ice~Phoenix~(B)!"Color.RedMessage.System));
break;
case 
27:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20048186400011);//SpiritLion
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Spirit~Lion~(B)!"Color.RedMessage.System));
break;
case 
28:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20041886400011);//AncientElephant
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Ancient~Elephant~(B)!"Color.RedMessage.System));
break;
case 
29:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20046586400011);//PolarBear
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Polar~Bear~(B)!"Color.RedMessage.System));
break;
case 
30:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20041486400011);//RoyalApe
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Royal~Ape~(B)!"Color.RedMessage.System));
break;
case 
31:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20042786400011);//WinebibberPanda
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Winebibber~Panda~(B)!"Color.RedMessage.System));
break;
case 
32:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20043886400011);//Pegasus
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Pegasus~(B)!"Color.RedMessage.System));
break;
case 
33:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20041186400011);//ChaosBull
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!"Color.RedMessage.System));
break;
case 
34:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20048886400011);//ScaleDragon
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Scale~Dragon~(B)!"Color.RedMessage.System));
break;
case 
35:
client.Inventory.Remove(30073851);
client.Inventory.AddBound99(20050386400011);//WineGourd
client.Inventory.Add(300710501);
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Wine~Gourd~(B)!"Color.RedMessage.System));
break;
//MrAli(Champion MountArmor.)Full
#endregion
#region MrAli(Champion Accessory.)Full
case 36:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36017486400011);//SpringRabbit
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Spring~Rabbit~(B)!"Color.RedMessage.System));
break;
case 
37:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36017386400011);//ThunderboltTiger
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Thunder~bolt~Tiger~(B)!"Color.RedMessage.System));
break;
case 
38:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36017286400011);//FancyPinwheel
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Fancy~Pinwheel~(B)!"Color.RedMessage.System));
break;
case 
39:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36017186400011);//RattleDrum
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Spring~Rabbit~(B)!"Color.RedMessage.System));
break;
case 
40:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(35001086400011);//IceStick
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Ice~Stick~(B)!"Color.RedMessage.System));
break;
case 
41:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(38000486400011);//SunFlower
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Sun~Flower~(B)!"Color.RedMessage.System));
break;
case 
42:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(37000386400011);//SeaHorse
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Sea~Horse~(B)!"Color.RedMessage.System));
break;
case 
43:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36000886400011);//FishPole
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Fish~Pole~(B)!"Color.RedMessage.System));
break;
case 
44:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36000786400011);//InvincibleFist
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Invincible~Fist~(B)!"Color.RedMessage.System));
break;
case 
45:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(35008286400011);//SpecialOar
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Specia~lOar~(B)!"Color.RedMessage.System));
break;
case 
46:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36001886400011);//LightSaber
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Light~Saber~(B)!"Color.RedMessage.System));
break;
case 
47:
client.Inventory.Remove(30073851);
client.Inventory.Add(300710601);
client.Inventory.AddBound99(36001486400011);//GoodEveningBear
client.Send(new Message("You`ve~used~an~item."Color.RedMessage.System));
client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Good~Evening~Bear~(B)!"Color.RedMessage.System));
break;
//MrAli(Champion Accessory.)Full
#endregion
}
}
else
client.Send(Constants.FullInventory);
break;
}
#endregion
#region GarmentFragment
case 3007104:
{
if (
client.Inventory.Count 38)
{
if (
client.Inventory.Contains(300710415))
{
Random R = new Random();
int G R.Next(020);
if (
== 1client.Inventory.AddBound99(1932350011);//KungFuSuit
if (== 2client.Inventory.AddBound99(1932950011);//SongofDespair
if (== 3client.Inventory.AddBound99(1914050011);//DivineRobe
if (== 4client.Inventory.AddBound99(1913050011);//GoodLuck
if (== 5client.Inventory.AddBound99(1890850011);//FairyTale
if (== 6client.Inventory.AddBound99(1890750011);//FlyingFishSuit
if (== 7client.Inventory.AddBound99(1890950011);//CloudRobe
if (== 8client.Inventory.AddBound99(1891050011);//GoldenDream
if (== 9client.Inventory.AddBound99(1892250011);//IvoryRobe
if (== 10client.Inventory.AddBound99(1892350011);//DancingDress
if (== 11client.Inventory.AddBound99(1892450011);//EndlessDance
if (== 12client.Inventory.AddBound99(1843550011);//EveningWear
if (== 13client.Inventory.AddBound99(1843450011);//BeachSuit
if (== 14client.Inventory.AddBound99(1843350011);//PunkRocker
if (== 15client.Inventory.AddBound99(1843650011);//WhiteCollarSuit
if (== 16client.Inventory.AddBound99(1843850011);//ShanghaiBloodOath
if (== 17client.Inventory.AddBound99(1833850011);//Doctor`sJacket
if (== 18client.Inventory.AddBound99(1833950011);//Delight~of~Speed
if (== 19client.Inventory.AddBound99(1834250011);//FancyAzure
if (== 20client.Inventory.AddBound99(1833450011);
client.Inventory.Remove(300710415);
client.MessageBox("Congratulations, You received Champion Garment.");
}
client.Send(new Message("Your GarmentFragment item 15 ."System.Drawing.Color.Red,
Message.TopLeft));
}
else
{
client.Send(new Message("You need to make atleast 2 free spots in your inventory."System.Drawing.Color.RedMessage.System));
}
break;
}
#endregion
#region MountArmorFragment
case 3007105:
{
if (
client.Inventory.Count 38)
{
if (
client.Inventory.Contains(300710530))
{
Random R = new Random();
int G R.Next(012);
if (
== 1client.Inventory.AddBound99(2005400011);//SavageBeast
if (== 2client.Inventory.AddBound99(2005390011);//DivineFox
if (== 3client.Inventory.AddBound99(2005380011);//BronzeRhinoceros
if (== 4client.Inventory.AddBound99(2005490011);//SoulKylin
if (== 5client.Inventory.AddBound99(2004540011);//LionKing
if (== 6client.Inventory.AddBound99(2004410011);//IcePhoenix
if (== 7client.Inventory.AddBound99(2004810011);//SpiritLion
if (== 8client.Inventory.AddBound99(2004180011);//AncientElephant
if (== 9client.Inventory.AddBound99(2004650011);//PolarBear
if (== 10client.Inventory.AddBound99(2004140011);//RoyalApe
if (== 11client.Inventory.AddBound99(2004270011);//WinebibberPanda
if (== 12client.Inventory.AddBound99(2004380011);//Pegasus
if (== 13client.Inventory.AddBound99(2004110011);//ChaosBull
if (== 14client.Inventory.AddBound99(2004880011);//ScaleDragon
if (== 15client.Inventory.AddBound99(2005030011);//WineGourd
client.Inventory.Remove(300710530);
client.MessageBox("Congratulations, You received Champion MountArmor.");
}
client.Send(new Message("Your MountArmorFragment item 30 ."System.Drawing.Color.Red,
Message.TopLeft));
}
else
{
client.Send(new Message("You need to make atleast 2 free spots in your inventory."System.Drawing.Color.RedMessage.System));
}
break;
}
#endregion
#region WeaponAccessoryFragment
case 3007106:
{
if (
client.Inventory.Count 38)
{
// uint Hour24 = 0 * 24 * 60 * 60;
// uint days7 = 7 * 24 * 60 * 60;
Random R = new Random();
int G R.Next(012);
if (
== 1client.Inventory.AddBound99(360174604800011);//SpringRabbit
if (== 2client.Inventory.AddBound99(360173604800011);//ThunderboltTiger
if (== 3client.Inventory.AddBound99(360172604800011);//FancyPinwheel
if (== 4client.Inventory.AddBound99(360171604800011);//RattleDrum
if (== 5client.Inventory.AddBound99(350010604800011);//IceStick
if (== 6client.Inventory.AddBound99(380004604800011);//SunFlower
if (== 7client.Inventory.AddBound99(370003604800011);//SeaHorse
if (== 8client.Inventory.AddBound99(360008604800011);//FishPole
if (== 9client.Inventory.AddBound99(360007604800011);//InvincibleFist
if (== 10client.Inventory.AddBound99(350082604800011);//SpecialOar
if (== 11client.Inventory.AddBound99(360018604800011);//LightSaber
if (== 12client.Inventory.AddBound99(360014604800011);//GoodEveningBear
client.Inventory.Remove(30071061);
client.MessageBox("Congratulations, You received Champion Accessory.");
}
else
{
client.Send(new Message("You need to make atleast 2 free spots in your inventory."System.Drawing.Color.RedMessage.System));
}
break;
}
#endregion 



الساعة الآن 09:22 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب