void main() { object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC); if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 10.0) { ExecuteScript("spawnwarcat2", OBJECT_SELF); DelayCommand(1.0,ExecuteScript("spawnwarcat2", OBJECT_SELF)); DelayCommand(3.0,ExecuteScript("spawnwarcat2", OBJECT_SELF)); DelayCommand(5.0,ExecuteScript("spawnwarcat", OBJECT_SELF)); } }