|
|
المشاركات 847 |
+التقييم 0.35 |
تاريخ التسجيل Apr 2020 |
الاقامة Portsaid |
نظام التشغيل Windows 10 pro |
رقم العضوية 3782 |
case 1:
{
byte[] Type = new byte[0];
byte Count = (byte)Kernel.Random.Next(1, 6);
uint ID = (uint)(Kernel.Random.Next(1, 6) + 4100000);
byte vl1 = 0;
byte vl2 = 0;
byte vl3 = 0;
byte vl4 = 0;
byte vl5 = 0;
if (Count >= 1)
{
vl1 = (byte)Kernel.Random.Next(1, 14);
if (vl1 != 0)
Type = new byte[] { (byte)vl1 };
}
if (Count >= 2)
{
for (int x = 0; x < 1000; x++)
{
vl2 = (byte)Kernel.Random.Next(1, 14);
if (vl2 != vl1)
{
Type = new byte[] { (byte)vl1, (byte)vl2 };
break;
}
}
}
if (Count >= 3)
{
for (int x = 0; x < 1000; x++)
{
vl3 = (byte)Kernel.Random.Next(1, 14);
if (vl3 != vl1 && vl3 != vl2)
{
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3 };
break;
}
}
}
if (Count >= 4)
{
for (int x = 0; x < 1000; x++)
{
vl4 = (byte)Kernel.Random.Next(1, 14);
if (vl4 != vl1 && vl4 != vl2 && vl4 != vl3)
{
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3, (byte)vl4 };
break;
}
}
}
if (Count >= 5)
{
for (int x = 0; x < 1000; x++)
{
vl5 = (byte)Kernel.Random.Next(1, 14);
if (vl5 != vl1 && vl5 != vl2 && vl5 != vl3 && vl5 != vl4)
{
Type = new byte[] { (byte)vl1, (byte)vl2, (byte)vl3, (byte)vl4, (byte)vl5 };
break;
}
}
}
uint[] TypeVl1, TypeVl2, TypeVl3, TypeVl4, TypeVl5;
uint Random1, Random2, Random3, Random4, Random5;
uint Super1 = 0, Super2 = 0, Super3 = 0, Super4 = 0, Super5 = 0;
uint[] Runes = new uint[5] { 0, 0, 0, 0, 0 };
if (Type.Length >= 1)
{
TypeVl1 = RuneItems.xuanbao_rand_attr(ID, Type[0]);
Random1 = (uint)Kernel.Random.Next((int)(TypeVl1[0]), (int)(TypeVl1[1]));
if (Random1 >= TypeVl1[1] - (TypeVl1[1] * 100 / 100))
Super1 = 0;
Runes[0] = Random1 * 1000 + Super1 + Type[0];
}
if (Type.Length >= 2)
{
TypeVl2 = RuneItems.xuanbao_rand_attr(ID, Type[1]);
Random2 = (uint)Kernel.Random.Next((int)(TypeVl2[0]), (int)(TypeVl2[1]));
if (Random2 >= TypeVl2[1] - (TypeVl2[1] * 100 / 100))
Super2 = 0;
Runes[1] = Random2 * 1000 + Super2 + Type[1];
}
if (Type.Length >= 3)
{
TypeVl3 = RuneItems.xuanbao_rand_attr(ID, Type[2]);
Random3 = (uint)Kernel.Random.Next((int)(TypeVl3[0]), (int)(TypeVl3[1]));
if (Random3 >= TypeVl3[1] - (TypeVl3[1] * 100 / 100))
Super3 = 0;
Runes[2] = Random3 * 1000 + Super3 + Type[2];
}
if (Type.Length >= 4)
{
TypeVl4 = RuneItems.xuanbao_rand_attr(ID, Type[3]);
Random4 = (uint)Kernel.Random.Next((int)(TypeVl4[0]), (int)(TypeVl4[1]));
if (Random4 >= TypeVl4[1] - (TypeVl4[1] * 100 / 100))
Super4 = 0;
Runes[3] = Random4 * 1000 + Super4 + Type[3];
}
if (Type.Length >= 5)
{
TypeVl5 = RuneItems.xuanbao_rand_attr(ID, Type[4]);
Random5 = (uint)Kernel.Random.Next((int)(TypeVl5[0]), (int)(TypeVl5[1]));
if (Random5 >= TypeVl5[1] - (TypeVl5[1] * 100 / 100))
Super5 = 200;
Runes[4] = Random5 * 1000 + Super5 + Type[4];
}
ConquerItem itemRunes = new ConquerItem(true);
itemRunes.ID = ID;
ConquerItemInformation ItemInfo = new ConquerItemInformation(ID, (byte)0);
itemRunes.Bound = false;
itemRunes.Runes = Runes;
itemRunes.StackSize = (ushort)1;
itemRunes.Durability = ItemInfo.BaseInformation.Durability;
itemRunes.MaximDurability = ItemInfo.BaseInformation.Durability;
client.Inventory.Add(itemRunes, Enums.ItemUse.CreateAndAdd);
break;
}
أفضل جواب - كتبه Uchiha T3Alo
|
| هتعملك ايرورات الدنيا والاخره بسبب الclass نفسها اتغيرت من byte الى uint وحوارات كتيره تانيه |
case 1:
{
uint ID = (uint)(Kernel.Random.Next(1, 6) + 4100000);
uint[] Runes = new uint[5] { 200104, 200104, 500113, 500111, 200103 };
ConquerItem itemRunes = new ConquerItem(true);
itemRunes.ID = ID;
ConquerItemInformation ItemInfo = new ConquerItemInformation(ID, (byte)0);
itemRunes.Bound = false;
itemRunes.Runes = Runes;
itemRunes.StackSize = (ushort)1;
itemRunes.Durability = ItemInfo.BaseInformation.Durability;
itemRunes.MaximDurability = ItemInfo.BaseInformation.Durability;
client.Inventory.Add(itemRunes, Enums.ItemUse.CreateAndAdd);
break;
}
case 1:
{
uint ID = (uint)(Kernel.Random.Next(1, 6) + 4100000);
uint[] Runes = new uint[5] { 200104, 200104, 500113, 500111, 200103 };
ConquerItem itemRunes = new ConquerItem(true);
itemRunes.ID = ID;
ConquerItemInformation ItemInfo = new ConquerItemInformation(ID, (byte)0);
itemRunes.Bound = false;
itemRunes.Runes = Runes;
itemRunes.StackSize = (ushort)1;
itemRunes.Durability = ItemInfo.BaseInformation.Durability;
itemRunes.MaximDurability = ItemInfo.BaseInformation.Durability;
client.Inventory.Add(itemRunes, Enums.ItemUse.CreateAndAdd);
break;
}
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
|
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| سورس Codes v1 بالبورتو وايبك البيرت [3D] | M.H.B[X-Coder]X | سورسات كونكر | 247 | 2021-09-17 05:15 PM |
| حصرياً لودر سورس Slayer الاجبني لسورسات البروتو 2020 | virus7x | البرامج والودرات | 68 | 2021-09-01 10:03 PM |
| ازاى اجيب ريلكات صوبر | mody33221 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-07-17 04:11 AM |
| ازاي اشيل السيستمات والاضافات الجديده بحيث السورس يشتغل علي كلينت قديم | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-02-14 04:20 PM |
| ازاي اخلي انبي الجيانغ يتحول من سوبر الي الي ابك في الجيانغ وا العكس | Hassan Emprator | تطوير سيرفرات كونكر | 2 | 2019-11-30 04:17 PM |