محمد ياسر
2019-04-23, 03:25 PM
بسم الله الرحمن الرحيم
الاكواد دي
بتخلي كل شخصيه تلبس
السلاح و اللبس بتاعها بس
بمعني لو انت قرصان و جيت تلبس مثلا سلاح
مونك مش هيتلبس لو عاملت ايه
و لو كنت لبسو وانت قافل الايميل لو لمه تفتح هتلاقي
الاكونت هنج و لمه تفتحو بتلاقي قلع الاسلحه اوتو ماتيك
مثلا النينجا و الاسيسون هايجيو يلبسو الكاتانا مثلا
مش هينفع يلبسوها
انا مضبط كلو بمعني كل سلاح مكتوب فيها كل الشخصيات
اللي مش تنفع تلبسو و ضايف كلو
كمان حاجه انا عامل لبس الورير بس و الهاته علشان دول بيزودو الديفنس جامد علشان كده عاملتو بس باقي اللبس عادي
PacketHandler.cs
ونبحث عن
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;
}
كده خلصنا وبالتوقيق
الاكواد دي
بتخلي كل شخصيه تلبس
السلاح و اللبس بتاعها بس
بمعني لو انت قرصان و جيت تلبس مثلا سلاح
مونك مش هيتلبس لو عاملت ايه
و لو كنت لبسو وانت قافل الايميل لو لمه تفتح هتلاقي
الاكونت هنج و لمه تفتحو بتلاقي قلع الاسلحه اوتو ماتيك
مثلا النينجا و الاسيسون هايجيو يلبسو الكاتانا مثلا
مش هينفع يلبسوها
انا مضبط كلو بمعني كل سلاح مكتوب فيها كل الشخصيات
اللي مش تنفع تلبسو و ضايف كلو
كمان حاجه انا عامل لبس الورير بس و الهاته علشان دول بيزودو الديفنس جامد علشان كده عاملتو بس باقي اللبس عادي
PacketHandler.cs
ونبحث عن
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;
}
كده خلصنا وبالتوقيق