***************************************************************** * * * From: Arthur Sheffield * * Rising Moon * * or * * * * Disclaimer: * * Remember to back up your code before * * you apply anything. I am not responsible * * for your mud eating your hard drive and * * spiting it out at you. These code snippits * * are just little things that I have done * * to Rising Moon that seem to work very nicely. * * Feel free to use them or laugh at me as you * * are deleting them. As for credit, if you * * feel the need to memtion me, so be it, but * * its not really nessary. NOR asked that you do. * * * * Note: Some things sent in are just modifications, * * not written by me, just modifidy by me. Others, my be * * written by me. Still no credits are nessary. * * * * If you would, if you improve on any of these please email me * * so I can add those improvments into my code. Thanks :) * * * ***************************************************************** 03/19/01 Subject: Adding page_string to the do_vnum command. First: Add the following line in act.wizard.c somewhere at the top with the rest of the externs. extern structs char_data *mob_proto; Second: In the stock do_vnum, it calls vnum_object and vnum_mobile from the db.c file, you will not need those any more, you can delete them or comment them out. Third: Put this copy of do_vnum in place of the stock copy of do_vnum, and then compile. Thats it, you should now have page breaks in the vnum command. ACMD(do_vnum) {/* Added page_string -- AS 3/01 */ int nr, found = 0; two_arguments(argument, buf, buf2); *buf3 = '\0'; if (!*buf || !*buf2 || (!is_abbrev(buf, "mob") && !is_abbrev(buf, "obj"))) { send_to_char("Usage: vnum { obj | mob } \r\n", ch); return; } if (is_abbrev(buf, "mob")) { for (nr = 0; nr <= top_of_mobt; nr++) { if (isname(buf2, mob_proto[nr].player.name)) { sprintf(buf, "%3d. [%5d] %s\r\n", ++found, mob_index[nr].virtual, mob_proto[nr].player.short_descr); strcat(buf3, buf); } } if (!found) strcat(buf3, "No mobiles by that name.\r\n"); } if (is_abbrev(buf, "obj")) { for (nr = 0; nr <= top_of_objt; nr++) { if (isname(buf2, obj_proto[nr].name)) { sprintf(buf, "%3d. [%5d] %s\r\n", ++found, obj_index[nr].virtual, obj_proto[nr].short_description); strcat(buf3, buf); } } if (!found) strcat(buf3, "No objects by that name.\r\n"); } page_string(ch->desc, buf3, TRUE); }