rendered paste bodybool ClearThrone(int TimeOut)
{
bool RetVal = false;
short slot = 0;
int StartTime = clock();
while ((clock() - StartTime)<TimeOut)
{
slot = GetClosestMonster(15045,4980,15140, 5075);
if (slot < 0){RetVal = true;break;}
if ((abs(Throne_Monsters[slot].X_pos-My_Character.X_pos)>30) || (abs(Throne_Monsters[slot].Y_pos-My_Character.Y_pos)>30))
{
StartEndPATH[2][1][0] = 19;
StartEndPATH[2][1][1] = 7;
currentlevel_Pathing = 2;
if (!CheckIfNearEntrance())
{
if (PathThrone(19,8) == false)
{
LogWrite_("General_Log.log",true,"Failed to path through throne ().\n");
ExitGame(true);
_endthread();
}
}
}
GenericAttack(slot);
CheckPickit();
}
return RetVal;
}