Re: NEED HELP!!!

From: Todd Kegley (argon@shadow.csc.edu)
Date: 03/26/96


On Tue, 26 Mar 1996, Adam Days wrote:

 
> So heres what I need help on:
> 
> How do I add races?
> How do I implement a dual wield?
> How do I make clans?
> 
> I would be utterly grateful for any help thanks :-)
> 
> Drizzt      
> UnHoly Lands 164.116.34.2 4000
> 

	Well, the dual wield is the easy part, so I'll respond to that 
one.  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 "");
        }
     }
  }

I'm sure there's probably a minor problem in there somewhere, as I'm 
writing from memory.  The other thing you need to do is write holdhit.
The easy way to do this is get into fight.c and mimic the code for hit.
Unless things have been moved around lately it should be right before 
perform_violence near the end of the file.

Hope this was of some help.

Argon

---There is no such thing as a dead troll, when only the ashes remain---



This archive was generated by hypermail 2b30 : 12/07/00 PST