Michael Gallagher(Subliminal) writes, "This snippet is very simple it's really the idea that im posting. This will allow you to use wands and staffs in any position you have." Although it's very simple, the usual disclaimer applies, im not responsible for this code. please backup first. First of all open act.other.c and goto ACMD(do_use) Where it says "mag_item = GET_EQ(ch, WEAR_HOLD);" replace that line with the following code: for (i = 0; i < NUM_WEARS; i++) if (get_obj_in_list_vis(ch, arg, ch->equipment[i])) { mag_item = GET_EQ(ch, i); break; } else { mag_item = NULL; } also put "int i;" under "struct obj_data *mag_item;" I told you it was simple. << FTP Uploads 1999/11/19 | Reply | View as text | Threaded | Enhanced damage skill [by Gerold Fisher] >>
|
|