[code] here is the dual wield code...

From: Bellman (annbell@gpu.srv.ualberta.ca)
Date: 02/22/97

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:

   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 "");


| 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