field.setAccessible(true);
field.set(char_ai, interval);
if(char_ai.isActive())
{
char_ai.stopAITask();
char_ai.teleportHome(true);
count++;
L2WorldRegion region = npc.getCurrentRegion();
if(region != null && !region.areNeighborsEmpty())
{
char_ai.startAITask();