//AutoHunt
for (index02 = 0; index02 < 27; index02++)
{
::memcpy(tempBuffer, &aAuto[index02 * 3], 3);
tempBuffer[3] = '\0';
switch (index02) {
case 0:
tAvatarInfo[index01].aAutoHuntUNK = ::atoi(tempBuffer);
break;
case 1:
case 2:
tAvatarInfo[index01].aAutoHuntData[0][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 3:
case 4:
tAvatarInfo[index01].aAutoHuntData[1][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 5:
case 6:
tAvatarInfo[index01].aAutoHuntData[2][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 7:
case 8:
tAvatarInfo[index01].aAutoHuntData[3][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 9:
case 10:
tAvatarInfo[index01].aAutoHuntData[4][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 11:
case 12:
tAvatarInfo[index01].aAutoHuntData[5][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 13:
case 14:
tAvatarInfo[index01].aAutoHuntData[6][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 15:
case 16:
tAvatarInfo[index01].aAutoHuntData[7][(index02 + 1) % 2] = ::atoi(tempBuffer);
break;
case 17:
tAvatarInfo[index01].aStandStillOrMovingHunt = ::atoi(tempBuffer);
break;
case 18:
case 19:
tAvatarInfo[index01].aAutoSkillAttack[0][index02 % 2] = ::atoi(tempBuffer);
break;
case 20:
case 21:
tAvatarInfo[index01].aAutoSkillAttack[1][index02 % 2] = ::atoi(tempBuffer);
break;
case 22:
tAvatarInfo[index01].aNumberOfMonsters = ::atoi(tempBuffer);
break;
case 23:
tAvatarInfo[index01].aItemPickUp = ::atoi(tempBuffer);
break;
case 24:
tAvatarInfo[index01].aInsufficientBag = ::atoi(tempBuffer);
break;
case 25:
tAvatarInfo[index01].aActUponDeath = ::atoi(tempBuffer);
break;
case 26:
tAvatarInfo[index01].aTakePetFood = ::atoi(tempBuffer);
break;
}
}
-------------- //AutoHunt
memset(aAuto, 0, 82);
::snprintf(aAuto, 82,
"%03d%03d%03d%03d%03d%03d%03d%03d%03d%03d"
"%03d%03d%03d%03d%03d%03d%03d%03d%03d%03d"
"%03d%03d%03d%03d%03d%03d%03d"
, tAvatarInfo->aAutoHuntUNK
, tAvatarInfo->aAutoHuntData[0][0]
, tAvatarInfo->aAutoHuntData[0][1]
, tAvatarInfo->aAutoHuntData[1][0]
, tAvatarInfo->aAutoHuntData[1][1]
, tAvatarInfo->aAutoHuntData[2][0]
, tAvatarInfo->aAutoHuntData[2][1]
, tAvatarInfo->aAutoHuntData[3][0]
, tAvatarInfo->aAutoHuntData[3][1]
, tAvatarInfo->aAutoHuntData[4][0]
, tAvatarInfo->aAutoHuntData[4][1]
, tAvatarInfo->aAutoHuntData[5][0]
, tAvatarInfo->aAutoHuntData[5][1]
, tAvatarInfo->aAutoHuntData[6][0]
, tAvatarInfo->aAutoHuntData[6][1]
, tAvatarInfo->aAutoHuntData[7][0]
, tAvatarInfo->aAutoHuntData[7][1]
, tAvatarInfo->aStandStillOrMovingHunt
, tAvatarInfo->aAutoSkillAttack[0][0]
, tAvatarInfo->aAutoSkillAttack[0][1]
, tAvatarInfo->aAutoSkillAttack[1][0]
, tAvatarInfo->aAutoSkillAttack[1][1]
, tAvatarInfo->aNumberOfMonsters
, tAvatarInfo->aItemPickUp
, tAvatarInfo->aInsufficientBag
, tAvatarInfo->aActUponDeath
, tAvatarInfo->aTakePetFood);
**Do you see anything wrong with the lines of code, I keep getting crash error ?






