Quote: "Is there like a followplr command like in fpi?"
No. DBPro is a programming language designed for games, but it's not a "game generator" tool. As far as DBPro is concerned, it has no idea what the player object is, how an enemy should move, or what an attack is - These are things that you have to program yourself.
For example, you'll need to use the math commands so that you can determine what the angle is between an enemy and the player, you'll need to move the enemy object towards the player if the player is in sight, and program your own "attack" in once the player is in range.
What should an attack do? Well, it will probably kill the player or take away some of his health, depending on how you want your game to be. Again, these are things you'll have to program yourself, there are no built in functions for things like this.