Josh Anderson writes, "The reason I created it is that I've had some experience on a mud that I used to work with where bugs messed up items regularly.... there was no 'purge all' function, so now that I'm coding for myself I decided to write one as a preemptive measure in case I ever have something like that happen...and just because I like groovy imm commands." You never can have enough groovy imm commands. Wow, I get to enter the ranks of those who say, "I've taken so much and now get to repay everyone by submitting something". This is not to say that this is a great bit of code or even a mediocre one as I'm sure it could be optimized and turned inside out, being that I'm still new at this. The reason I created it is that I've had some experience on a mud that I used to work with where bugs messed up items regularly. It caused massive amounts of problems and caused the staff to spend large amounts of time tracking down these items, getting them from people, and destroying them. There was no 'purge all' function, so now that I'm coding for myself I decided to write one as a preemptive measure in case I ever have something like that happen...and just because I like groovy imm commands. I added this function to my act.wizard.c file. Imp as you would any other command. ACMD(do_cleanse) { struct char_data *i; struct obj_data *k; mob_vnum number; mob_rnum r_num; char type[10]; int num = 0, found = 0; two_arguments(argument, buf, buf2); if (!*buf || !*buf2 || !isdigit(*buf2)) { send_to_char("Usage: cleanse { obj | mob } << Dual Wield [by Fire] | Reply | Flattened >>
|
|