The only way I can think of to figure out where it's going wrong is to either
start up the mud and attach gdb to the process, or start up the mud in gdb, and
break it at something like do_remove... then use your test piece of eq w/ +150
hp or whatever, remove it, and step through the function calls... the affects
are ultimately stripped in affect_strip in handler.c i believe, so you'd have
to just step through the function calls until you see it either go into
affect_strip, and then see why it's not doing what it should be doing, or step
through until you find the part where it should call affect_strip, and see why
it's not doing it...
Richard Lindsey.
-----Original Message-----
From: Witt Hinton [mailto:[EMAIL PROTECTED]
Sent: Thu 12/25/2003 5:30 PM
To: Sarix
Cc: [email protected]
Subject: Re: Objects and Affects Bug
Those haven't been messed with either. For some odd reason the affects
just won't strip off the char. They are reset when the char logs back
in
however. --Their stats go back, hp reset and affects back to racial
affects, etc...
The equip_char and unequip_char also have affect_modify and
affect_check... I haven't modified any of those 4 functions at all
that I
know of.
--Witt
On Thu, 25 Dec 2003, Sarix wrote:
> No, you wouldn't touch your wear_obj or your remove_obj functions.
There is
> two other functions called equip_char and unequip_char. Those are the
> functions that wear the eq onto the person and add the affects. Or
take the
> item off and remove the affects.
>
> ----- Original Message -----
> From: "Witt Hinton" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, December 25, 2003 2:48 PM
> Subject: Objects and Affects Bug
>
>
> > Hey,
> > I don't know if anyone has run into this before, but I have a small
bug
> > where if I have an object that adds the invis affect (or any
affect) and a
> > stat, hp, str, con, etc... when I remove the item the stats stay
and if
> > you we-wear the object you get the affects all over again. Such as
a ring
> > that adds 150hp, keep removing and wearing to gain lots of hp.
Also, the
> > spell isn't stripped from the char that is wearing the object when
> > removed. I checked all over the bug fixes and nothing shows up. I
can
> > post the unequip_char and all other various functions. The only
thing I
> > changed was the wear_obj function - but that shouldn't affect the
> > remove_obj should it? Any ideas would be great!
> > Thanks,
> > --Witt
> >
> >
> > --
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
>
>
>
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom