Hmmm, I didn't get all of my first message about the patch, so here it is again, just in case I'm not the only one that only got a small part of it. Apply the patch (see previous mail) and then make 2 changes to load_zone() in db.c else if (strchr("G", ZCMD.command) != NULL) { /* ### */ if ((arg_num = sscanf(ptr, " %d %d %d %d ", &tmp, &ZCMD.arg1, &ZCMD.arg2, &ZCMD.arg3)) != 4) { if (arg_num != 3) error = 1; else ZCMD.arg3 = 0; } |-> else if (ZCMD.arg3 < 0) |-> ZCMD.arg3 = 0; | } | else { /* ### */ | if ((arg_num = sscanf(ptr, " %d %d %d %d %d ", &tmp, &ZCMD.arg1, | &ZCMD.arg2, &ZCMD.arg3, &ZCMD.arg4)) != 5) { | if (arg_num != 4) | error = 1; | else | ZCMD.arg4 = 0; | } |-> else if (ZCMD.arg4 < 0) |-> ZCMD.arg4 = 0; | } | | | These are the lines that have to be added. This prevents the load chance to show up as 102% at those mobs/items that hasn't been assigned a load chance. In zedit you assign the chance that the item/mob loads, but in the .zon file you see the chance that the items doesn't load. I'll upload both patches and a short instruction for them to ftp.circlemud.org tonight. -Johan +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST