محمد ياسر
2019-04-23, 03:31 PM
هندخل على ملف
ConquerItemInformation.cs
ابحث عن
public uint CalculateDownlevel()
بدله كله بده
public uint CalculateDownlevel()
{
if (BaseInformation.ID / 1000 == 614)
{
return (uint)(614000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 616)
{
return (uint)(616010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 620)//Hossu
{
return (uint)(620019 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 152)//Hossu
{
return (uint)(152080 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 150)
{
return (uint)(150000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 136)
{
return (uint)(136010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 135)
{
return (uint)(135000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 143)
{
return (uint)(143000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 130)
{
return (uint)(130050 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 118)
{
return (uint)(118040 + BaseInformation.ID % 10);
}
var grades = GradeInformations[this.BaseInformation.Description];
if (grades == null) return BaseInformation.ID;
if (grades[BaseInformation.GradeKey - 1] == null)
return BaseInformation.ID;
else
return (uint)((grades[BaseInformation.GradeKey - 1].ID / 10) * 10 + BaseInformation.ID % 10);
}
public uint LowestID(byte Level)
{
if (BaseInformation.ID / 1000 == 614)
{
return (uint)(614000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 616)
{
return (uint)(616010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 620)//Hossu
{
return (uint)(620019 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 152)//Hossu
{
return (uint)(152080 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 150)
{
return (uint)(150000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 136)
{
return (uint)(136010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 112)
{
return (uint)(112000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 135)
{
return (uint)(135000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 143)
{
return (uint)(143000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 130)
{
return (uint)(130050 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 118)
{
return (uint)(118040 + BaseInformation.ID % 10);
}
var grades = GradeInformations[this.BaseInformation.Description];
if (grades == null) return BaseInformation.ID;
for (byte gr = 0; gr < grades.Count; gr++)
if (grades[gr].Level == Level)
return (uint)((grades[gr + 1].ID / 10) * 10 + BaseInformation.ID % 10);
return grades[0].ID;
}
}
بعد كده
تفتح ملف باكت هاندل
هضيف دول ففيه
if (ID >= 112000 && ID <= 112309)
{ return true; }
else { return false; }
}
public static bool NightmareVest(uint ID)
{
if (ID >= 135000 && ID <= 135306)
{ return true; }
else { return false; }
}
public static bool IsImperialBacksword(uint ID)
{
if (ID >= 620019 && ID <= 620439)
{ return true; }
else { return false; }
}
public static bool XumiCap(uint ID)
{
if (ID >= 143000 && ID <= 143309)
{ return true; }
else { return false; }
}
ConquerItemInformation.cs
ابحث عن
public uint CalculateDownlevel()
بدله كله بده
public uint CalculateDownlevel()
{
if (BaseInformation.ID / 1000 == 614)
{
return (uint)(614000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 616)
{
return (uint)(616010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 620)//Hossu
{
return (uint)(620019 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 152)//Hossu
{
return (uint)(152080 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 150)
{
return (uint)(150000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 136)
{
return (uint)(136010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 135)
{
return (uint)(135000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 143)
{
return (uint)(143000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 130)
{
return (uint)(130050 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 118)
{
return (uint)(118040 + BaseInformation.ID % 10);
}
var grades = GradeInformations[this.BaseInformation.Description];
if (grades == null) return BaseInformation.ID;
if (grades[BaseInformation.GradeKey - 1] == null)
return BaseInformation.ID;
else
return (uint)((grades[BaseInformation.GradeKey - 1].ID / 10) * 10 + BaseInformation.ID % 10);
}
public uint LowestID(byte Level)
{
if (BaseInformation.ID / 1000 == 614)
{
return (uint)(614000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 616)
{
return (uint)(616010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 620)//Hossu
{
return (uint)(620019 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 152)//Hossu
{
return (uint)(152080 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 150)
{
return (uint)(150000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 136)
{
return (uint)(136010 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 112)
{
return (uint)(112000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 135)
{
return (uint)(135000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 143)
{
return (uint)(143000 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 130)
{
return (uint)(130050 + BaseInformation.ID % 10);
}
if (BaseInformation.ID / 1000 == 118)
{
return (uint)(118040 + BaseInformation.ID % 10);
}
var grades = GradeInformations[this.BaseInformation.Description];
if (grades == null) return BaseInformation.ID;
for (byte gr = 0; gr < grades.Count; gr++)
if (grades[gr].Level == Level)
return (uint)((grades[gr + 1].ID / 10) * 10 + BaseInformation.ID % 10);
return grades[0].ID;
}
}
بعد كده
تفتح ملف باكت هاندل
هضيف دول ففيه
if (ID >= 112000 && ID <= 112309)
{ return true; }
else { return false; }
}
public static bool NightmareVest(uint ID)
{
if (ID >= 135000 && ID <= 135306)
{ return true; }
else { return false; }
}
public static bool IsImperialBacksword(uint ID)
{
if (ID >= 620019 && ID <= 620439)
{ return true; }
else { return false; }
}
public static bool XumiCap(uint ID)
{
if (ID >= 143000 && ID <= 143309)
{ return true; }
else { return false; }
}