[ScryMUD] SVN Commit Info r982 - trunk/mud/grrmud/server

svn-log at scrymud.net svn-log at scrymud.net
Tue Mar 4 15:37:23 PST 2008


Author: kaj
Date: 2008-03-04 15:37:23 -0800 (Tue, 04 Mar 2008)
New Revision: 982

Modified:
   trunk/mud/grrmud/server/command4.cc
   trunk/mud/grrmud/server/command5.cc
Log:
Adding level and an "S" for mobs who have scripts to the output for amlist, mlist and mvnum.



Modified: trunk/mud/grrmud/server/command4.cc
===================================================================
--- trunk/mud/grrmud/server/command4.cc	2008-03-04 20:58:12 UTC (rev 981)
+++ trunk/mud/grrmud/server/command4.cc	2008-03-04 23:37:23 UTC (rev 982)
@@ -1761,11 +1761,18 @@
 
    for (int i = start; i<= end; i++) {
       if (mob_list[i].CRIT_FLAGS.get(18)) {
-         Sprintf(buf, "\t%i\t%S\n", i, &(mob_list[i].short_desc));
+         //print mnum, S if it has script, level and short desc
+         if (mob_list[i].mob->mob_data_flags.get(17)) {
+            Sprintf(buf, "[%i] S  lvl %i  %S\n", i,
+            mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+         } else {
+            Sprintf(buf, "[%i]    lvl %i  %S\n", i,
+            mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+         }
          show(buf, pc);
       }//if
       else {
-         Sprintf(buf, "\t%i\tTHIS MOB UNDEFINED.\n", i);
+         Sprintf(buf, "[%i]        THIS MOB IS UNDEFINED.\n", i);
          show(buf, pc);
       }//else
    }//for

Modified: trunk/mud/grrmud/server/command5.cc
===================================================================
--- trunk/mud/grrmud/server/command5.cc	2008-03-04 20:58:12 UTC (rev 981)
+++ trunk/mud/grrmud/server/command5.cc	2008-03-04 23:37:23 UTC (rev 982)
@@ -1228,7 +1228,14 @@
 
    for (i = i_th; i<NUMBER_OF_MOBS; i++) {
       if (mob_is_named(mob_list[i], *name)) {
-         Sprintf(buf, "[%i] %S\n", i, &(mob_list[i].short_desc));
+         //print mnum, S if it has script, level and short desc
+         if (mob_list[i].mob->mob_data_flags.get(17)) {
+            Sprintf(buf, "[%i] S  lvl %i  %S\n", i, 
+               mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+         } else {
+            Sprintf(buf, "[%i]    lvl %i  %S\n", i, 
+               mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+         }
          show(buf, pc);
       }//if
    }//for
@@ -1638,7 +1645,14 @@
    for (int i = 0; (i<NUMBER_OF_MOBS && count < how_many); i++) {
       if (mob_list[i].getNativeZoneNum() == zone) {
          if (mob_list[i].isInUse()) {
-            Sprintf(buf, "[%i]\t%S\n", i, &(mob_list[i].short_desc));
+            //print mnum, S if it has script, level and short desc
+            if (mob_list[i].mob->mob_data_flags.get(17)) {
+               Sprintf(buf, "[%i] S  lvl %i  %S\n", i, 
+                  mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+            } else {
+               Sprintf(buf, "[%i]    lvl %i  %S\n", i, 
+                  mob_list[i].short_cur_stats[19], &(mob_list[i].short_desc));
+            }
             count++;
             show(buf, pc);
          }//if




More information about the ScryMUD mailing list