|
المشاركات 1,941 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
public static void LoginMessages(Client.
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
if (!client.Equipment.Free(4) && IsPistol(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(4) && IsRapier(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsRapier(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsPistol(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135 || (client.Entity.Class >= 70 && client.Entity.Class <= 75))))))
{
if (!client.Equipment.Free(4) && IsCrossSaber(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsCrossSaber(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135|| (client.Entity.Class >= 70 && client.Entity.Class <= 75)))))))
{
if (!client.Equipment.Free(4) && IsKatana(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsKatana(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 70 && client.Entity.Class <= 75|| (client.Entity.Class >= 50 && client.Entity.Class <= 55))))))
{
if (!client.Equipment.Free(4) && IsBacksword(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsBacksword(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 132 && client.Entity.Class <= 135 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 142 && client.Entity.Class <= 145|| (client.Entity.Class >= 50 && client.Entity.Class <= 55)))))))
{
if (!client.Equipment.Free(4) && IsBeads(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsBeads(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 50 && client.Entity.Class <= 55) || (client.Entity.Class >= 132 && client.Entity.Class <= 135 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 142 && client.Entity.Class <= 145|| (client.Entity.Class >= 60 && client.Entity.Class <= 65)))))))
{
if (!client.Equipment.Free(4) && IsKnife(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsKnife(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135 || (client.Entity.Class >= 70 && client.Entity.Class <= 75)))))))
{
if (!client.Equipment.Free(4) && IsScythe(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsScythe(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135))))))
{
if (!client.Equipment.Free(4) && IsWarriorArmor(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsWarriorArmor(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135))))))
{
if (!client.Equipment.Free(4) && IsWarriorHelmet(client.Equipment.TryGetItem(4).ID)) { client.Equipment.Remove(4); client.Disconnect(); }
if (!client.Equipment.Free(5) && IsWarriorHelmet(client.Equipment.TryGetItem(5).ID)) { client.Equipment.Remove(5); client.Disconnect(); }
}
if (itemType == 900)
if (itemType == 613) // Knife
{
if ((client.Entity.Class >= 70 && client.Entity.Class <= 75) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 511) // Scythe
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 601) // Katana
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 614) // CrossSaber
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135))))))
{
item.Position = 0;
return;
}
}
if (itemType == 611) // Rapier
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 612) // Pistol
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 421) // Backsword
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 70 && client.Entity.Class <= 75))))))
{
item.Position = 0;
return;
}
}
if (itemType == 610) // Beads
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 50 && client.Entity.Class <= 55 || (client.Entity.Class >= 20 && client.Entity.Class <= 25 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135)))))))
{
item.Position = 0;
return;
}
}
if (itemType == 131) // warrior armor
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135))))))
{
item.Position = 0;
return;
}
}
if (itemType == 111) // WarriorHelmet
{
if ((client.Entity.Class >= 40 && client.Entity.Class <= 45) || (client.Entity.Class >= 70 && client.Entity.Class <= 75 || (client.Entity.Class >= 10 && client.Entity.Class <= 15 || (client.Entity.Class >= 60 && client.Entity.Class <= 65 || (client.Entity.Class >= 142 && client.Entity.Class <= 145 || (client.Entity.Class >= 132 && client.Entity.Class <= 135))))))
{
item.Position = 0;
return;
}
}
public static bool IsArrow(uint ID)
public static bool IsScythe(uint ID)
{
if (ID >= 511000 && ID <= 511439)
{ return true; }
else { return false; }
}
public static bool IsWarriorArmor(uint ID)
{
if (ID >= 131003 && ID <= 131309)
{ return true; }
else { return false; }
}
public static bool IsWarriorHelmet(uint ID)
{
if (ID >= 111003 && ID <= 111309)
{ return true; }
else { return false; }
}
public static bool IsKnife(uint ID)
{
if (ID >= 613000 && ID <= 613429)
{ return true; }
else { return false; }
}
public static bool IsKatana(uint ID)
{
if (ID >= 601000 && ID <= 601439)
{ return true; }
else { return false; }
}
public static bool IsCrossSaber(uint ID)
{
if (ID >= 614000 && ID <= 614439)
{ return true; }
else { return false; }
}
public static bool IsRapier(uint ID)
{
if (ID >= 611000 && ID <= 611439)
{ return true; }
else { return false; }
}
public static bool IsPistol(uint ID)
{
if (ID >= 612000 && ID <= 612439)
{ return true; }
else { return false; }
}
public static bool IsBacksword(uint ID)
{
if (ID >= 421003 && ID <= 421338)
return true;
return false;
}
public static bool IsBeads(uint ID)
{
if (ID >= 610000 && ID <= 610439)
return true;
return false;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل مشكله شخصيه بيضرب فيه اول ضربه يختفي | Tefa | تطوير سيرفرات كونكر | 15 | 2023-12-07 01:29 AM |
مشكله ممكن حلها | سمير | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-11-22 02:58 PM |
مشكله ممكن مساعده لو سمحتوا | سمير | مشكلات السيرفيرات كونكر الشخصيه | 9 | 2019-11-08 07:29 AM |
مطلوب ازاي تخلي الشيلد يتلبس مع سلاح المونك او اي سلاح | Zombie | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-09-25 05:18 AM |
مشكله في الاولين بينت ممكن حل بعد ازن الرجاله | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-09-21 03:10 PM |