This message was originally addressed to SHAPESHIFTER and was forwarded to you by SHAPESHIFTER Is this the code that you were looking for? It was sent about about 2 or 3 days ago. If not, sorry to send this out to everyone again. Lord Kyu... ----------------------------------- Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP; Sat, 22 Feb 97 14:58:14 EST Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4) id OAA09698; Sat, 22 Feb 1997 14:34:31 -0600 Received: from quartz.ucs.ualberta.ca by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from async20-5.remote.ualberta.ca (async20-5.remote.ualberta.ca [129.128.237.78]) Message-Id: <199702221934.MAA27126@quartz.ucs.ualberta.ca> X-Sender: annbell@pop.srv.ualberta.ca X-Mailer: Windows Eudora Version 1.4.4 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sat, 22 Feb 1997 12:34:41 -0700 To: circle@cspo.queensu.ca From: annbell@gpu.srv.ualberta.ca (Bellman) Subject: [code] here is the dual wield code... Sender: owner-circle@cspo.queensu.ca Precedence: bulk Reply-To: circle@cspo.queensu.ca 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 ""); } } } Mouchie +-----------------------------------------------------------+ | 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 | +-----------------------------------------------------------+ +-----------------------------------------------------------+ | 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