Okay I did that I got a whole slew of errors, but I got most of them
fixed. :)
However there are still a few of them floating around and I can't figure
out how to fix them here they are
fight.c: In function `perform_violence':
fight.c:973: `percent' undeclared (first use this function)
fight.c:973: (Each undeclared identifier is reported only once
fight.c:973: for each function it appears in.)
fight.c:974: `prob' undeclared (first use this function)
fight.c:980: parse error before string constant
Okay, I think i did declare percent and prob!?? the parse error I have
no clue any suggestions?
After that it should work :)
On Tue, 26 Mar 1996, Todd Kegley wrote:
>
>
> 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