You may wish to note that the bottom section of code should be attributed to: Todd Kegley <argon@shadow.csc.edu> It isn't Mouchie's as it would appear to be. > There are just a couple of things you have to do, and none of them are > especially difficult. You need to declare the skill with all of the > others neat little declares, and then go into class.c and declare what > classes can use it. After that comes the only real work involved. > You'll need to get into fight.c, in the perform_violence routine. What > you should add should look something like this: > > if (GET_SKILL(ch, DUAL_WIELD) && FIGHTING(ch)) > { > struct obj_data *holding = GET_EQ(ch, WEAR_HOLD); > if (holding && GET_OBJ_TYPE == WEAPON) > { > percent = number(1, 101); > prob = GET_SKILL(ch, SKILL_DUAL_WIELD); > if percent > prob > { > holdhit (ch, FIGHTING(ch), TYPE_UNDEFINED); > if (MOB_FLAGGED(ch, MOB_SPEC) && > mob_index[GET_MOB_RNUM(ch)].func != NULL) > (mob_index[GET_MOB_RNUM(ch)].func) (ch, ch, 0 ""); > } > } > } > -- Erm... Yeah. Whatever. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | | Or send 'info circle' to majordomo@cspo.queensu.ca | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST