The combat routine does one and only one thing, as the name implies, combat. During any time your character is in combat/aggro-ed, the "botbase/profile" will relinquish control of the character to the combat routine. The combat routine will maintain control until the character is no longer aggro-ed or in combat, at which point it will return control to the botbase/profile. The one exception to this, that I can think of off the top of my head, is DungeonBuddy, which scripts the combat allowing the combat routine to work in conjunction with the script.