void equipmentHandle()//装备处理
{
int times = NULL;
int knapsack = *(int *)(knapsackAddress);
int beginBias = (*(int *)(knapsack + 88)) + 36;
for (int i = 0; i < 56; i++)
{
int equipmentPointer = *(int *)(beginBias + (i - 1) * 4);
if (equipmentPointer != 0)
{
int equipmentGrade = *(int *)(equipmentPointer + 352);
if (equipmentGrade == 0 || equipmentGrade == 1 || equipmentGrade == 2)
{
Send_SellCALL(i - 1 + 9);
Sleep(30);
times = times + 1;
}
}
}
if (times > 0)
{
Placard(L"装备已处理");
}
}
{
int times = NULL;
int knapsack = *(int *)(knapsackAddress);
int beginBias = (*(int *)(knapsack + 88)) + 36;
for (int i = 0; i < 56; i++)
{
int equipmentPointer = *(int *)(beginBias + (i - 1) * 4);
if (equipmentPointer != 0)
{
int equipmentGrade = *(int *)(equipmentPointer + 352);
if (equipmentGrade == 0 || equipmentGrade == 1 || equipmentGrade == 2)
{
Send_SellCALL(i - 1 + 9);
Sleep(30);
times = times + 1;
}
}
}
if (times > 0)
{
Placard(L"装备已处理");
}
}