Skip to main content

MP-BUILDING1

Keywords: MP-BUILDING1
To set the mobprog on the mobile, first you need have built the mobile (see help MOB-BUILDING), while editing the mobile , if you type command you will notice some commands to deal with mobprog: addmprog <vnum> <trigger> <argument> - To add a mobprog delmprog [number] - To remove the mobprog When you type show or hit the return bottom on your keyboard you will see the statistics of the mobile and at the end you will see the MOBprogram list MOBPrograms for [ 3001]: Number Vnum Trigger Phrase ------ ---- ------- ------ [ 0] 3001 DEATH 50 [ 1] 3010 GREET 100 [ 2] 3011 GREET 100 Where you see the number of the program on the mobprogram list, the vnum of the program, its trigger and argument. After you have added the mobile program on your mobile, if you edit the program again you will see at the end of the table the vnum and the short description of the mobile which has the mobprog: ============================================================================= Vnum: 3002 Title: storyteller-asks for a story Author(s): Reave Code: say Ah, you say you want to hear a story? ============================================================================= Mobiles that use this program are: 3017 the storyteller (storyteller old man) uses prog 3002. ============================================================================= Sometimes one defective mobprog (usually invalid if-check) can make all the mobprogs don't work, to see the vnum of the defective mobprog you can use the command mpinfo, and see the list below: -============================== MOBPROGS INFO ==============================- Displaying mobprog callstack - calllevel currently is 0 [ 0] MOBprog 2503 on mob 2505 (in room 2521) ABORT (BUGGY???) [ 1] MOBprog 0 on mob 0 (in room 0) [ 2] MOBprog 0 on mob 0 (in room 0) [ 3] MOBprog 0 on mob 0 (in room 0) [ 4] MOBprog 0 on mob 0 (in room 0) You can select the number of loglines, type mpinfo <number of lines> -=================== Piping: tail admin\mpbugs.txt -n 10 ===================- If the message ABORT (BUGGY???) appears next to the mobprog's number, you should fix the mobprog, usually you have at the end of the list the error on the mobprog. After you have fixed the mobprog type mpreset to reset the mobile programs. SEE ALSO: MOB-BUILDING, MOBPROGRAM_LIST