Re: [BUG] Percentage loading

From: Mark Garringer (zizazat@hotmail.com)
Date: 05/26/03


> Hate to reply to my own post, but I moved my debug statement in load_zones
> and it does appear that G type commands are just not loading arg4
correctly
> from disk...so I'm back to the drawing board.

in db.c:
-    if (strchr("MOEPDTV", ZCMD.command) == NULL) {      /* a 3-arg command
*/
+    if (strchr("MOEPDTVG", ZCMD.command) == NULL) {      /* a 3-arg command
*/

And also in the stock patch, in reset_zone:

    case 'G':                   /* obj_to_char */
      if (!mob) {
        ZONE_ERROR("attempt to give obj to non-existant mob, command
disabled");
        ZCMD.command = '*';
        break;
      }
      if ((obj_index[ZCMD.arg1].number < ZCMD.arg2) &&
-          mob_load && (rand_number(1, 100) >= ZCMD.arg3)) {
+          mob_load && (rand_number(1, 100) >= ZCMD.arg4)) {

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT