Re: [CODE] Problems with disarm skill...

From: John Evans (evansj@HI-LINE.NET)
Date: 02/12/98


On Thu, 12 Feb 1998, S. Mead wrote:

> I have added a SKILL_DISARM and it works fine, up until my mud freezes
> during combat, not crashes, but freezes and dumps out the core with some
> missing tic error after about 5 minutes...
>
> Here is what I am using for disarm:
>
> ACMD(do_disarm)
> {
[snip]
>     damage(ch, vict, 0, SKILL_DISARM);
>     obj_to_room(GET_EQ(vict, WEAR_WIELD), ch->in_room);
>     WAIT_STATE(ch, 2*PULSE_VIOLENCE);
[snip]
> }

Try:

obj_to_room(unequip_char(vict, GET_EQ(vict, WEAR_WIELD)), vict->in_room);

Also,
        Make sure that your improve skill doesn't have an infinte loop
in it.

John Evans <evansj@hi-line.net>  --  http://www.hi-line.net/~evansj/

Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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