Now, looking at your program, I can see a lotta little things that simply wont work out. First off, random is not supposed to trigger in a FIGHT because simply put, if it did, this could cause problems. You need to use a FIGHT program, mpedit add fight 100, works kinda like a random program, triggers 100% of the time, each round in the fight. Now, obviously the player is still fighting, and the mob sits down(as was observerd in your program). What would probably be better to do is, mpforce $n sit, sit. Or, even better, make a transfer room, this would be an empty room vnums, you could even use vnum 1, and add into your program, mptrans $n 1, mptrans $n. And, as an added precaution, add onto that something like, sit, then add a check for later, say on a greet, stand, so that your mob actually stands up.
Could also do something like, mpinvis, mppeace all. And then the fight wont continue(provided the mob is a higher level than the player) because the player can't see the mobile, I think.
Or, you could trans the MOB and the PLAYER to seprate rooms, and back, then add a secretive flag to your mobile *chuckle*
Also, someone mentioned something about pausing in mprogs, that would be "mpsleep" or "mppause" and it is not stock smaug, what it does it delays the program for X rounds, and there is a working snippet somewhere.
Also, I realise I covered some stuff Nick went over.... but hey, you seemed a bit lost Nick :P *chuckle*
-Larthos the SUPER builder :P |